Report this

What is the reason for this report?

Domain not loading to correct document root after mail gun setup

Posted on April 1, 2016

I just setup mailgun for one of my domains on my droplet. Everything seems to be correct however my domain is now loading to the /var/www directory and not my custom directory /var/www/site.com/public_html declared in my site.com.conf file. It seems as if apache is just completely ignoring it, as far as I know all I changed was the DNS settings by adding all of the appropriate mailgun requirements.

Any help would be greatly appreciated!

  • Tyler


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hello,

This sounds like something else is taking precedence over your .conf file. Can you check the /etc/apache2/sites-enabled folder for any other files referencing your domain? There is likely one there that’s setting the root to /var/www

If you modify that file and then restart Apache, things should go back to normal.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.