<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'>Nice!<br><br>Thank you. I will add this to SeasideDoc as a HOWTO and when I get time I will study this.<br><br>I am a nginx  neophyte and much of that config is new to me, yet I see so e really cool stuff already!<br><br>Thx again<div id="message"></div><br id="br3"><div id="signature"></div><div id="content"><br> ---- On Sat, 24 Nov 2018 05:56:24 -0500 <b> jupiter.jones@mail.com </b> wrote ----<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); padding-left: 6px; margin-left: 5px;"><div>Hi Timothy,<br><br>Maybe I’m late to the party here, but this is how I deal with it. The following is a dedicated seaside application server so the location is simply “/“ <br><br>My FileLibrary deployFiles end up at the path /opt/git/projectName/www_root/files<br><br>I also added the the limits which seem to help keep things working when I get a heap of requests trying to break things or test for php things.<br><br>The end result is that file library resources are served from the image unless deployed, and then they are served by Nginx.<br><br>The key is the try_files directive that looks for files in the file system and if that fails passes it to the backend. Seems to work well.<br><br>Maybe there’s something here that will help.<br><br>Cheers,<br><br>J<br><br><br># Seaside NGINX  Configuration<br>server_tokens off;<br>limit_req_zone $binary_remote_addr zone=seasideRequestLimit:10m rate=30r/m;<br>limit_conn_zone $binary_remote_addr zone=seasideConnectionLimit:10m;<br><br>upstream gsDevKit_seaside_fastcgi {<br>    least_conn;<br>    server localhost:13301;<br>    server localhost:13302;<br>    server localhost:13303;<br>}<br><br>server {<br>    listen 80;<br>    root /opt/git/projectName/www_root;<br>    client_max_body_size 10M;<br>    client_body_timeout 5s;<br>    client_header_timeout 5s;<br>    <br>    server_name projectname.com.au;<br><br>    location @gsDevKit {<br>        limit_req zone=seasideRequestLimit;<br>        limit_conn seasideConnectionLimit 10;<br>        <br>        include /usr/local/etc/nginx/fastcgi_params;<br>        fastcgi_pass gsDevKit_seaside_fastcgi;<br>    }<br>    <br>    location /config {<br>        allow 10.0.0.1/24;<br>        allow 192.168.0.1/24;<br>        deny all;<br>    }<br>        <br>    location / {<br>        try_files $uri $uri/ @gsDevKit;<br>    }<br><br>#    if ($uri = /) {<br>#        rewrite ^(.*)$ /ProjectName$1 break;<br>#    }<br>}<br><br><br><br><br>_______________________________________________<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></div><br></body></html>