httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From infinitiguy <>
Subject [users@httpd] issue with apache proxy to tomcat with apache simple authentication.
Date Fri, 02 Jan 2009 21:02:30 GMT

Hey all,
Here's what I'm trying to achieve.  I have a tomcat application deployed on
another server and have configured apache to proxy to it using mod_jk. 
Works great.  So, if I go to http://huskar/  apache reads through, does some
rewrites and sends me to http://huskar/clearspace/index.jspa  (which is
actually http://luna:8080/clearspace/index.jspa)

Now, I want apache to do some simple authentication.  I downloaded and
loaded mod_auth,  created a htpasswd file, and put in the following
configuration..  (ignore, or pay attention to, the commented stuff... I was
trying a bunch of different things).

I read online that location should be used when you're protecting a url and
not a actual filesystem on the apache host..    Once this is enabled, it
does prompt me to login, and I login,  but then it forwards me to a blank
page(the redirect works), so I end up at
http://huskar/clearspace/index.jspa, but it seems like it stops responding. 
However, if I do... http://huskar/clearspace/admin (the admin page) it
authenticates me(if I close my browser) and redirects me fine... which is
really bizarre. 

If I disable authentication, both work.

Below is my location statements, as well as the redirects I have in place..

Any help is most appreciated.

<Location /clearspace/>
    Options FollowSymLinks
    AllowOverride None
#        AllowOverride FileInfo Indexes AuthConfig
#        Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
AuthName "restricted stuff"
AuthType Basic
AuthUserFile /usr/local/apache/2.0.63/conf/htpasswd
require valid-user

#        Order allow,deny
#        Allow from all
#    </Limit>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>


  RewriteEngine On
  # Redirect to correct hostname
  RewriteCond %{HTTP_HOST} !huskar\.bedford\.progress\.com
  RewriteRule ^(.*)$$1
  # Load ClearSpace by default
  RewriteRule ^/$ /clearspace/index.jspa [R=301,L]

and for fun... my jk statements.

JkWorkersFile "/usr/local/apache/2.0.63/conf/"
JkLogFile     "/var/logs/www/mod_jk.log"
JkLogLevel  info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat     "%w %V %T"
JkMount /examples/* worker1 - testing
JkMount /manager/* worker2 - testing
JkMount /clearspace/* worker3

View this message in context:
Sent from the Apache HTTP Server - Users mailing list archive at

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message