httpd.conf - How to set up virtual hosts on Apache 2.2 -
Anyone can direct me to a good tutorial on how to install virtual hosts using Apache 2.2 Are you Here's my situation:
I'm running Apache on my laptop and I have two websites on port 80-- another port 8089. I want to use each site from other computer on my network by entering one The computer's IP address, such as and still, when I enter the second URL, it directs to my website going on at 80
thanks port for any help.
Just like 2 virtual hosts have defined, but with DocumentRoots differeing:
< Pre> & lt; VirtualHost *: 80 & gt; ServerAdmin webmaster@dummy-host.somecompany.com DocumentRoot "/docs/dummy-host.somecompany.com" server name dummy-host.somecompany.com server's www.dummy-host.somecompany.com Errorlog "log / dummy-host .somecompany .com-error.log "custom log" log / dummy-host. Somecompany.com-access.log "General" / VirtualHost & gt; & Lt; VirtualHost *: 8089 & gt; ServerAdmin webmaster@dummy-host.somecompany.com DocumentRoot "/docs/dummy-host.somecompany.com" server name dummy-host.somecompany.com server's www.dummy-host.somecompany.com Errorlog "log / dummy-host .somecompany .com-error.log "custom log" log / dummy-host. Somecompany.com-access.log "General" / VirtualHost & gt;
Comments
Post a Comment