Welcome! Log In Create A New Profile

Advanced

Re: Need to serve multiple directories/drives on windows

June 16, 2009 12:31PM
On Tue, Jun 16, 2009 at 09:13:54AM -0700, dwatrous wrote:

> Hello,
>
> I'm interested in moving from Apache to nginx. What I'm doing with
> Apache right now is serve files from multiple drives on windows. For
> each drive I have a Directory entry in the httpd.conf and also an Alias
> entry.
> <Directory "e:/">
> Options Indexes FollowSymLinks
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
>
> <Directory "k:/">
> Options Indexes FollowSymLinks
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
>
> Alias /c c:/
> Alias /e e:/
> Alias /k k:/
>
> I've tried setting the root in the nginx config file to "C:\" (without
> the quotes), but then nginx won't start. I will need to serve files
> from drives C:, E: and K: at the same time for one server box.
>
> Please let me know if there is a way to define multiple locations like
> this.

location /c {
root c:/;
}

location /e {
root e:/;
}

location /k {
root k:/;
}


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

Need to serve multiple directories/drives on windows

dwatrous June 16, 2009 12:13PM

Re: Need to serve multiple directories/drives on windows

Igor Sysoev June 16, 2009 12:31PM

RE: Need to serve multiple directories/drives on windows

dwatrous June 16, 2009 02:01PM

Re: Need to serve multiple directories/drives on windows

edogawaconan June 16, 2009 02:07PM

RE: Need to serve multiple directories/drives on windows

dwatrous June 16, 2009 02:49PM

Re: Need to serve multiple directories/drives on windows

Igor Sysoev June 16, 2009 02:10PM

Re: Need to serve multiple directories/drives on windows

Per Jonsson June 16, 2009 03:19PM

RE: Need to serve multiple directories/drives on windows

dwatrous June 16, 2009 03:57PM

Re: Need to serve multiple directories/drives on windows

edogawaconan June 16, 2009 08:15PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 119
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready