Question : set virtual host on Apache2.2 and PHP 5.3

Hi,

I want to set the virtual host on apache 2.2, so i can access my projects using IP and port number.

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

What i have placed upto now is as below:

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
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>


Hope i am clear to you.
Thanks
Addy

Answer : set virtual host on Apache2.2 and PHP 5.3

Listen 192.168.101.83
#chaffoteaux

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

that will work imho

you might need bind installed to do local dns instaed or apache as if you virtual domains increases its easier to use bind to do the ip side
Random Solutions  
 
programming4us programming4us