Windows | Nginx Mapped Hard Drive | Network Sharing
itpp2012
nginx-forum at nginx.us
Fri Apr 4 22:59:50 UTC 2014
I did a simple config:
server {
listen 80;
server_name localhost;
root Y:/www.mydomain.nl;
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;
#proxy_pass http://127.0.0.1:8000;
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 ~
^/(xampp|security|phpmyadmin|licenses|webalizer|server-status|server-info|cpanel|configuration.php)
{
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: http://forum.nginx.org/read.php?2,249008,249021#msg-249021
More information about the nginx
mailing list