Posted by:
yfastud
(---.cable.mindspring.com)
For local network access, put site1.html in wamp/www/site1 and site2.html in wamp/www/site2. And access them like this:
[
localhost] will see site1.html
[
localhost] will see site2.html
For worldwide access, setup Virtual Host in wamp/apache2/conf/httpd.conf with the basic code below:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "C:\wamp\www\site1"
ServerName your_web_ip/site1
</VirtualHost>
<VirtualHost *>
DocumentRoot "C:\wamp\www\site2"
ServerName your_web_ip/site2
</VirtualHost>
And access them like this:
[
your_web_ip] will see site1.html
[
your_web_ip] will see site2.html
Remember, the code above is just the basic for reference only, you should have a better setup. In addition, I'm not sure it's the right setup for using ip or not. Have to test yourself.
Hope this help.