Question and pointing to different folder

Posted January 15, 2015 3.9k views

So i created virtual host on my droplet and connect it with a domain. Also i add CNAME record (www @). But problem is that point to correct folder on server var/www/sitename/public_html, and pointing to var/www/html why?


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.

Submit an Answer
5 answers

You need to configure your virtualhost to listen on as well as

Under the ServerName line, add the following:


If you already have a ServerAlias directive, simply append to the line with a space between each alias:

ServerAlias ...

Then restart Apache:

sudo service apache2 restart