tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Troy Davis <>
Subject Using either realms or .htaccess on the same server? (Tomcat 5.5)
Date Wed, 15 Sep 2004 16:58:42 GMT

I've got a legacy Tomcat 3 application running on a Tomcat 5.5 server 
which has directories protected by .htaccess files, and it wants to 
pull the username into form fields at various points using 
request.getRemoteUser(). But this currently returns a null value.

I've looked this up on Google, found a couple references to modifying 
server.xml's Connector like so:

<Connector port="8009"
	redirectPort=" 8443"

But after adding the tomcatAuthentication parameter, I still get null 
in those form fields. I also found a similar directive for the file, but that didn't overcome the null issue either. 
And I'm not in love the idea of disabling tomcat's authentication 
methods globally, I'd rather be able to do that on a host or context 
basis so I can support legacy apps like this one, as well as newer apps 
that use realms instead.

Is there a way to choose between realms or .htaccess files for 
different hosts in tomcat 5.5?

Thank You,
Troy Davis
Interactive Engineer
Metaphor Studio
538 Reading Road
Loft 200
Cincinnati, Ohio 45202

Tel: 513-723-0290
Fax: 513-723-0670

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message