  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Problem with Apache/Tomcat/WebDAV/Alfresco | Problem with Apache/Tomcat/WebDAV/Alfresco 2007-08-13 - By Frank Gerlach
Back
Hello folks, we have a problem with the following setup:
Web Browser ->Apache(mod_jk)->Tomcat->Alfresco
Explanation: we would like to access the Alfresco content management system (running in Tomcat) using WebDAV and SSL. It works, if we expose Tomcat directly to the network. For security reasons, we would like to "reverse proxy" with Apache. This does not work for some reason. (does not send the WWW-Authenticate header) We have checked mod_jk documentation without detecting any problems on our side. Can anybody help ?
Thanks in advance !
regards
Frank
Here are the relevant config settings and software version info:
Apache: Server version: Apache/2.0.59
Tomcat: Apache Tomcat/5.5.20 jdk 1.5.0_07-b03 Sun Microsystems Inc. Linux 2.6.5-7.252-default i386
mod_jk in Apache:
JkMount /* alfresco JkLogFile /var/log/apache2/mod_jk.log JkLogLevel debug JkWorkersFile "/usr/share/tomcat/conf/workers.properties"
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
/usr/share/tomcat/conf/workers.properties:
ps=/
# list the workers by name worker.list=alfresco
# -- ---- ---- ---- ------ # First tomcat server # -- ---- ---- ---- ------ worker.alfresco.port=8009 worker.alfresco.host=localhost worker.alfresco.type=ajp13
# Specify the size of the open connection cache. #worker.tomcat-worker1.cachesize
# # Specifies the load balance factor when used with # a load balancing worker. # Note: # ----> lbfactor must be > 0 # ----> Low lbfactor means less work done by the worker. worker.alfresco.lbfactor=100
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
tomcat server.xml:
<!-- Define an AJP 1.3 Connector on port 8009 --> <Connector port="8009" enableLookups="false" redirectPort="8443" protocol="AJP/1.3"/>
Frank Gerlach Software engineer
dmc digital media center GmbH Rommelstra?e 11 70376 Stuttgart (Germany) Telefon: +49 711 601747-258 Telefax: +49 711 601747-141 eMail: frank.gerlach@(protected) Internet: www.dmc.de
Handelsregister: AG Stuttgart HRB 18974 Gesch?ftsf?hrer: Andreas Magg, Daniel Rebhorn, Andreas Schwend
<<Frank Gerlach.vcf>>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.2"> <TITLE>Problem with Apache/Tomcat/WebDAV/Alfresco</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <BR>
<P><FONT FACE="Courier New">Hello folks,</FONT>
<BR><FONT FACE="Courier New">we have a problem with the following setup:</FONT> </P>
<P><FONT FACE="Courier New">Web Browser ->Apache(mod_jk)->Tomcat-> ;Alfresco</FONT> </P>
<P><FONT FACE="Courier New">Explanation: we would like to access the Alfresco content management system </FONT>
<BR><FONT FACE="Courier New">(running in Tomcat) using WebDAV and SSL.</FONT>
<BR><FONT FACE="Courier New">It works, if we expose Tomcat directly to the network. For security </FONT>
<BR><FONT FACE="Courier New">reasons, we would like to "reverse proxy" ; with Apache. This does not work for </FONT>
<BR><FONT FACE="Courier New">some reason. (does not send the WWW-Authenticate header)</FONT>
<BR><FONT FACE="Courier New">We have checked mod_jk documentation without detecting any </FONT>
<BR><FONT FACE="Courier New">problems on our side. </FONT>
<BR><FONT FACE="Courier New">Can anybody help ?</FONT> </P>
<P><FONT FACE="Courier New">Thanks in advance !</FONT> </P>
<P><FONT FACE="Courier New">regards</FONT> </P>
<P><FONT FACE="Courier New">Frank</FONT> </P> <BR>
<P><FONT FACE="Courier New">Here are the relevant config settings and software version info:</FONT> </P>
<P><FONT FACE="Courier New">Apache: Server version: Apache/2.0.59</FONT> </P>
<P><FONT FACE="Courier New">Tomcat: Apache Tomcat/5.5.20 </FONT>
<BR><FONT FACE="Courier New"> jdk 1.5.0_07-b03 Sun Microsystems Inc. </FONT>
<BR><FONT FACE="Courier New"> Linux 2.6.5-7.252-default i386</FONT> </P> <BR>
<P><FONT FACE="Courier New">mod_jk in Apache:</FONT> </P>
<P><FONT FACE="Courier New">JkMount /* alfresco</FONT>
<BR><FONT FACE="Courier New">JkLogFile /var/log/apache2/mod_jk.log</FONT>
<BR><FONT FACE="Courier New">JkLogLevel debug</FONT>
<BR><FONT FACE="Courier New">JkWorkersFile "/usr/share/tomcat/conf/workers .properties"</FONT> </P>
<P><FONT FACE="Courier New">+++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++</FONT> </P>
<P><FONT FACE="Courier New">/usr/share/tomcat/conf/workers.properties:</FONT> </P>
<P><FONT FACE="Courier New">ps=/</FONT> </P>
<P><FONT FACE="Courier New"># list the workers by name</FONT>
<BR><FONT FACE="Courier New">worker.list=alfresco</FONT> </P>
<P><FONT FACE="Courier New"># -- ---- ---- ---- ------</FONT>
<BR><FONT FACE="Courier New"># First tomcat server</FONT>
<BR><FONT FACE="Courier New"># -- ---- ---- ---- ------</FONT>
<BR><FONT FACE="Courier New">worker.alfresco.port=8009</FONT>
<BR><FONT FACE="Courier New">worker.alfresco.host=localhost</FONT>
<BR><FONT FACE="Courier New">worker.alfresco.type=ajp13</FONT> </P>
<P><FONT FACE="Courier New"># Specify the size of the open connection cache.< /FONT>
<BR><FONT FACE="Courier New">#worker.tomcat-worker1.cachesize</FONT> </P>
<P><FONT FACE="Courier New">#</FONT>
<BR><FONT FACE="Courier New"># Specifies the load balance factor when used with </FONT>
<BR><FONT FACE="Courier New"># a load balancing worker.</FONT>
<BR><FONT FACE="Courier New"># Note:</FONT>
<BR><FONT FACE="Courier New"># ----> lbfactor must be > 0</FONT>
<BR><FONT FACE="Courier New"># ----> Low lbfactor means less work done by the worker.</FONT>
<BR><FONT FACE="Courier New">worker.alfresco.lbfactor=100</FONT> </P>
<P><FONT FACE="Courier New">+++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++</FONT> </P>
<P><FONT FACE="Courier New">tomcat server.xml:</FONT> </P>
<P><FONT FACE="Courier New"><!-- Define an AJP 1.3 Connector on port 8009 -- ></FONT>
<BR><FONT FACE="Courier New"> <Connector port="8009 "</FONT>
<BR><FONT FACE="Courier New"> enableLookups="false" redirectPort="8443" protocol="AJP/1.3"/></FONT> </P> <BR> <BR>
<P><FONT SIZE=2 FACE="Courier New">Frank Gerlach</FONT>
<BR><FONT SIZE=2 FACE="Courier New">Software engineer</FONT> </P>
<P><FONT SIZE=2 FACE="Courier New">dmc digital media center GmbH</FONT>
<BR><FONT SIZE=2 FACE="Courier New">Rommelstra?e 11</FONT>
<BR><FONT SIZE=2 FACE="Courier New">70376 Stuttgart (Germany)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">Telefon: +49 711 601747-258</FONT>
<BR><FONT SIZE=2 FACE="Courier New">Telefax: +49 711 601747-141</FONT>
<BR><FONT SIZE=2 FACE="Courier New">eMail: frank.gerlach@(protected) .de</FONT>
<BR><FONT SIZE=2 FACE="Courier New">Internet: www.dmc.de</FONT> </P>
<P><FONT SIZE=2 FACE="Courier New">Handelsregister: AG Stuttgart HRB 18974< /FONT>
<BR><FONT SIZE=2 FACE="Courier New">Gesch?ftsf?hrer: Andreas Magg, Daniel Rebhorn, Andreas Schwend</FONT> </P>
<P><FONT FACE="Arial" SIZE=2 COLOR="#000000"> <<Frank Gerlach.vcf>> </FONT> </P>
</BODY> </HTML> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To start a new topic, e-mail: users@(protected) To unsubscribe, e-mail: users-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
|
|
 |