<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>for the apache setups i'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><br></div><div><blockquote type="cite"><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px; ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (-f $request_filename.html) {</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px; ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rewrite (.*) $1.html break;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px; ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px; ">&nbsp;&nbsp; &nbsp;</span></font></font></div></blockquote><br></div><div>wouldn'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><br></div><div><blockquote type="cite"><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px; ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;index index.html index.htm;</span></font></font></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div></blockquote><br></div><div>set as directory indexes BUT...</div><div><br></div><div><blockquote type="cite"><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px; ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (-f $request_filename/index.html) {</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px; ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rewrite (.*) $1/index.html break;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px; ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</span></font></font></div></blockquote><br></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>On Aug 21, 2008, at 7:41 AM, Marcelino Llano Villa wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">use nginx instead apache, i think is faster to serve static files, didn'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 class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">user &nbsp;www-data www-data;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">worker_processes &nbsp;5;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">error_log &nbsp;logs/error.log;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">pid &nbsp; &nbsp; &nbsp; &nbsp;logs/nginx.pid;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">events {</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp;worker_connections &nbsp;1024;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">}</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">http {</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp;include &nbsp; &nbsp; &nbsp; mime.types;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp;default_type &nbsp;application/octet-stream;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp;log_format &nbsp;main &nbsp;'$remote_addr - $remote_user [$time_local] $status '</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'"$request" $body_bytes_sent "$http_referer" '</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'"$http_user_agent" "http_x_forwarded_for"';</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp;access_log &nbsp;logs/access.log &nbsp;main;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp;sendfile &nbsp; &nbsp; on;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp;tcp_nopush &nbsp; on;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp;tcp_nodelay &nbsp;on;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp;gzip &nbsp; &nbsp; &nbsp; &nbsp; on;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp;upstream ebb {</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;server 127.0.0.1:4000;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;server 127.0.0.1:4001;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;server 127.0.0.1:4002;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp;server {</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;listen 80;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;server_name <a href="http://www.site.com">www.site.com</a> site.com;&nbsp;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;client_max_body_size 50M;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;access_log /srv/www/site.com/shared/log/access.log;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;error_log &nbsp;/srv/www/site.com/shared/log/error.log;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;root /srv/www/site.com/current/public;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;index index.html index.htm;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;location / {</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-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 class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-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 class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_set_header Host $http_host;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_redirect false;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_max_temp_file_size 0;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (-f $request_filename) {</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (-f $request_filename/index.html) {</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rewrite (.*) $1/index.html break;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (-f $request_filename.html) {</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rewrite (.*) $1.html break;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (!-f $request_filename) {</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_pass <a href="http://ebb">http://ebb</a>;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-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 class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;location = /500.html {</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;root &nbsp;/srv/www/exceptions;</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp;}</span></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">}</span></font></font></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-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 class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-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; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">do what exactly?</span></blockquote></div><br></div></div></div></div>_______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br></blockquote></div><br></div></body></html>