virtualdomain [multiple site] setup for the complete newb
Posted: 13. February 2007 00:52
I've been crawling this board for two days for a simple how-to on how to work on multiple sites. Nothing I've tried has worked. It's a commonly addressed issue here and yet there is no on-ramp tutorial to speak of... anywhere. Izzy's posts have been helpful but I'm not getting something.
I decided to create a thread that hopefully will fill in the blanks so that I can write a comprehensive getting started tut.
My problem: I'm just an html/php/css coder. I don't know squat about web servers or how to configure them. Thus why I'm using a WAMP at all.
I want to simply add VirtualHosts (vhosts) so that I can work on multiple sites.
All I want is be able to do is open this file in my browser:
D:/www/mySite_local/index.html
by typing this into the address bar:
http://mySite_local/
The XAMPP install is in C:\Program Files\xampp
From what I've read, all I should have to do is set my httpd-vhosts.conf file to look like this:
That allows apache to restart ok but I'm lost from there. http://mySite_local/ just give me the can't find error.
My questions:
1. Is there anything wrong with my httpd-vhosts.conf?
2. Are there any other files I need to edit? (remember this is a default out of the box install)
3. Does my hosts file in system32\drivers\etc have anything to do with it? Do I need to add anything to it?
4. I'm on a network at my office. Does that mess with my ports or otherwise prevent this from working?
Thank ahead of time. I'll so a nice write up once I get it working.
I decided to create a thread that hopefully will fill in the blanks so that I can write a comprehensive getting started tut.
My problem: I'm just an html/php/css coder. I don't know squat about web servers or how to configure them. Thus why I'm using a WAMP at all.
I want to simply add VirtualHosts (vhosts) so that I can work on multiple sites.
All I want is be able to do is open this file in my browser:
D:/www/mySite_local/index.html
by typing this into the address bar:
http://mySite_local/
The XAMPP install is in C:\Program Files\xampp
From what I've read, all I should have to do is set my httpd-vhosts.conf file to look like this:
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin stranskydesign@gmail.net
DocumentRoot D:/www/mySite_local
ServerName mySite_local.com
ServerAlias www.mySite_local.com
</VirtualHost>
That allows apache to restart ok but I'm lost from there. http://mySite_local/ just give me the can't find error.
My questions:
1. Is there anything wrong with my httpd-vhosts.conf?
2. Are there any other files I need to edit? (remember this is a default out of the box install)
3. Does my hosts file in system32\drivers\etc have anything to do with it? Do I need to add anything to it?
4. I'm on a network at my office. Does that mess with my ports or otherwise prevent this from working?
Thank ahead of time. I'll so a nice write up once I get it working.