logoon  windows
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Forum Register Log in  RSS Apache Lounge


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored by anyone.

Your donations will help to keep this site alive and well, and continuing the building of the binaries.




Authorization exception - mod_jk path

 
Post new topic   Reply to topic    Apache Forum Index -> Apache third-party Modules



View previous topic :: View next topic  
Author Message
Qmpeltaty



Joined: 06 Feb 2008
Posts: 163
Location: Poland

PostPosted: Thu 27 Mar '14 12:35    Post subject: Authorization exception - mod_jk path Reply with quote

I would like to exclude one path from authorization.

Current config (which obviously doesn't work) :

Code:
<VirtualHost *:80>
ServerName test.localhost
DocumentRoot "c:/Apache24/htdocs"
JkMount /restricted* Node2

<Location /restricted>
AuthType digest
AuthBasicAuthoritative Off
AuthName "restricted"
AuthDigestProvider file
AuthUserFile "c:/Apache24/passwd/digest"
AuthDigestAlgorithm MD5
Require valid-user
</Location>

<LocationMatch "/restricted/applicationServlet?action=reqest_data">
Require all granted
</LocationMatch>

</VirtualHost>


The http://test.localhost/restricted is password protected and it's fine, however http://test.localhost/restricted/applicationServlet?action=reqest_data still requires the password. Restricted alias is mounted by mod_jk module which sends request to JBoss. How to exclude it from authorization ?
Back to top
Qmpeltaty



Joined: 06 Feb 2008
Posts: 163
Location: Poland

PostPosted: Thu 27 Mar '14 12:59    Post subject: Reply with quote

I had tried this and doesn't work either.

Code:

<Location /restricted>
AuthType digest
AuthBasicAuthoritative Off
AuthName "restricted"
AuthDigestProvider file
AuthUserFile "c:/Apache24/passwd/digest"
AuthDigestAlgorithm MD5
Require valid-user
SetEnvIf Request_URI "(applicationServlet?action=request_data/)$" allow
Require env allow
Satisfy all
<Location>


What is more frustrating that it works for directories in Apache structure, but it's not for proxied resources. Damn!

Edit : anyone can help ?
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Apache third-party Modules
Page 1 of 1