You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Dan Peder Eriksen <da...@stud.cs.uit.no> on 2006/08/02 16:49:11 UTC

[users@httpd] Access control and AJP

Hello,

I have configured my apache httpd server 2.2.3 to have
apache tomcat 5.5 handle requests with path /Tromsbuss.
Using the following line in httpd.conf:
ProxyPass /Tromsbuss ajp://127.0.0.1:8009/Tromsbuss

This all works nice. What I am trying to now is to provide
access control to /Tromsbuss. I have tried what was supplied
in the howto on access control in the documentation and it
works for anything that the httpd server is serving, however
once tomcat is serving it, it just does not prompt for
authentication information.

This is what I have been trying:
<Directory "/Tromsbuss">
	AuthType Basic
	AuthName "Restricted Files"
	AuthBasicProvider file
	AuthUserFile F:\Apache\passwd
	Require valid-user
</Directory>

I would be greatly appreiciate anyone who could help me out
or point me in the right direction so I can solve this.

Thanks for your time.

Sincerely Dan Peder Eriksen

---------------------------------------------------------------------
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] Access control and AJP

Posted by Dan Peder Eriksen <da...@stud.cs.uit.no>.
Hello Vincent,

that worked just perfect. Thanks for you quick reply :)

Sincerely Dan Peder Eriksen

On Wed, 02 Aug 2006 16:56:10 +0200, Vincent Bray <no...@gmail.com> wrote:

> On 8/2/06, Dan Peder Eriksen <da...@stud.cs.uit.no> wrote:
>> Hello,
>
> Hi,
>
> [snip]
>
>> This is what I have been trying:
>> <Directory "/Tromsbuss">
>>         AuthType Basic
>>         AuthName "Restricted Files"
>>         AuthBasicProvider file
>>         AuthUserFile F:\Apache\passwd
>>         Require valid-user
>> </Directory>
>
> <Directory> is entirely the wrong directive to use here, as it refers
> to a filesystem location, rather than a URI. Try <Location> instead.
>



---------------------------------------------------------------------
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] Access control and AJP

Posted by Vincent Bray <no...@gmail.com>.
On 8/2/06, Dan Peder Eriksen <da...@stud.cs.uit.no> wrote:
> Hello,

Hi,

[snip]

> This is what I have been trying:
> <Directory "/Tromsbuss">
>         AuthType Basic
>         AuthName "Restricted Files"
>         AuthBasicProvider file
>         AuthUserFile F:\Apache\passwd
>         Require valid-user
> </Directory>

<Directory> is entirely the wrong directive to use here, as it refers
to a filesystem location, rather than a URI. Try <Location> instead.

-- 
noodl

---------------------------------------------------------------------
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