Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Authorization exception - mod_jk path |
|
Author |
|
Qmpeltaty
Joined: 06 Feb 2008 Posts: 182 Location: Poland
|
Posted: Thu 27 Mar '14 12:35 Post subject: Authorization exception - mod_jk path |
|
|
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: 182 Location: Poland
|
Posted: Thu 27 Mar '14 12:59 Post subject: |
|
|
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 |
|
|
|
|
|
|