[OPEN-ILS-DEV] Virtual Hosts
David Christensen
david.a.christensen at gmail.com
Tue Jul 14 14:58:47 EDT 2009
In an effort to allow Apache on our Evergreen server to serve up other
virtual hosts, I've done some editing to a few files
(/etc/apache2/eg_vhost.conf, /etc/apache2/httpd.conf, and
/etc/apache2/sites-available/eg.conf).
I've moved (almost) everything in eg.conf that is not within <virtualhost>
tags into eg_vhost.conf (which gets included by eg.conf). The PerlRequire
and PerlChildInitHandler stuff needed to go in httpd.conf... but it seems to
work :-)
One caveat: eg.conf must (I think) be the first virtual host loaded; you
could either rename eg.conf to something like 00-eg.conf, or perhaps put the
NameVirtualHost lines into httpd.conf as well (though I haven't tried that).
I've attached diffs (note that you'll have to edit eg.conf afterwards, to
put your own ServerName back in....).
Now, I'm not saying that hosting another site on your Evergreen server is
necessarily a particulary good idea... but it does solve a small problem for
us, and I thought others might benefit from the legwork :-)
Many thanks to berick on IRC for pointing me in the right direction!
-David Christensen
Developer's Certificate of Origin
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
Signed-off-by: David Christensen (David.A.Christensen at gmail.com)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20090714/ae8c0946/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eg_vhost.conf.diff
Type: text/x-diff
Size: 3276 bytes
Desc: not available
Url : http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20090714/ae8c0946/attachment.diff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: httpd.conf.diff
Type: text/x-diff
Size: 602 bytes
Desc: not available
Url : http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20090714/ae8c0946/attachment-0001.diff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eg.conf.diff
Type: text/x-diff
Size: 3510 bytes
Desc: not available
Url : http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20090714/ae8c0946/attachment-0002.diff
More information about the Open-ils-dev
mailing list