What is Virtual Hosting?
Virtual Hosting is a technique by which web servers can serve more than one domain name on the same server. It can also be a variation of serving different sites on the same IP but on different ports.
Some possible solutions to this problem:
i) Check if .htaccess file is making any redirections
ii) Check if /LocalSettings.php have any invalid reference to root
ii) If you have freshly installed the server, check if AppArmor or SELinux is installed on the machine. If it is try to remove those software and try you website url.
To remove appArmor follow the below steps:
$ /etc/init.d/apparmor stop
$ update-rc.d -f apparmor remove
$ apt-get remove apparmor apparmor-utils
If Ubuntu server is installed anew, users tend to have a dilemma as to the steps involved in gaining access to the root account.
Root account exists but the password is not empty though.
The user should log in with the account he/she creates during the installation process.
Check how many network cards are installed in your system and if you are configuring the correct NIC card
Check the interfaces configuration settings
$ cat /etc/network/interfaces
Do not forget to restart the networking daemon after each change
$ sudo /etc/init.d/networking restart
After base Ubuntu installation, you have to configure the network interface file to get the network settings via DHCP/static IP address (if you haven’t configured during the initial installation). For this you need to edit /etc/network/interfaces file
$ vi /etc/network/interfaces
A quick note on the links related where to find the ubuntu releases and how to do a checksum to ensure that the downloaded copy
If you are downloading Ubuntu from the official site, MD5/SHA1 checksum (ubuntu hashes) for latest releases may not be listed there.
If it is not there, you can visit the site http://releases.ubuntu.com/. This site lists a comprehensive list of ubuntu releases and their checksums. Checksums ensure that the download is complete without corruption and is 100% accurate. So, it is always advisable to do a checksum after each download.
There are times when you would like to do some changes in your web server configuration file which might necessitate the server to be restarted in order for the changes to take effect.
Issuing a apache restart command will forcefully close all the connections made to the web server which will end any user related activity on the server.
If you would want to avoid such scenarios then issue the following command
$ sudo /etc/init.d/apache2 graceful (in ubuntu)