[wplug] Apache help

Tom Rhodes trhodes at FreeBSD.org
Wed Apr 9 18:36:48 EDT 2008


On Wed, 9 Apr 2008 10:59:16 -0400
"Michael Semcheski" <mhsemcheski at gmail.com> wrote:

> On Wed, Apr 9, 2008 at 10:52 AM, Tom Rhodes <trhodes at freebsd.org> wrote:
> 
> > Personally, I'd move the allow,deny directives out of the virtual host and
> > make them global
> 
> 
> That might have unintended consequences if he's got other sites running on
> this server.

Proper configuration would be to AllowOverrides - that's why
Apache them.  In all the web servers my company runs (around 150
or so), we set the global to be very open and restrict from there
on.  This isn't saying you're wrong, I'm just noting how I do
things and offering up that option.

> 
> To me, the fact that the global DocumentRoot is showing up, instead of the
> vhost's DocumentRoot, says that there's some configuration problem (possibly
> a typo) in the problem vhost.

Perhaps DNS - but doubtful.  Though, the vhost looked to be
configured normally to me.  But I'm obviously not logged in and
looking around.

> 
> I'd scrutinize the heck out of the vhost.  Make sure its got a .conf file
> extension and is in the right directory.  Make sure there are no typos.
> Remove the trailing slash from the DocumentRoot (though I don't think this
> is the problem.)
> 
> If that doesn't work, take one of the vhosts that is, copy it, and carefully
> alter it to do what you want.  At each step along the way, reload the
> configuration and see when / if it breaks.
> 


-- 
Tom Rhodes


More information about the wplug mailing list