Answer the question
In order to leave comments, you need to log in
Nginx server not running on VPS?
I'm not familiar with nginx, but I followed the instructions and at step 8 (when we should get the result) nothing works. Server without DNS.
What I have at the moment:
server {
listen 80;
root /var/www/IP_ADDRESS;
index index.html index.htm;
server_name IP_ADDRESS;
location / {
try_files $uri $uri/ =404;
}
}
Answer the question
In order to leave comments, you need to log in
1. Is nginx running?
you can sudo service nginx status
check 2. check the rights - because of them it may not work, the server simply does not have the rights to even read files
3. as already asked, is the file in the directory index.html or index.htm? These extensions are written on the index line ... if php, then add index.php
7 step is needed only for local development
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question