Answer the question
In order to leave comments, you need to log in
Why is the site not opening on nginx?
When I try to access a site by domain, I get the error "Unable to access the site." By ip everything is fine.
server {
listen 80;
root /var/www/html;
index index.html;
}
server {
listen 80;
server_name <moi_domen> www.<moi_domen>;
root /var/www/html;
index index.html;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question