Site redirected to Nginx page

Asked

Viewed 1,350 times

3

I tried to access a website, owned by a company, and instead of being directed to the page of the site itself, 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 by their own computer and said they got it, so the problem must be on my computer.

How to proceed?

Thank you in advance.

  • 1

    The address you accessed is exactly the same?

  • Yes, it is the site tagon8.com, it is exactly the same that the other person was able to access in a normal way.

  • With or without https, with or without www.?

  • 1

    Without both, but I tested now with www and it worked. I didn’t know it made a difference. Thank you so much

  • If the server is misconfigured makes a difference. It should be redirecting dominio for www.dominio but apparently you’re not.

1 answer

2

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

To fix the error just put in the server name the following.

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

This way Nginx will redirect both to the same content.

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.