August 15, 2010 03:14PM
On Sun, Aug 15, 2010 at 03:08:11PM -0400, Fedia wrote:

> Windows XP
> на диске есть 2 папки:
> C:/Program Files/www/
> C:/Program Files/KLUpdater/Updates/
> нужно чтобы они были доступны по
> адресам соответственно:
> http://192.168.23.1:8080/
> http://192.168.23.1:8080/files/
>
> вот часть конфига:
> [code]
> server {
> listen 192.168.23.1:8080;
> server_name megaserver;
>
> location / {
> root "C:/Program Files/www/";
> index index.html index.htm;
> autoindex on;
> }
>
> location /files/ {
> root "C:/Program Files/KLUpdater/Updates/";
> }
>
> error_page 500 502 503 504 /50x.html;
> location = /50x.html {
> root html;
> }
>
> }
> [/code]
>
> первая папка отображается по своему
> адресу, но вторая пишет 404 Not Found
> что я делаю нетак?

location /files/ {
- root "C:/Program Files/KLUpdater/Updates/";
+ alias "C:/Program Files/KLUpdater/Updates/";
}


--
Игорь Сысоев
http://sysoev.ru

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Windows и пути к папкам (config)

Fedia August 15, 2010 03:08PM

Re: Windows и пути к папкам (config)

Igor Sysoev August 15, 2010 03:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 317
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready