Hi,
I am having a problem with the Virtual names deal in the httpd.conf
I have 2 folders. The www where is has my site and the www2 that has my original version...So far when i want to test something i rename the folder www2 to www and change the other one to something else in order to preview it.
I read the posts here in the forum that i can have a home.local and testsite.local option in my Wamp server...
So far i tried to do this by reading the posts but the Apache server would not start.The MYSQL was running though...
Please someone can help me out here? I 've been trying for 2 hours now with any possible combination.
So far i have this at the end of the file:
NameVirtualHost *:80
#
#### localhost ####
#
<VirtualHost *:80>
ServerAdmin root@localhost
DocumentRoot C:/wamp/www
ServerName home.local
ErrorLog C:/wamp/apache2/logs/error.log
CustomLog C:/wamp/apache2/logs/access.log common
<Directory "C:/wamp/www">
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Include "c:/wamp/apache2/conf/alias/phpmyadmin.conf"
</VirtualHost>
#
#### localhost2 ####
#
<VirtualHost *:80>
ServerAdmin root@localhost
DocumentRoot C:/wamp/www2
ServerName test.local
ErrorLog C:/wamp/apache2/logs/error.log
CustomLog C:/wamp/apache2/logs/access.log common
<Directory "C:/wamp/www2">
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Include "c:/wamp/apache2/conf/alias/phpmyadmin.conf"
</VirtualHost>
Thanks
-mario
________________ edited ___________________
Ok i manage to get the WAMP server going by doing this
NameVirtualHost *:80
#
#### localhost ####
#
<VirtualHost *:80>
ServerAdmin root@localhost
DocumentRoot C:/wamp/www
ServerName home.local
</VirtualHost>
#
#### localhost2 ####
#
<VirtualHost *:80>
ServerAdmin root@localhost
DocumentRoot C:/wamp/www2
ServerName test.local
</VirtualHost>
But it totaly ignores me....only the [
localhost] works and nothing else...
What am i doing wrong ?
Post Edited (05-11-06 00:23)