Can anybody direct me to some good tutorial regarding how to setup virtual hosts using Apache 2.2? Here's my situation:

I've Apache running on my small laptop and that i want two websites-Body on port 80 and something on port 8089. I wish to access each site in the other computer on my small network simply by entering the device's Ip, for example http://192.168.1.102 and http://192.168.1.102:8089. Yet after i go into the second url, it directs me towards the website running on port 80.

Thanks ahead of time for just about any help.

Simply have 2 virtual hosts defined such as this, however with differeing DocumentRoots:

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.somecompany.com
    DocumentRoot "/docs/dummy-host.somecompany.com"
    ServerName dummy-host.somecompany.com
    ServerAlias www.dummy-host.somecompany.com
    ErrorLog "logs/dummy-host.somecompany.com-error.log"
    CustomLog "logs/dummy-host.somecompany.com-access.log" common
</VirtualHost>

<VirtualHost *:8089>
    ServerAdmin webmaster@dummy-host.somecompany.com
    DocumentRoot "/docs/dummy-host.somecompany.com"
    ServerName dummy-host.somecompany.com
    ServerAlias www.dummy-host.somecompany.com
    ErrorLog "logs/dummy-host.somecompany.com-error.log"
    CustomLog "logs/dummy-host.somecompany.com-access.log" common
</VirtualHost>

First you have to instruct Apache to pay attention around the ports you'll need:

Listen 80
Listen 8089

Second you have to tell it what related to 80 and 8089 traffic:

<VirtualHost *:80>
    DocumentRoot /website/site80
    ServerName internet.dev
</VirtualHost>

<VirtualHost *:8089>
    DocumentRoot /website/site8089
</VirtualHost>

Third you have to "allow" Apache to make use of individuals sites:

<Directory "C:/website/site80">
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

<Directory "C:/website/site8089">
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

after saving your changes to apache, stop apache and restart it. that can help load the brand new configurations. i understand it has been several weeks as your publish, but maybe this should help you or any other people searching for this

I discovered that this manual was very helpful since it mentions things you must do to have it to operate (such as the distinction between sites-available and sites-enabled and just how to link together). Plus it provides extensive practical good examples to make use of. I can not let you know the amount of occasions lessons have gave me a good example virtual host script but haven't explained where you can place it (/home/user/Documents? /usr/bin? /dev/null????)