PHP can't run under alias folder

Igor Sysoev is at rambler-co.ru
Sat Jul 18 11:30:29 MSD 2009


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/





More information about the nginx mailing list