|
From: Robin H. Johnson <robbat2 <at> gentoo.org>
Subject: Re: [GLEP] Web Application Installation. Plotting a VHOST config tool. Newsgroups: gmane.linux.gentoo.devel Date: 2003-08-06 04:37:41 GMT (5 years, 47 weeks, 3 days, 23 hours and 46 minutes ago)
On Wed, Aug 06, 2003 at 03:44:44AM +0100, Stuart Herbert wrote:
Content-Description: signed data
> On Wednesday 06 August 2003 3:16 am, Robin H.Johnson wrote:
> > Where do you see -vhosts fiting into having multiple instances of a
> > webapp on a single host ?
>
> Personally, I don't. If you want multiple instances of a webapp on a single
> host, the webapps need to be installed with +vhosts.
>
> -vhosts would be strictly single copy single domain scenario.
Ok, so if -vhosts, we install to /usr/share/webapp/(whatever) and
automatically run the webapp-config tool ?
if +vhosts, we install to /usr/share/webapp/(whatever) and the
administrator is left to run the rest himself.
> > > Btw, talked to Woodchip on IRC tonight, and he seemed happy enough
> > > with us moving the default -vhosts DocRoot from /home/httpd. So I'm
> > > gonna strongly advocate that the default -vhosts DocRoot moves to
> > > /var/www/localhost/public_html in the near future.
> > Sounds good.
As part of the planning, and a good first step
I'm plotting out a config tool for adding vhosts. All comments welcome
as this is intended to be a good outline of what the tool must do etc
before I write it (borrowing heavily from my exist custom scripts for
the purpose).
Stuart: once before you asked why I didn't use dynamic vhosts.
Two reasons behind it. Firstly, I want seperate log files for each
vhost, and secondly I have a lot of apache configuration directives that
vary per server (funky mod_rewrite stuff mainly to make variable
handling in php interesting). Based on this, I strongly believe that
'simple' vhosts are the best way to go in general.
Looking at the current /home/httpd:
We have:
htdocs cgi-bin error icon
All of these can go into the the /var/www/localhost/ quite easily.
/var/www/≤vhost>/{error,icon} symlink back to the default host usually
(anybody wanting to use them changes them as needed).
I feel the name 'htdocs' belies the meaning of the directory more
accurately, but I'm looking for input on that item.
In my personal setup, I have:
/etc/apache2/conf/vhosts/${FQDN#*.}/${FQDN}
/var/www/${FQDN#*.}/${FQDN}/{htdocs,cgi-bin}
/var/log/apache2/${FQDN#*.}/${FQDN}/
Then I do:
"include /etc/apache2/conf/vhosts/" in my main apache config
|
|
|