Re: Multihomed hosts and virtual web hosts
Will Partain <[email protected]> Sun, 04 May 2003 17:36:26 +0100
| Newsgroups | gmane.comp.sysutils.ark.devel |
|---|---|
| Message-ID | <[email protected]> |
Joel S writes:
> None of the Sidai host and network configurations support multiple IP
> addresses per host. Instead, the code is sprinkled with error messages like
> this:
>
> raise ark.error.GeneralPanic, 'Can only have one IP address at the moment
> :-('
>
> Has anyone turned those frowns into smiles?
No, but I am happy to help. If you tell me/us "I've got this
here, and I want that to appear in yonder file", I'll see
what I can do.
> Our web servers have multiple IP addresses on the public side to support
> virtual web hosts. ...
[As he said] Jonathan knows the most about this, having
previously done a site with a "thing" called 'website'.
(Which sounds pretty close to what you want.)
I will also mention that the other style of "bringing things
together" is the "fragment style" (to coin a term). So, for
example, anything (package, user, disk chunk, ...) in the
system that needs a bit of cronly root action can add a
<sys-cron-fragment> ... </sys-cron-fragment>
and that will get swept up and put in root's crontab.
I use that style for our (verilab2's) httpd.conf; every
package that needs a little web-server action just adds an
<httpd-conf-fragments> field. The one for our roundup (issue
tracker) server [from package: roundup-config] is below.
As packages come and go, the httpd.conf(s) naturally grow
and shrink to fit what's required.
The idea ought to be: put your information where it most
"naturally" fits and is easily maintained (whether in
'website' objects or in "fragments" here and there); then
let the ARK machinery mangle it into the right places...
Will
<!-- ..................................................... -->
<httpd-conf-fragments><table>
<entry name="verilab-intranet"><![CDATA[
# =================================================================
# roundup thing
Alias /issue "/our/share/roundup/cgi-bin/roundup.cgi"
<Directory "/our/share/roundup/cgi-bin">
AllowOverride None
Options ExecCGI FollowSymLinks
SetHandler cgi-script
Order allow,deny
require valid-user
Allow from all
</Directory>
# Using setenv here saves customising the roundup.cgi file
SetEnv ROUNDUP_LOG "/sys/roundup/log"
SetEnv TRACKER_HOMES "general=/sys/roundup/general:support=/sys/roundup/support:vzdoc=/sys/roundup/vzdoc"
SetEnv ROUNDUP_DEBUG "1"
# End of roundup config
]]></entry>
</table></httpd-conf-fragments>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf