Question not working, but working? where did i go wrong?

Posted January 15, 2017 1.4k views

So my site is working fine, however my somehow it goes to an existent root folder? where did i go wrong? any help is appreciated, thanks

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

4 answers


Your DNS looks good, so my first recommendation would be to check your Apache VirtualHost setup and make sure that www is setup as a ServerAlias. You need both a valid DNS entry (which you have) and a ServerAlias targeting the www alias.

So if we look at your VirtualHost configuration, you should see something like:


And you need to add a ServerAlias entry for it:


Then restart Apache.

You’ll also want to make sure that your SSL certificate is setup to handle your domain with and without the www.

Oh thats weird looks like i had them inverted…

ServerName instead of

I’ll try that.. thanks!

by Josh Barnett
The Apache web server is extremely powerful and flexible, which is why it's the most popular way of serving web content. Apache can host multiple domains or interfaces on one server by splitting sites into separate virtual hosts. In this guide, we will walk you through how to set up Apache virtual hosts on a CentOS 7 VPS.

can’t take it, going to start from scratch… lol - thanks for trying to help :)

Submit an Answer