a) create a /usr/local/apache2/conf/workers.properties file with:
-------------------------
worker.list=alexwk,jkstatus
worker.alexwk.host=127.0.0.1
worker.alexwk.port=8009
worker.alexwk.type=ajp13
worker.alexwk.lbfactor=100
-------------------------
b) in apache httpd.conf:
-------------------------
JkworkersFile "/usr/local/apache2/conf/workers.properties"
ServerName alfjk2.foo
JkLogFile "/usr/local/apache2/logs/mod_jk_2.log"
JkMount /alfresco alexwk
JkMount /alfresco/* alexwk
JkMount /share alexwk
JkMount /share/* alexwk
JkLogLevel info
AuthType Basic
AuthName "Test Basic Auth"
AuthUserFile /usr/local/apache2/passtest.txt
Require valid-user
-------------------------
4) In tomcat server.xml, define an ajp13 connector turning off tomcat authentication:
5) generate a password file with admin/admin:
/usr/local/apache2/bin/htpasswd -c /usr/local/apache2/passtest.txt admin
6) check the cgi variable setup putting in a new file
'tomcat/webapps/alfresco/test.jsp':
-------------------------
getRemoteUser() is set to:
<% out.print (request.getRemoteUser()); %>
-------------------------
and go to:
http://alfjk2.foo/alfresco/test.jsp
You should see the name of the HTTP user.
This is been taken from
https://issues.alfresco.com/jira/browse/ALF-4230
No comments:
Post a Comment