When I assign an IP to a virtual host, I see that visiting the assigned servername (http://serverName) will display the same page as localhost. Is that the expected behavior? Is there way to use either/or to visit the site?
For example, using the virtual host defined below (a WordPress install), I can visit 127.0.0.12 but [mywptest] opens the same page as localhost.
Thanks.
<VirtualHost 127.0.0.12:80>
ServerName mywptest
DocumentRoot "d:/_tmp/_supertmp/wptest03"
<Directory "d:/_tmp/_supertmp/wptest03/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
For example, using the virtual host defined below (a WordPress install), I can visit 127.0.0.12 but [mywptest] opens the same page as localhost.
Thanks.
<VirtualHost 127.0.0.12:80>
ServerName mywptest
DocumentRoot "d:/_tmp/_supertmp/wptest03"
<Directory "d:/_tmp/_supertmp/wptest03/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>