Answer the question
In order to leave comments, you need to log in
How to properly set up sites-available/default for projects and phpmyadmin?
Source files /etc/nginx/sites-available/default :
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www/html;
index index.php, index.html index.htm;
server_name localhost;
location / {
try_files $uri $uri/ index.html index.php =404;
}
location /phpmyadmin {
index index.php;
}
}
Answer the question
In order to leave comments, you need to log in
See how to configure nginx: https://www.howtoforge.com/running-phpmyadmin-on-n...
You have a bad config
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question