Ubuntu 12.04 Apache2 - Index of page instead of Home page
I installed LAMP. I updated /etc/apache2/apache2.conf. I created /etc/apache2/sites-available/mydomain.com.conf. I created the /var/www/mydomain/publichtml,log,backups directories. I ran a2ensite. I put a index.html file in the publichosts directory and set the permissions.
When I enter the IP address for my site hosted on Linode, I get the following:
Index of /
Name Last modified Size Description
Apache/2.2.22(Ubuntu) Server at my IP Port 80
Sorry for what I am sure is a dumb question.
3 Replies
VirtualHost
Note that the first enabled site configuration, sorted by the configuration file name, will be the one that responds to requests coming to the bare IP address. If multiple sites are on the same server, I usually name them "001-primarysite.org," "002-secondarysite.org," etc. so that the main site will be the one that people land on in such a case.