httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From WC -Sx- Jones <li...@insecurity.org>
Subject Re: [users@httpd] virtual hosting and multiple ip's on one system
Date Tue, 20 May 2003 01:05:49 GMT
Further help -

On Monday, May 19, 2003, at 08:38  PM, WC -Sx- Jones wrote:
> On Monday, May 19, 2003, at 08:29  PM, SteelHead wrote:
>> how do I implement virtual domains with multiple IPs on one box 
>> running
>> apache with my redhat 9?
>
>
> You want that with NAT or without?


In case you are wondering, I use NAT with a filtering router:

# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
         inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1492 index 
2
         inet 192.168.1.69 netmask ffffff00 broadcast 192.168.1.255
         ether 8:0:20:a7:fc:f5
hme0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1492 
index 2
         inet 192.168.1.70 netmask ffffff00 broadcast 192.168.1.255
lo0: flags=2000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6> mtu 8252 index 1
         inet6 ::1/128
hme0: flags=2000841<UP,RUNNING,MULTICAST,IPv6> mtu 1500 index 2
         ether 8:0:20:a7:fc:f5
         inet6 fe80::a00:20ff:fea7:fcf5/10

I use dyndns.org and a ddclient script to make sure my server can 
always be *seen* from the public Internet.  if you have static IPs that 
are private (start off as 10, 172, 192, et al; then you will need to 
set up a NAT as well.)

For multiple hosts with unique IPs, use something like:

<VirtualHost 1.2.3.4>
# ...
</VirtualHost>
<VirtualHost 5.6.7.8>
# ...
</VirtualHost>
<VirtualHost 9.10.11.12>
# ...
</VirtualHost>
<VirtualHost 13.14.15.16>
# ...
</VirtualHost>

With *different* ServerDocRoot directories for each VH section...

Warning; VH sections inherit the global httpd.conf section - that may 
cause strange side-effects IF you have any miss-configurations in that 
area.

Warning 2:  Most DSL/Cable routers do not route/forward more than one 
IP/Port set per system -- not without BIG bucks invested at any rate...

Cheers;

http://insecurity.org/
_Sx____________________
  ('>    iudicium ferat
  //\   Have Computer -
  v_/_    Will Hack...

               \|/ ____ \|/
               "@'/ .. \`@"
               /_| \__/ |_\
                  \__U_/


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message