U
U
urajo2019-12-09 08:13:53
PHP
urajo, 2019-12-09 08:13:53

How to install nginx after phpmyadmin?

I put nginx, I prescribe in it

server {
listen 80;

server_name nondt.ru;

location / {
    proxy_pass http://localhost:3000;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
    }
}

After that, the site becomes port 80 and everything is OK, but the database disappears from the domain/phpmyadmin, writes Cannot GET /phpmyadmin/ . Before installing nginx everything worked. How to be?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
g905, 2019-12-09
@g905

So, you need to add the location to the config, don't you?
Something like
location / {
...
}
location /phpmyadmin/ {
... params...
}

V
Viktor Taran, 2019-12-09
@shambler81

location /phpmyadmin/ {
                deny all;
                root  /usr/share/phpmyadmin/;
        }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question