PHP can't run under alias folder

e123e123e123 nginx-forum at nginx.us
Sat Jul 18 19:02:31 MSD 2009


Hi edogawaconan :

i change to :

location ~ ^/phpmyadmin($|/.*) {
alias /home/httpd/html/phpmyadmin$1;
index index.php index.html index.htm;
auth_basic "Restricted";
auth_basic_user_file /home/httpd/html/phpmyadmin/.htpasswd;
}

gif /jpeg can display  but all php file show out all sources file . Thanks.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,4151,4183#msg-4183






More information about the nginx mailing list