Re: multi-homed Apache? Anyone?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I setup my apache to:
Listen *:80
and it uses all four NICs in my box

On 26/11/06, tim <TimJowers@xxxxxxxxxxx > wrote:
Has anyone setup their home/SBA network with Apache on one computer but
serving content on two networks (DSL and cable)? I tried this but Apache
fails to reply on the secondary network. (It works with only 1 network
card in the box.) I have not done a TCP trace yet but does anyone have
Apache serving content on two NICs? For me it only replies on the
primary it seems. This could also be a problem of needing to manually
setup the routing tables but just want to know if anyone has this
working before I labor down that road.

Here is some more detail:
1. DSL network. 192.168.2.0
2. Cable network: 192.168.0.0
Hosts /etc/hosts:
127.0.0.1        localhost.localdomain   localhost
192.168.0.13    www.serviza.com
Apache config: /etc/httpd/conf/httpd.conf
Listen 80
#Listen 192.168.2.102:80 # Thought I could toggle the NIC with this but
fails to respond.
ServerName 192.168.0.13:80
#ServerName serviza.com:80   # Argh! Virtual Hosts fails with this -
maybe due to /etc/hosts?
Route route -n:
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
169.254.0.0     0.0.0.0         255.255.0.0      U     0      0        0 eth1
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth1
# This route does not look right to me. I thought I'd see something like:
> Destination     Gateway         Genmask         Flags Metric Ref
Use Iface
> 192.168.2.0     192.168.2.1         255.255.255.0   U     0
0        0 eth0
> 192.168.0.0     192.168.0.1        255.255.255.0   U     0
0        0 eth1
# Does not that make more sense? I tried setting these in
system-config-network but does not seem to take as the changes do not
show in route -n.

Thanks a bunch,
TimJowers
P.S> Running on CentOS (built from RHEL sources) or FC6. I tried
searching alot but the terms are too generic so no good matches were
found. Mostly the results were about running two instances of Apache.

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




--
Steve Swift
http://www.swiftys.org.uk
[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux