Configuring phpmyadmin

Trazzt nginx-forum at nginx.us
Tue May 24 23:25:25 MSD 2011


Hi,

I recently installed Debian 6.0.1a Squeeze with Nginx and phpmyadmin
When I go to 'http://localhost' phpmyadmin pops up.
What I want is that phpmyadmin is located at
'http://localhost/phpmyadmin/'

I already tried to add this in nginx.conf. It didn't work

location /phpmyadmin {
alias /usr/share/phpmyadmin/;
}

This is what my nginx.conf looks like:

_____________________________________
user www-data;
worker_processes  1;

error_log  /var/log/nginx/error.log;
pid        /var/run/nginx.pid;

events {
    worker_connections  1024;
    # multi_accept on;
}

http {
    include       /etc/nginx/mime.types;

    access_log  /var/log/nginx/access.log;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;
    tcp_nodelay        on;

    gzip  on;
    gzip_disable "MSIE [1-6]\.(?!.*SV1)";

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
}
_____________________________________

Can anybody help me configuring this the right way?

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




More information about the nginx mailing list