Welcome! Log In Create A New Profile

Advanced

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

Posted by hatenames 
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
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 214
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready