<div dir="ltr">Try:<div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">server {</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> listen 80;</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> listen [::]:80;</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> server_name </span><a href="http://domain.com/" target="_blank" style="font-family:arial,sans-serif;font-size:13px">domain.com</a><span style="font-family:arial,sans-serif;font-size:13px"> </span><a href="http://www.domain.com/" target="_blank" style="font-family:arial,sans-serif;font-size:13px">www.domain.com</a><span style="font-family:arial,sans-serif;font-size:13px">;</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px"> # removed lines here...</span></div><div><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> location / {</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> root z:/server/websites/ps/public_</span><span style="font-family:arial,sans-serif;font-size:13px">www;</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> proxy_set_header X-Real-IP $remote_addr;</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> proxy_set_header X-Forwarded-For $remote_addr;</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> proxy_set_header Host $host;</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> proxy_pass </span><a href="http://127.0.0.1:8000/" target="_blank" style="font-family:arial,sans-serif;font-size:13px">http://127.0.0.1:8000</a><span style="font-family:arial,sans-serif;font-size:13px">;</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> expires 3s;</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> max_ranges 0;</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> }</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> location ~ \.flv$ {</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> flv;</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> limit_rate 200k;</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> root z:/server/websites/ps/public_</span><span style="font-family:arial,sans-serif;font-size:13px">www;</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> expires max;</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> }</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> location ~ \.mp4$ {</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> limit_rate 200k;</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> root z:/server/websites/ps/public_</span><span style="font-family:arial,sans-serif;font-size:13px">www;</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> expires max;</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> }</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> location ~ \.gif$ {</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> limit_rate 50k;</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> root z:/server/websites/ps/public_</span><span style="font-family:arial,sans-serif;font-size:13px">www;</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> expires max;</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> }</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> location ~* \.(avi|m4v|mov|divx|webm|ogg|</span><span style="font-family:arial,sans-serif;font-size:13px">mp3|mpeg|mpg|zip|rar)$ {</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> limit_rate 90k;</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> root z:/server/websites/ps/public_</span><span style="font-family:arial,sans-serif;font-size:13px">www;</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> expires max;</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> }</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> location ~*</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">\.(ico|png|jpg|jpeg|gif|flv|</span><span style="font-family:arial,sans-serif;font-size:13px">mp4|avi|m4v|mov|divx|webm|ogg|</span><span style="font-family:arial,sans-serif;font-size:13px">mp3|mpeg|mpg|swf|css|js|txt|</span><span style="font-family:arial,sans-serif;font-size:13px">zip|rar|xml)$</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">{</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> root z:/server/websites/ps/public_</span><span style="font-family:arial,sans-serif;font-size:13px">www;</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> expires max;</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> }</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> # deny access to .htaccess files, if Apache's document root</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> # concurs with nginx's one</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> #</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> location ~ /\.ht {</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> return 404;</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> }</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> location ~</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">^/(xampp|security|phpmyadmin|</span><span style="font-family:arial,sans-serif;font-size:13px">licenses|webalizer|server-</span><span style="font-family:arial,sans-serif;font-size:13px">status|server-info|cpanel|</span><span style="font-family:arial,sans-serif;font-size:13px">configuration.php)</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">{</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> return 404;</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> }</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">}</span><br></div><div class="gmail_extra">
<br clear="all"><div>Best regards,<br>Kevin<br>--<br>Kevin Worthington<br><a href="mailto:kworthington@gmail.com" target="_blank">kworthington@gmail.com</a><br><a href="http://kevinworthington.com/" target="_blank">http://kevinworthington.com/</a><br>
<a href="http://twitter.com/kworthington" target="_blank">http://twitter.com/kworthington</a></div>
<br><br><div class="gmail_quote">On Fri, Apr 4, 2014 at 6:39 PM, c0nw0nk <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sorry made a mistake and can't edit my previous post. Nginx handles all<br>
static content and Apache handles all dynamic content.<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,249008,249018#msg-249018" target="_blank">http://forum.nginx.org/read.php?2,249008,249018#msg-249018</a><br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div></div>