PHP can't run under alias folder

edogawaconan nginx-forum at nginx.us
Sat Jul 18 19:04:45 MSD 2009


Put the .php block before that

		location ~ ^/phpmyadmin/(.*\.php)$ {
			alias /home/httpd/html/phpmyadmin/$1;
			fastcgi_pass 127.0.0.1:9000;
			fastcgi_index index.php;
			include fcgi.conf;
			fastcgi_param SCRIPT_FILENAME $request_filename;
		}

		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;
		}


http://pastebin.com/m6de995ae

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






More information about the nginx mailing list