Apache Still Showing Default Page

January 31, 2015 3.2k views

I’ve set up a Django CMS site and created a conf file in the /etc/apache2/sites-available directory and enabled it using the a2ensite command. It works. Sort of.

The first 2 lines of my conf fle are:

ServerName www.maneki-neko-con.org
ServerAlias maneki-neko-con.org

When I browse to http://www.maneki-neko-con.org/ everything looks good, but when I browse to http://maneki-neko-con.org/ I see the default Apache2 Ubuntu Default page.

What am I doing wrong?

– Norman Lynch
Webmaster, Maneki Neko Con

1 comment
  • Have you restarted Apache after modifying the virtualhost config? Are there any other virtualhosts that have maneki-neko-con.org set as the ServerName or ServerAlias?

1 Answer

I found the problem. File /etc/hostname contained “maneki-neko-con.org”. I edited it to contain “maneki-neko-con” and now everything works perfectly.

– Norman Lynch
Webmaster, Maneki Neko Con

Have another answer? Share your knowledge.

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