phpmyadmin shows 404 not found

April 10, 2018 1.2k views

Hi I created droplet using one click installation of phpmyadmin on Ubuntu. In starting was working but after adding ssl to doamin it is suddenly stopped working. Please suggest how to solve it.


1 Answer

Is it correct or not ?

server {
listen 80;
rewrite ^/(.*)$1 permanent;
location / {
root /phpmyadmin;



server {

    listen 443 ssl default_server;
    listen [::]:443 ssl default_server;

root /var/www/html;

    # Add index.php to the list if you are using PHP
    index index.html index.htm index.nginx-debian.html;

   ssl_certificate /root/;
   ssl_certificate_key /root/;
   ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
   ssl_prefer_server_ciphers on;


Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!