A
A
Alexander2016-04-25 13:38:00
Nginx
Alexander, 2016-04-25 13:38:00

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;
    }
}

when I go to localhost/phpmyadmin , it downloads a file called download to me

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Romanenko, 2016-04-25
@slimus

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 question

Ask a Question

731 491 924 answers to any question