I've configured two virtual host cuckoo.net
and fb.core.net
are located to local ip address (127.0.0.1)
But when I access the second domain: fb.core.net
, it always returns the first.
Please consider the below configuration to help me, I really don't know what I am wrong here.
<VirtualHost *:80>
DocumentRoot "d:/_iLearning/iCuckoo"
ServerName cuckoo.net
ServerAlias www.cuckoo.net
SetEnv APPLICATION_ENV "development"
<Directory d:/_iLearning/iCuckoo>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "d:/_Devs/fbcore/public"
ServerName fb.core.net
ServerAlias www.fb.core.net
SetEnv APPLICATION_ENV "development"
<Directory d:/_Devs/fbcore/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Add fb.core.net to the ServerAlias
<VirtualHost *:80>
DocumentRoot "d:/_Devs/fbcore/public"
ServerName fb.core.net
ServerAlias www.fb.core.net fb.core.net # you can add more than one here
SetEnv APPLICATION_ENV "development"
<Directory d:/_Devs/fbcore/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With