httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37201] - Add <IfInterface IP> syntax to apache configuration
Date Fri, 21 Oct 2005 20:26:48 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37201>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37201





------- Additional Comments From glenn@apache.org  2005-10-21 22:26 -------
> Kinda cool, can you describe the use-case a bit more? Is this for when an IP
> address is added to a  system and you want httpd to behave differently after
> a restart?

Thanks. Here is the use case in more depth.

Say you have 500 virtual host's. A mix of IP based for SSL and name based for
non SSL. You have three servers in a cluster to host these 500 virtual hosts.
You place each virtual host config in a directory named by the IP address used
for the virtual host. These directories are located on an NFS server which is 
shared with each of the three servers. All three servers can see the config
files for all virtual hosts by IP address. But when apache starts on each
server it will only configure those virtual hosts for which the IP address
is configured on its interface.

The hosts in the cluster use spread and wackamole to provide automatic failover.
If server 1 goes down the IP's for virtual hosted websites currently on server 1
get split up between server 2 and 3. Then just doing an apachectl graceful will
instantiate those new virtual hosts on the other two servers.

Apache is also using mod_log_spread and spreadlogd for setting up a log server.

> From a brief inspecion: Hard-coding APR_INET means that this patch will not
> work with IPv6, at all. You  need to do the info_get first, with APR_UNSPEC
> as the family argument. Then create the socket using the sa->family variable.

Thanks, I was wondering how to best provide IPV6 support.

> The EADDRINUSE error condition for bind() might need to be handled, for
> restarts - though I havn't  tested this.

I have tested doing an apachectl graceful and <IfInterface ...> seems to
work fine. This has only been tested on FreeBSD 5.3.

> The syntax and log messages are majorly confusing, because "arg" is not
a network interface; it's an IP address.

Yes, the log messages could be cleaned up.

Perhaps <IfBind ...> rather than <IfInterface ...> ?




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message