Setting REMOTE_USER from HTTP basic auth with apache?

632 views
Skip to first unread message

Erik Andersen (Azendale)

unread,
Oct 5, 2014, 5:43:54 AM10/5/14
to ra...@googlegroups.com
Right now, I have railo successfully running with Apache on Ubuntu.

I have also configured Apache to do basic authentication with a .htpasswd style file.

The web application that I'm using normally runs on Adobe's cold fusion server, but I would like to move it to railo.

The thing that I'm running into is that the application make extensive use of the #REMOTE_USER# variable. As best I can tell, even though I have basic authentication working with apache, it seems like that variable is empty.

Is that normal? Is there something that needs to be configured to have that variable set from the username used for basic authentication?

(If you need more information about my setup, just ask. I'm new enough to this to not know what you need to know :)

choffee

unread,
Oct 7, 2014, 12:39:51 PM10/7/14
to ra...@googlegroups.com
You will need to tell Tomcat that it can accept the remote user from the proxy I think.

Setting

tomcatAuthentication="false"

in the Connector part of the server.xml should do it.

This post has some more info on it:

https://stackoverflow.com/questions/13749065/forward-remote-user-to-tomcat-via-ajp-e-g-for-shibboleth


john

Erik Andersen (Azendale)

unread,
Oct 15, 2014, 1:35:25 AM10/15/14
to ra...@googlegroups.com
Thanks. That helped. It turned out I needed to do a bit more, notably using the AJP connector.

I wrote my notes here:

http://askubuntu.com/questions/534749/how-can-i-install-railo-and-apache-on-ubuntu-and-have-it-pass-a-basic-authentica/534750#534750

Hopefully this might help someone in the future trying to figure out the same thing.

--
Erik

On Tuesday, October 7, 2014 9:39:51 AM UTC-7, choffee wrote:
<snip>

Reply all
Reply to author
Forward
0 new messages