You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jack Lauman <jl...@nwcascades.com> on 2004/05/03 21:47:55 UTC
Re: [users@httpd] Re: {SPAM 02.2} Re: [users@httpd] Virtual Hosts
and Webalizer
According to the docs at the following URL, adding 'AuthType' etc should
be done inside a <directory block>. There are a lot of things that
don't work inside <location> blocks. Personally I would put this in an
'.htaccess' file and be done with it.
<Directory /usr/local/apache/htdocs/sekrit>
AuthType Basic
AuthName intranet
AuthUserFile /www/passwd/users
AuthGroupFile /www/passwd/groups
Require group customers
Order allow,deny
Allow from internal.com
Satisfy any
</Directory>
http://httpd.apache.org/docs/howto/auth.html
Jack
Joshua Slive wrote:
> On Mon, 3 May 2004, Richard Humphrey wrote:
>
>>The error log is actually giving the same error.
>>
>>[Mon May 03 14:02:22 2004] [error] [client x.xx.xxx.xx] client denied by
>>server configuration: /var/www/mydomain
>
>
> Then you still have a reference to that directory in your config that you
> shouldn't have.
>
>
>>I have parsed out all the comments in my httpd.conf and this is how it
>>looks.
>>
>>Sorry for the long post but I really want to get this fixed.
>
>
> Except that the important part of the configuration is obviously in one of
> the Include'd files, not what you posted.
>
> Find the stuff referring to /var/www/mydomain and you can at least start
> to address the problem.
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Virtual Hosts and Webalizer
Posted by Joshua Slive <jo...@slive.ca>.
On Mon, 3 May 2004, Jack Lauman wrote:
> According to the docs at the following URL, adding 'AuthType' etc should
> be done inside a <directory block>. There are a lot of things that
> don't work inside <location> blocks.
In fact, pretty much anything that works in <Directory> also works in
<Location>, with a few exceptions. See:
http://httpd.apache.org/docs-2.0/sections.html#whatwhere
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org