Every now and then I come across a stupidly annoying problem with my website and it’s configuration before I can move on. This time it’s virtual hosts. Apache has the ability to allow you to host mobile domain names from the same directory and web server using the virtual hosts configuration.
I’m currently at this stage. I own more than one domain name and it’s annoying me.
I’m currently experiencing two problems with the domain
- Apache not “serving” the index page for the virtual host directory. All it is serving is blank pages.
Initially I thought this was a permission problem. I later identified it and remembered it was the cause of problem#2 which is why I gave up in the first place. For reference, in the httpd.conf file there is a section called Include conf/extra/httpd-vhosts.conf this must be enabled (remove #) otherwise it won’t load the files
- Apache now serves the home pages and finds them, but ignores the main /www root of the web server and goes straight to the virtual host directory
This is the current problem I’m encountering. Once I work out the virtual hosts configuration issue, I will post an update for future reference if I need to go back to it. Or help someone else out
I did a quick google search and find this post. Free link.
I’m currently researching it