New Install setting up VHosts
Posted: 27. February 2008 05:39
Hi there,
new to XAMPP not that new to Apache as I was running Apache 1.3 before hand. I had my Vhosts directories setup and was running mulitple dev sites on my local box. After a clean install and upgrade of my PC I decided to try XAMPP which Im happy with, should have done earlier.
So I get it installed and http://localhost/ works fine. I stop Apache edit http-vhosts.conf to add in my virtual directory as below.
When I restart Apache, both http://localhost and http://ltbraff (my site name) display a 403 access denied message. I remove the Vhosts directive and http://localhost is back working as expected (ie The default XAMPP admin page.)
I can only assume that the vhosts directive is some how overwriting the server root..
Only thoughts and I hope I have posted enough detail. Ill keep on Googling and testing for an answer but if you guys have any tips that would be great
new to XAMPP not that new to Apache as I was running Apache 1.3 before hand. I had my Vhosts directories setup and was running mulitple dev sites on my local box. After a clean install and upgrade of my PC I decided to try XAMPP which Im happy with, should have done earlier.
So I get it installed and http://localhost/ works fine. I stop Apache edit http-vhosts.conf to add in my virtual directory as below.
- Code: Select all
NameVirtualHost *:80
##Learn to be rich affiliate
<VirtualHost *:80>
DocumentRoot "D:/101 web technology/current_sites/ltbr_affiliates/lance_jenkins/"
ServerName ltbraff
</VirtualHost>
When I restart Apache, both http://localhost and http://ltbraff (my site name) display a 403 access denied message. I remove the Vhosts directive and http://localhost is back working as expected (ie The default XAMPP admin page.)
I can only assume that the vhosts directive is some how overwriting the server root..
Only thoughts and I hope I have posted enough detail. Ill keep on Googling and testing for an answer but if you guys have any tips that would be great