i do this: server { listen 80; server_name myapp.com www.myapp.com ;
access_log /var/log/nginx/myapp/myapp.com-access.log main; error_log /var/log/nginx/myapp/myapp.com-error.log ; location ~ "^/(_img|_css|_js)" { include /usr/local/nginx/_macros/x-forwarded- for.conf; root /home/myapp/myapp_SVN/tags/RELEASE/web/ www.myapp.com; } location / { include /usr/local/nginx/_macros/x-forwarded- for.conf; proxy_pass http://127.0.0.1:5102; } } i put all my static content in _img _css _js buckets , then just serve those direct. it's almost the same as Cliff's, just using the regex functionality. some people will also set it up to handle file extensions via regex --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---