QUOTE (from httpd.conf) |
<VirtualHost 192.168.1.2:80> ServerAdmin [email protected] DocumentRoot c:/appserv/junk ServerName 192.168.1.2 ErrorLog c:/appserv/192.168.1.2.error.log CustomLog c:/appserv/192.168.1.2.access.log common </VirtualHost> |
Apache was developed for the *nixes so remember the directory slashes go this way /, not the windows way \.
This makes the c:\appserv\junk folder the root of the websight bound to 192.168.1.2 . So any port 80 traffic directed to the 192.168.1.2 address will see that websight. If in this senerio we were using a soho router, then seting the router to forward it's port 80 traffic to the 192.168.1.2 would make it accessable from the external IP the router has.
Rember a stop and restart of the apache service is need after a change is made to the httpd.conf for it to take effect.