Re: [us...@httpd] mixing dynamic and static virtual host definitions

2010-10-25 Thread Rich Bowen
On Oct 25, 2010, at 2:12 PM, Matt Price wrote: On 10-10-25 12:23 PM, Rich Bowen wrote: On Oct 25, 2010, at 12:07 PM, Matt Price wrote: The solution is to put a ServerName (and possibly one or more ServerAlias directives) in the second VirtualHost. thank you. Things seem to work now -- th

Re: [us...@httpd] mixing dynamic and static virtual host definitions

2010-10-25 Thread Matt Price
On 10-10-25 12:23 PM, Rich Bowen wrote: On Oct 25, 2010, at 12:07 PM, Matt Price wrote: The solution is to put a ServerName (and possibly one or more ServerAlias directives) in the second VirtualHost. thank you. Things seem to work now -- though I confess to being a bit surprised that Serv

Re: [us...@httpd] mixing dynamic and static virtual host definitions

2010-10-25 Thread Rich Bowen
On Oct 25, 2010, at 12:07 PM, Matt Price wrote: ok, I'm trying to understand but I guess I don't quite get it. If I have a file like this: DocumentRoot /home/drupal-commons/drupal_commons ServerName tdhc.digitalcommons.ca UseCanonicalNameOff VirtualDocumentRoot /var/

Re: [us...@httpd] mixing dynamic and static virtual host definitions

2010-10-25 Thread Matt Price
On 10-10-25 11:21 AM, Eric Covener wrote: then it pre-empts everything (not what I expected, since I'm using ServerName, which I thought limited the application of this stanza to instances in which HTTP_HOST matches. ServerName. Whichever one you put first is the default, which is used when the

Re: [us...@httpd] mixing dynamic and static virtual host definitions

2010-10-25 Thread Eric Covener
> then it pre-empts everything (not what I expected, since I'm using > ServerName, which I thought limited the application of this stanza to > instances in which HTTP_HOST matches. ServerName. Whichever one you put first is the default, which is used when there's no matching ServerName/ServerAlias

Re: [us...@httpd] mixing dynamic and static virtual host definitions

2010-10-25 Thread Matt Price
On 10-10-23 09:33 AM, Eric Covener wrote: 1) if the new stanza is placed above the old one, then ALL traffic arriving at this server is directed to /home/drupal-commons/drupal_commons. 2) if the new stanza goes below the old, it is ignored entirely (this is what I expected). You need 1 "NameV

Re: [us...@httpd] mixing dynamic and static virtual host definitions

2010-10-23 Thread Matt Price
On 10-10-23 09:02 AM, Igor Galić wrote: - "Matt Price" wrote: VirtualDocumentRoot /home/drupal-commons/drupal_commons ServerName tdhc.digitalcommons.ca I don't understand why you're using VirtualDocumentRoot here, even though it's not a dynamic vhost. I tr

Re: [us...@httpd] mixing dynamic and static virtual host definitions

2010-10-23 Thread Matt Price
Thanks for the input Igor, On 10-10-23 09:14 AM, Igor Galić wrote: A better way of handling this would be: Options FollowSymlinks AllowOverride None Deny from all # I like Contentnegotiation! Options +MultiViews # I usually don't allow .htaccess, but.. yeah. #

Re: [us...@httpd] mixing dynamic and static virtual host definitions

2010-10-23 Thread Igor Galić
- "Eric Covener" wrote: > > 1) if the new stanza is placed above the old one, then ALL traffic > arriving > > at this server is directed to  /home/drupal-commons/drupal_commons. > > 2) if the new stanza goes below the old, it is ignored entirely > (this is > > what I expected). > > You need

Re: [us...@httpd] mixing dynamic and static virtual host definitions

2010-10-23 Thread Eric Covener
> 1) if the new stanza is placed above the old one, then ALL traffic arriving > at this server is directed to  /home/drupal-commons/drupal_commons. > 2) if the new stanza goes below the old, it is ignored entirely (this is > what I expected). You need 1 "NameVirtualHost *:80" to tell Apache to do

Re: [us...@httpd] mixing dynamic and static virtual host definitions

2010-10-23 Thread Igor Galić
> > --- > > > > Options FollowSymLinks > > AllowOverride All > > > > That is so very wrong, I can't even begin to describe how wrong :-/ > You are allowing .htaccess files from / - which means your > performance will be degraded by a good 50% > But you'

Re: [us...@httpd] mixing dynamic and static virtual host definitions

2010-10-23 Thread Igor Galić
- "Matt Price" wrote: > Hello, > > I'm running apache 2.2.16 on a recent Ubuntu Maverick install (ubuntu > > package version 2.2.16-1ubuntu3). This is on a standalone box with > just > a few small websites on it. These sites mostly run wordpress > installations, which I manage with the

[us...@httpd] mixing dynamic and static virtual host definitions

2010-10-23 Thread Matt Price
Hello, I'm running apache 2.2.16 on a recent Ubuntu Maverick install (ubuntu package version 2.2.16-1ubuntu3). This is on a standalone box with just a few small websites on it. These sites mostly run wordpress installations, which I manage with the dynamic stanzas suggested by the debian p