<div dir="ltr">.htacces in my apache root directory:<br><br>RewriteRule ^seaside/files.* - [L]<br>RewriteRule ^(.*)$ <a href="http://localhost:8080/seaside/pier/$1">http://localhost:8080/seaside/pier/$1</a> [P,L]<br><br>not the recommended way, using a virtualhost, but, it works!<br>
<br><br><div class="gmail_quote">On Thu, Aug 21, 2008 at 7:49 AM, Sean Allen <span dir="ltr">&lt;<a href="mailto:sean@monkeysnatchbanana.com">sean@monkeysnatchbanana.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=""><div>for the apache setups i&#39;ve seen documented, the nginx conf file below should work fine.</div><div><br></div><div>unless you setup that rails etc style caching,</div><div>this:</div><div class="Ih2E3d">
<div><br></div><div><blockquote type="cite"><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (-f $request_filename.html) {</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rewrite (.*) $1.html break;</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp;</span></font></font></div></blockquote>
<br></div></div><div>wouldn&#39;t be needed.</div><div><br></div><div>--&nbsp;</div><div><br></div><div>fyi there is a bug in that conf file.</div><div><br></div><div>you have:</div><div class="Ih2E3d"><div><br></div><div><blockquote type="cite">
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;index index.html index.htm;</span></font></font></div><div><font face="Monaco" size="3"><span style="font-size: 11px;"><br></span></font></div>
</blockquote><br></div></div><div>set as directory indexes BUT...</div><div class="Ih2E3d"><div><br></div><div><blockquote type="cite"><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (-f $request_filename/index.html) {</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rewrite (.*) $1/index.html break;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</span></font></font></div>
</blockquote><br></div></div><div>only checks for index.html</div><div><br></div><div>so IF you had a directory index of index.htm,</div><div>it would never get served. unless directly accessed.</div><div><br></div><div><br>
</div><div>&nbsp;</div><div><div><div><div></div><div class="Wj3C7c"><div>On Aug 21, 2008, at 7:41 AM, Marcelino Llano Villa wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div class="Wj3C7c"><div style="">
use nginx instead apache, i think is faster to serve static files, didn&#39;t?&nbsp;<div>is this technique called proxy pass? sorry &nbsp;kinda newbie here<div>I believe this is possible, but is there a benefit on this with squeak?</div>
<div><br></div><div><div>here is my ebb (a ruby server for dynamic content) nginx conf file</div></div><div><br></div><div><br></div><div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">user &nbsp;www-data www-data;</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">worker_processes &nbsp;5;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">error_log &nbsp;logs/error.log;</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">pid &nbsp; &nbsp; &nbsp; &nbsp;logs/nginx.pid;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">events {</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp;worker_connections &nbsp;1024;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">}</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;"><br></span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">http {</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp;include &nbsp; &nbsp; &nbsp; mime.types;</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp;default_type &nbsp;application/octet-stream;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;"><br></span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp;log_format &nbsp;main &nbsp;&#39;$remote_addr - $remote_user [$time_local] $status &#39;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#39;&quot;$request&quot; $body_bytes_sent &quot;$http_referer&quot; &#39;</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#39;&quot;$http_user_agent&quot; &quot;http_x_forwarded_for&quot;&#39;;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;"><br>
</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp;access_log &nbsp;logs/access.log &nbsp;main;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;"><br>
</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp;sendfile &nbsp; &nbsp; on;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp;tcp_nopush &nbsp; on;</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp;tcp_nodelay &nbsp;on;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp;gzip &nbsp; &nbsp; &nbsp; &nbsp; on;</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;"><br></span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp;upstream ebb {</span></font></font></div><div>
<font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;server <a href="http://127.0.0.1:4000" target="_blank">127.0.0.1:4000</a>;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;server <a href="http://127.0.0.1:4001" target="_blank">127.0.0.1:4001</a>;</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;server <a href="http://127.0.0.1:4002" target="_blank">127.0.0.1:4002</a>;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp;server {</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;listen 80;</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;server_name <a href="http://www.site.com" target="_blank">www.site.com</a> <a href="http://site.com" target="_blank">site.com</a>;&nbsp;</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;client_max_body_size 50M;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp;</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;access_log /srv/www/<a href="http://site.com/shared/log/access.log" target="_blank">site.com/shared/log/access.log</a>;</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;error_log &nbsp;/srv/www/<a href="http://site.com/shared/log/error.log" target="_blank">site.com/shared/log/error.log</a>;</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;root /srv/www/<a href="http://site.com/current/public" target="_blank">site.com/current/public</a>;</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;index index.html index.htm;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;location / {</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_set_header X-Real-IP $remote_addr;</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_set_header X-Forwarded_for $proxy_add_x_forwarded_for;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_set_header Host $http_host;</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_redirect false;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_max_temp_file_size 0;</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (-f $request_filename) {</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (-f $request_filename/index.html) {</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rewrite (.*) $1/index.html break;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (-f $request_filename.html) {</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rewrite (.*) $1.html break;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (!-f $request_filename) {</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_pass <a href="http://ebb" target="_blank">http://ebb</a>;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</span></font></font></div><div>
<font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp;</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;error_page &nbsp; 500 502 503 504 &nbsp;/500.html;</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;location = /500.html {</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;root &nbsp;/srv/www/exceptions;</span></font></font></div>
<div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">&nbsp;&nbsp; &nbsp;}</span></font></font></div><div><font face="Monaco"><font size="3"><span style="font-size: 11px;">}</span></font></font></div>
<div><font face="Monaco" size="3"><span style="font-size: 11px;"><br></span></font></div></div><div><br><div><div><div>El 21/08/2008, a las 4:19, Sean Allen escribió:</div><br><blockquote type="cite"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">do what exactly?</span></blockquote>
</div><br></div></div></div></div></div></div><div class="Ih2E3d">_______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br></div></blockquote></div><br></div></div><br>_______________________________________________<br>

seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>David Zmick<br>/dz0004455\<br><a href="http://dz0004455.googlepages.com">http://dz0004455.googlepages.com</a><br><a href="http://dz0004455.blogspot.com">http://dz0004455.blogspot.com</a><br>

</div>