Question

Domain not loading to correct document root after mail gun setup

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
Subscribe
Share

Submit an 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.