I'm trying to setup Apache virtual hosting in openSUSE, for a site called
abc.com (example purposes only). When I go to
http://localhost/mysites/abc.com/index.html on my browser, it opens correctly. However, when I go to
http://abc.com, it doesn't open the said index.html file, which is located on
/files/htdocs/mysites/abc.com/index.html. Instead, it opens the website of the TV network.
Here is my configuration:
DocumentRoot "/files/htdocs" <Directory "/files/htdocs"> Options None AllowOverride All Order allow,deny Allow from all </Directory> NameVirtualHost 127.0.0.1
Note: I didn't change the other default values.
vhosts.d/, included thru
<VirtualHost 127.0.0.1> DocumentRoot /files/htdocs/mysites/abc.com servername abc.com </VirtualHost>