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

How to make a vhost the default for remote access? (no replies)

$
0
0
Hi there everyone!

I created a vhost and it's accessible on the machine via [website1] but I would like it to be the vhost that is accessed via lan and wan as doc root. So if someone visits 192.168.1.111 or wan IP, they get to website1. How do I go about doing this?

Here's my vhosts:

# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>


#
<VirtualHost *:80>
ServerName website1
DocumentRoot "d:/websites/website1"
<Directory "d:/websites/website1/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>




Thanks for your time!

Viewing all articles
Browse latest Browse all 3177

Trending Articles



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