Need to serve multiple directories/drives on windows

Per Jonsson poj+nginx at lysator.liu.se
Tue Jun 16 23:19:26 MSD 2009


dwatrous wrote:
> Thanks for the reply.  This still isn't working.  Here is my entire
> config file.  As an initial test I've included only the C drive.
> 
> worker_processes  1;
> 
> events {
>     worker_connections  1024;
> }
> 
> http {
>     include       mime.types;
>     default_type  application/octet-stream;
>     sendfile        on;
>     keepalive_timeout  65;
>     server {
>         listen       50000;
>         server_name  localhost;
> 
> 	location /c {
> 	    root  c:/;
> 	}
replace the location with
location /c {
  	    alias  c:/;
  	}

If I remember correctly a request for /c/foo.html with the root 
directive in the location results in nginx looking for the file
"c:\c\foo.html", and not "c:\foo.html"
This was discussed quite recently on the mailing list.


/PoJ





More information about the nginx mailing list