Welcome! Log In Create A New Profile

Advanced

Re: rewrite и location (apach => nginx)

April 09, 2011 04:22AM
Получается перенаправить таким вот способом

location ~ ^/(.+\.(?:php))$ {
# root /home/www/scripts; 1-й
# rewrite ^(.*)$ /home/www/scripts/$1; 2-й
}

Только php не выполняется, а отдается сервером на скачивание. Как исправить?
Subject Author Posted

rewrite и location (apach => nginx)

cul8er April 07, 2011 04:08AM

Re: rewrite и location (apach => nginx)

cul8er April 09, 2011 04:22AM

Re: rewrite и location (apach => nginx)

Igor Sysoev April 09, 2011 04:44AM

Re: rewrite и location (apach => nginx)

cul8er April 09, 2011 06:00AM

Re: rewrite и location (apach => nginx)

Igor Sysoev April 09, 2011 07:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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