Need to serve multiple directories/drives on windows
Igor Sysoev
is at rambler-co.ru
Tue Jun 16 20:31:56 MSD 2009
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/
More information about the nginx
mailing list