S
S
skippetr2017-09-02 16:25:56
Nginx
skippetr, 2017-09-02 16:25:56

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:

  • error log is empty
  • config file
    server {
         listen 80;
         root /var/www/IP_ADDRESS;
         index index.html index.htm;
         server_name IP_ADDRESS;
         location / {
            try_files $uri $uri/ =404;
         }
    }


Now when I type IP_ADDRESS in the address bar of the browser nothing happens. Are there any thoughts?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2017-09-02
@Maksclub

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 question

Ask a Question

731 491 924 answers to any question