Need to serve multiple directories/drives on windows

Edho P Arief edhoprima at gmail.com
Wed Jun 17 04:15:16 MSD 2009


On Wed, Jun 17, 2009 at 2:19 AM, Per Jonsson<poj+nginx at lysator.liu.se> wrote:
> 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
>
>

oh right, i completely forgot about this.

Well, there's another solution if the partition is all ntfs: create a
folder which the subfolders are mount point for the drives.

(I personally find using alias is a headache when combined with fastcgi)

-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org





More information about the nginx mailing list