Alias does not work with php

Edho Arief edho at
Sun Dec 18 16:18:34 UTC 2011

On Sun, Dec 18, 2011 at 10:17 PM, tapir <nginx-forum at> wrote:
> I'm sorry it does not work. I didn't test it properly before.
> here is my settings:
> when I go to it redirects to wordpress so it works but if I
> go to it says "404 not found"

this line

	location /pma {
		root /usr/share/nginx/www/phpmyadmin;

will cause nginx to search for relevant files in
/usr/share/nginx/www/phpmyadmin/pma. For example ->
root: /usr/share/nginx/www/phpmyadmin
$uri: /pma/index.php
therefore it checks: /usr/share/nginx/www/phpmyadmin/pma/index.php

O< ascii ribbon campaign - stop html mail -

More information about the nginx mailing list