Windows | Nginx Mapped Hard Drive | Network Sharing

itpp2012 nginx-forum at
Fri Apr 4 22:59:50 UTC 2014

I did a simple config:

server {
listen 80;
server_name localhost;

root Y:/;
index index.php index.html index.htm default.html default.htm;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
expires 3s;
max_ranges 0;
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
location ~ /\.ht {
return 404;
location ~
return 404;

And accessed http://localhost/Disclaimer.txt
which works perfectly, your config is not optimal but the share works as it
suppose to.
so its definitely a config issue and not a share issue.

Posted at Nginx Forum:,249008,249021#msg-249021

More information about the nginx mailing list