Hi
my file C:\WINDOWS\system32\drivers\etc\hosts is
127.0.0.1 localhost
127.0.0.1 site1
127.0.0.1 site2
Works fine but the connection of Mysql is same to localhost/site1/site2
It's mean that if I open connection with localhost or site1 or site2 I will see same databases.
So I tried
127.0.0.1 localhost
127.0.0.1 site1
127.0.0.2 site2
The http://site2 works but in this case I cant connect to MySql
my httpd-vhosts.conf is:
<VirtualHost 127.0.0.2:80>
DocumentRoot c:/vhosts/site2
ServerName drupal2
<Directory c:/vhosts/site2>
Order allow,deny
Allow from all
Options +FollowSymLinks
RewriteEngine On
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot c:/vhosts/site1
ServerName drupal6b2
<Directory c:/vhosts/site1>
Order allow,deny
Allow from all
Options +FollowSymLinks
RewriteEngine On
AllowOverride All
</Directory>
</VirtualHost>
Why I am doing this? Because I would like to test MySql replication in my local machine and the new PDO php object.
So if I could have diferrents address 127.0.0.1, 127.0.0.2 ... my test will be more trustworthy.
Like I said I cant connect with 127.0.0.2 by MySql but I can open http://127.0.0.2/ .
How can help me?
Regards
Mario Moura
macm