Redirected to Nginx page [closed]

3

I tried to access a website belonging to a company, and instead of being directed to the site's own page, I was redirected to a page saying the following:

  

Welcome to nginx!

     

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

     

For online documentation and support please refer to nginx.org.   Commercial support is available at nginx.com.

     

Thank you for using nginx.

My operating system is Windows 10 and someone else has already entered this site from their own computer and said that they could, so the problem should be on my computer.

How to proceed?

Thank you in advance.

    
asked by anonymous 20.01.2017 / 20:59

1 answer

2

This is occurring because on the nginx server it is treating as server name only the address www.tagon8.com.

To correct the error simply put the following in the server name.

server {
    listen       80;
    server_name  www.tagon8.com tagon8.com;
    ...
}

In this way nginx will redirect both to the same content.

As for your question, this is not a problem with your computer, browser, or any other medium you are using to access. This is bad configuration on the server.

    
20.01.2017 / 21:41