Answer the question
In order to leave comments, you need to log in
If an example of the nginx config to return just one html page?
I'm setting up nginx for the first time, reading about the nginx config and I can't figure out how to set it up so that it gives just one html page /var/www/index.html
Inside the http block at the end I write:
server {
server_name mysite.ru www.mysite. ru;
root /var/www;
index index.hrml;
}
did not touch the rest of the config.
Tell me, where is the error?
Answer the question
In order to leave comments, you need to log in
Apparently there is not enough location
server {
listen 80;
server_name mysite.ru www.mysite.ru;
location / {
root /var/www;
index index.html index.htm;
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question