Domain not loading to correct document root after mail gun setup

Posted April 1, 2016 1.8k views

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/ declared in my 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

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
1 answer


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.