PHP can't run under alias folder

Dick Middleton dick at fouter.net
Sat Jul 18 00:20:05 MSD 2009


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 ?

Dick







More information about the nginx mailing list