set virtual host on Apache2.2 and PHP 5.3

Posted by Avinash on Server Fault See other posts from Server Fault or by Avinash
Published on 2010-06-07T10:17:42Z Indexed on 2010/06/07 10:22 UTC
Read the original article Hit count: 526

Filed under:
|

Hi
I want to set my Virtual host on Apache 2.2.

So, I can access my site using my IP address and Port number.

Like http://192.168.101.111:429 for one site, http://192.168.101.111:420 for other site and so on.

My machine OS in Windows 7.

I have tried below in my httpd.conf file.

Listen 192.168.101.83:82
#chaffoteaux

<Directory "Path to project folder">
    AllowOverride All
</Directory>
<VirtualHost 192.168.101.83:82>
    ServerAdmin [email protected]
    DirectoryIndex index.html index.htm index.php index.html.var
    DocumentRoot "Path to project folder"
    #ServerName dummy-host.example.com
    ErrorLog logs/Zara.log
    #ErrorLog logs/dummy-host.example.com-error_log
    #CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

Can you please suggest any thing missing in my configuration.

Thanks in advance

Avinash

© Server Fault or respective owner

Related posts about virtualhosts

Related posts about apache2.2