Alias does not work with php
Edho Arief
edho at myconan.net
Sun Dec 18 16:18:34 UTC 2011
On Sun, Dec 18, 2011 at 10:17 PM, tapir <nginx-forum at nginx.us> wrote:
> I'm sorry it does not work. I didn't test it properly before.
>
> here is my settings: http://pastebin.com/Ln0ccKJw
>
> when I go to mydomain.com it redirects to wordpress so it works but if I
> go to mydomain.com/pma 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
http://host.com/pma/index.php ->
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 - www.asciiribbon.org
More information about the nginx
mailing list