Running PHPmyAdmin on Nginx, port 8080 passed to varnish not working well!

Posted by amrnt on Server Fault See other posts from Server Fault or by amrnt
Published on 2011-03-11T17:12:47Z Indexed on 2011/03/20 8:11 UTC
Read the original article Hit count: 256

Filed under:
|
|
|
|

I installed Nginx, Varnish and PHP-fpm. Then I installed PHPmyAdmin and made a virtual host for it:

server{
    listen 8080;
    server_name phpmyadmin.Domain.com;
    access_log /var/log/phpmyadmin.access_log;
    error_log /var/log/phpmyadmin.error_log;

    location / {
      root /usr/share/phpmyadmin;
      index index.php;
    }

    location ~ \.php$ {
        fastcgi_pass    127.0.0.1:9000;
        fastcgi_index   index.php;
        fastcgi_param   SCRIPT_FILENAME /usr/share/phpmyadmin$fastcgi_script_name;
        include         /opt/nginx/conf/fastcgi_params;
    }

}

When I go to phpmyadmin.Domain.com it works as expected! but after submitting username/password it redirects me to phpmyadmin.Domain.com:8080/index.php?... with page cannot be found response as well!

What could I do?

© Server Fault or respective owner

Related posts about php

Related posts about nginx