Need to serve multiple directories/drives on windows

dwatrous dwatrous at aptina.com
Tue Jun 16 23:57:57 MSD 2009


Works like a charm.  Thank you so much.

-----Original Message-----
From: owner-nginx at sysoev.ru [mailto:owner-nginx at sysoev.ru] On Behalf Of
Per Jonsson
Sent: Tuesday, June 16, 2009 1:19 PM
To: nginx at sysoev.ru
Subject: Re: Need to serve multiple directories/drives on windows

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