Windows | Nginx Mapped Hard Drive | Network Sharing

C0nw0nk W0nky c0nw0nk at hotmail.co.uk
Fri Apr 4 23:27:12 UTC 2014


Try it with a mp4,flv,jpg file. Not documents that have a plain text mime type.

> To: nginx at nginx.org
> Subject: Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing
> From: nginx-forum at nginx.us
> Date: Fri, 4 Apr 2014 18:59:50 -0400
> 
> 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
> 
> _______________________________________________
> 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/20140405/0ac5ea24/attachment.html>


More information about the nginx mailing list