Windows | Nginx Mapped Hard Drive | Network Sharing

Kevin Worthington kworthington at gmail.com
Fri Apr 4 22:55:52 UTC 2014


Try:

server {
    listen  80;
    listen  [::]:80;
    server_name  domain.com www.domain.com;

    # removed lines here...

    location / {
    root   z:/server/websites/ps/public_www;
    proxy_set_header X-Real-IP  $remote_addr;
    proxy_set_header X-Forwarded-For $remote_addr;
    proxy_set_header Host $host;
    proxy_pass   http://127.0.0.1:8000;
    expires 3s;
    max_ranges 0;
    }
    location ~ \.flv$ {
    flv;
    limit_rate 200k;
    root   z:/server/websites/ps/public_www;
    expires max;
    }
    location ~ \.mp4$ {
    limit_rate 200k;
    root   z:/server/websites/ps/public_www;
    expires max;
    }
    location ~ \.gif$ {
    limit_rate 50k;
    root   z:/server/websites/ps/public_www;
    expires max;
    }
    location ~* \.(avi|m4v|mov|divx|webm|ogg|mp3|mpeg|mpg|zip|rar)$ {
    limit_rate 90k;
    root   z:/server/websites/ps/public_www;
    expires max;
    }
    location ~*
\.(ico|png|jpg|jpeg|gif|flv|mp4|avi|m4v|mov|divx|webm|ogg|
mp3|mpeg|mpg|swf|css|js|txt|zip|rar|xml)$
{
    root   z:/server/websites/ps/public_www;
    expires max;
    }
    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    location ~ /\.ht {
    return 404;
    }
    location ~
^/(xampp|security|phpmyadmin|licenses|webalizer|server-
status|server-info|cpanel|configuration.php)
{
    return 404;
    }
}

Best regards,
Kevin
--
Kevin Worthington
kworthington at gmail.com
http://kevinworthington.com/
http://twitter.com/kworthington


On Fri, Apr 4, 2014 at 6:39 PM, c0nw0nk <nginx-forum at nginx.us> wrote:

> Sorry made a mistake and can't edit my previous post. Nginx handles all
> static content and Apache handles all dynamic content.
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,249008,249018#msg-249018
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140404/ad0b7fdd/attachment.html>


More information about the nginx mailing list