Welcome! Log In Create A New Profile

Advanced

domain.com loads fine but adding 'www' takes me to nginx startup page

Posted by hatenames 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
domain.com loads fine but adding 'www' takes me to nginx startup page
April 23, 2014 11:06PM
I can't figure it out for the life of me.

mydomain.com loads the website perfectly fine but if i do www.mydomain.com it loads the "Welcome to Nginx" page. I either deleted a line I shouldn't have by accident or I'm missing something incredibly simple. If anyone has any idea what I missed, I would love you forever.

Any help is greatly appreciated.
Re: domain.com loads fine but adding 'www' takes me to nginx startup page
April 24, 2014 03:30AM
server_name www.mydomain.com mydomain.com;
Re: domain.com loads fine but adding 'www' takes me to nginx startup page
April 24, 2014 01:00PM
That did it, sorry to have wasted your time with such a simple matter. Thanks a lot. All the best

Online Users

Guests: 94
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready