M
M
marselabdullin2020-08-26 11:54:22
Nginx
marselabdullin, 2020-08-26 11:54:22

Why does the site not open after changing the nginx configuration?

The first time I change the nginx configurations, since in my case it should only give static, and now it works as the main server, although there is apache. I changed the config like this:

http {
    server {
        server_name   thynex.net;
        location / {
            root /;
        }
        location /images/ {
            root static/img/;
        }
    }

After that, the root page is empty, what's the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-08-26
@bacon

Who will read the docs? https://nginx.org/ru/docs/http/ngx_http_core_modul...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question