Morgan Gangwere wrote:
use IP Masquerading, thats what *:80 does. its just you can have
different requests come In to different places. you can also have eth0
+ eth1 have the same IP. that might help. look in your DSL box's
settings
On 11/26/06, Steve Swift <[EMAIL PROTECTED]> wrote:
I setup my apache to:
Listen *:80
and it uses all four NICs in my box
On 26/11/06, tim <[EMAIL PROTECTED] > 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:
[EMAIL PROTECTED]
> " from the digest:
[EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Steve Swift
http://www.swiftys.org.uk
I've successfully done this but I feel your problem lies with your
Isp'S. First off, most DSL providers allow incoming connections on port
80, while most cable providers block port http, smtp and Dsn ports. So
before racking your brain verifying that your server can do this, make
absolutely sure your cable provider allows you to run a server on port
80. Took me several hours to pin the problem to the ISP, hopefully this
will save you the trouble I had. If you in fact can host a server
through cable provider, respond back and I'll help you trouble shoot.
Dan
---------------------------------------------------------------------
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]