Welcome! Log In Create A New Profile

Advanced

Need help with virtual hosts for phpmyadmin

Posted by doublea 
Need help with virtual hosts for phpmyadmin
June 20, 2012 01:13AM
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!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 133
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready