I would like to set up phpmyadmin (already installed) in on some non-standard named directory (e.g. www.example.com/devaccess) on a different port. I am very frustrated because I already have a working domain, which was fairly simple to set up and I cannot figure out how to add this directive -- all examples I can find are new domains.
Here is my setup:
/etc/nginx/sites-available has two files default (not enabled) and mydomain
mydomain:
server {
#listen 80 default_server;
server_name _;
root /home/mydomain/web;
index index.php index.html index.htm;
client_max_body_size 32m;
access_log /var/log/nginx/access.log;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to index.html
try_files $uri $uri/ /index.html;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/tmp/phpfpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}
my nginx.conf includes the following line:
include /etc/nginx/sites-enabled/*;
Should I add a location block to this mydomain file? Or should I have a new phpmyadmin config file? either way, can anyone help with the settings? I am very very stuck!