From: Aleksander <aleksander@krediidiinfo.ee>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Several IP's, one mail and http server
Date: Mon, 02 Jan 2006 15:18:27 +0000 [thread overview]
Message-ID: <43B94443.3080403@krediidiinfo.ee> (raw)
In-Reply-To: <43B93B76.7000702@krediidiinfo.ee>
Edmundo Carmona wrote:
>I don't know about the mail server, but apache supports virtual
>domains, and so the requests will be served differently depending on
>the request's domain, and not the IP of the host. A single IP should
>do the trick.
>
Yes, that's the case when the hostnames have the same IP. But when they
have different ones and apache tries to answer their request, the
clients will denied it, as it comes from a different IP.
Some ascii 'art' might help:
192.168.0.10 has external IP a.b.c.d (iptables SNAT)
a.b.c.d:80 DNAT \
---> 192.168.0.10:80
a.b.c.f:80 DNAT /
The request from the client arrives at apache and apache answers, no
matter via which external IP it comes. But when the request comes via
a.b.c.f, then the client will be expecting the answer form a.b.c.f, not
a.b.c.d, where it will come from. Apache is assigned a.b.c.d and has no
way of changing that, actually apache thinks it sending from
192.168.0.10 anyway.
The only solution I see is having a (virtual) interface for each
external IP. That so?
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
next prev parent reply other threads:[~2006-01-02 15:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-02 14:40 [LARTC] Several IP's, one mail and http server Aleksander
2006-01-02 14:44 ` Edmundo Carmona
2006-01-02 15:18 ` Aleksander [this message]
2006-01-02 15:29 ` Edmundo Carmona
2006-01-02 15:42 ` Aleksander
2006-01-02 15:47 ` Edmundo Carmona
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43B94443.3080403@krediidiinfo.ee \
--to=aleksander@krediidiinfo.ee \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.