Welcome! Log In Create A New Profile

Advanced

Злощасный try_files и alias

February 23, 2016 06:46PM
https://trac.nginx.org/nginx/ticket/97

подскажите, до сих пор нет решения этой проблемы?

Есть

server {
root /vhosts/api.example.net/public_html;

location ~ /api/2.0 {
alias /vhosts/api.example.net/api/v2.0/public_html;
try_files $uri $uri/ /index.php?$query_string;
}
}

при таком конфиге и обращении к /api/1.0 файлы ищутся в /vhosts/
api.example.net/public_html, вместо /vhosts/
api.example.net/api/v2.0/public_html
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Злощасный try_files и alias

ALex_hha February 23, 2016 06:46PM

Re: Злощасный try_files и alias

Maxim Dounin February 24, 2016 08:14AM

Re: Злощасный try_files и alias

ALex_hha February 24, 2016 08:24AM

Re: Злощасный try_files и alias

Maxim Dounin February 24, 2016 09:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 103
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