Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

VirtualHost with both IP and ServerName? (1 reply)

$
0
0
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>

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>