Hello
Well here is a quick guide.
1. Open up Hosts file in windows >system32>drivers>etc>hosts
I have edited in theses lines:
- Code: Select all
127.0.1.1 www.lmambo.com
127.0.1.1 www.local.amambo.com
127.0.1.1 www.local.e107.com
127.0.1.1 www.local.xara.com
127.0.1.1 www.local.plone.com
127.0.1.1 www.local.phpwebsite.com
127.0.1.1 www.local.drupal.com
127.0.1.1 www.local.phpmyadmin.com
127.0.1.1 www.local.nucleus.com
2. Then open up httpd in xmaap>apache>conf and down the bottom (you will have to search for the correct area:
- Code: Select all
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.lmambo.com
DocumentRoot "C:/www/mambo"
</VirtualHost>
<VirtualHost *:80>
ServerName www.local.storecore.com:80
DocumentRoot "C:/www/storecore"
</VirtualHost>
<VirtualHost *:80>
ServerName www.local.e107.com:80
DocumentRoot "C:/www/e107"
</VirtualHost>
<VirtualHost *:80>
ServerName www.local.xara.com:80
DocumentRoot "C:/www/xara"
</VirtualHost>
<VirtualHost *:80>
ServerName www.local.amambo.com:80
DocumentRoot "C:/www/amambo"
</VirtualHost>
<VirtualHost *:80>
ServerName www.local.phpwebsite.com:80
DocumentRoot "C:/www/phpwebsite"
</VirtualHost>
<VirtualHost *:80>
ServerName www.local.drupal.com:80
DocumentRoot "C:/www/drupal"
</VirtualHost>
<VirtualHost *:80>
ServerName www.local.phpmyadmin.com:80
DocumentRoot "C:/www/phpmyadmin"
</VirtualHost>
<VirtualHost *:80>
ServerName www.local.nucleus.com:80
DocumentRoot "C:/www/nucleus"
</VirtualHost>
Why have i put .local. in? Well it helps when i am working on real websites and then i know i am not editing the live version as to speak
e.g.
live =
www.mywebsite.comlocal =
www.local.mywebsite.comAlso, put these lines in your httpd
- Code: Select all
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/www"
and also:
- Code: Select all
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/www">
This is where i put all my websites as you can see from the vitural hosts above. It could be anything, but make sure you make them all the same.
Bugman