Welcome! Log In Create A New Profile

Advanced

Re: PHP can't run under alias folder

July 18, 2009 03:30AM
On Fri, Jul 17, 2009 at 09:20:05PM +0100, Dick Middleton wrote:

> Edho P Arief wrote:
> >location ~ ^/phpmyadmin/(.*\.php)$ {
> > alias /home/httpd/html/phpmyadmin/$1;
> > fastcgi_pass ...;
> > fastcgi_index ...;
> > include ...;
> > fastcgi_param SCRIPT_FILENAME $request_filename;
>
> <DOCS>
> The alias directive cannot be used inside a regex-specified location. If
> you need to do this you must use a combination of rewrite and root.
> </DOCS>
>
> Has this limitation been removed in v0.7.xxx ?

Yes:

Changes with nginx 0.7.40 09 Mar 2009

*) Feature: the "location" directive supports captures in regular
expressions.

*) Feature: an "alias" directive with capture references may be used
inside a location given by a regular expression with captures.


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

PHP can't run under alias folder

e123e123e123 July 17, 2009 12:48PM

Re: PHP can't run under alias folder

edogawaconan July 17, 2009 12:59PM

Re: PHP can't run under alias folder

Dick Middleton July 17, 2009 04:20PM

Re: PHP can't run under alias folder

edogawaconan July 17, 2009 07:20PM

Re: PHP can't run under alias folder

Igor Sysoev July 18, 2009 03:30AM

Re: PHP can't run under alias folder

e123e123e123 July 18, 2009 04:15AM

Re: PHP can't run under alias folder

Igor Sysoev July 18, 2009 05:14AM

Re: PHP can't run under alias folder

e123e123e123 July 18, 2009 09:44AM

Re: PHP can't run under alias folder

Igor Sysoev July 18, 2009 10:09AM

Re: PHP can't run under alias folder

Igor Sysoev July 18, 2009 10:17AM

Re: PHP can't run under alias folder

edogawaconan July 18, 2009 10:57AM

Re: PHP can't run under alias folder

e123e123e123 July 18, 2009 10:53AM

Re: PHP can't run under alias folder

e123e123e123 July 18, 2009 11:02AM

Re: PHP can't run under alias folder

edogawaconan July 18, 2009 11:04AM

Re: PHP can't run under alias folder

edogawaconan July 18, 2009 11:07AM

Re: PHP can't run under alias folder

e123e123e123 July 18, 2009 11:19AM

Re: PHP can't run under alias folder

e123e123e123 July 18, 2009 11:21AM

Re: PHP can't run under alias folder

edogawaconan July 18, 2009 11:37AM

Re: PHP can't run under alias folder

Igor Sysoev July 19, 2009 07:26AM

Re: PHP can't run under alias folder

Igor Sysoev July 19, 2009 07:24AM

Re: PHP can't run under alias folder

edogawaconan July 18, 2009 10:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 70
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready