NginX
PhpMyAdmin
Ubuntu 12.04
First install phpmyadmin with
#apt-get install phpmyadmin
Important: During installation process don't select Apache option!!!
PhpMyAdmin is installed into /usr/share/phpmyadmin/ dir.
NGINX Configuration
#redirect to www
server {
server_name phpmyadmin.loc;
return 301 $scheme://www.$host$request_uri;
}
server {
############### General Settings ####################
listen 88;
server_name www.phpmyadmin.loc;
root "/usr/share/phpmyadmin/";
index index.php index.html;
charset utf-8;
autoindex on;
#error_log "/homemiko/com_adsuu/logs/www_adsuu_com_error.log";
#access_log "/homemiko/com_adsuu/logs/www_adsuu_com_access.log";
################# Includes ###################
include /etc/nginx/includes/htaccess.conf;
include /etc/nginx/includes/php.conf;
}
Now you can call PhpMyAdmin with http://www.phpmyadmin.loc:88
or http://phpmyadmin.loc will be redirected to http://www.phpmyadmin.loc:88