PHP can't run under alias folder

Edho P Arief edhoprima at gmail.com
Sat Jul 18 03:20:51 MSD 2009


On Sat, Jul 18, 2009 at 3:20 AM, Dick Middleton<dick at fouter.net> 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.

-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org





More information about the nginx mailing list