AnsweredAssumed Answered

Apache + Alfresco Proxy

Question asked by dough on Oct 3, 2009
Latest reply on Apr 7, 2011 by bensewell
I have found several close solutions on these forums and through google, but nothing that exactly matches my desired results.  Here is what I am hoping to configure.

I want to be able to have the users access Alfresco Explorer and Alfresco Share like the following:

I have attempt to use Apache configurations exclusively, but these only resulted in the following valid URL  OR

I would prefer not to have the user add the "/alfresco" subdirectory OR "/share" subdirectory.

Here is the Apache virtual host configure I used.

<VirtualHost *:80>
ProxyRequests On
ProxyPreserveHost On
ProxyPass /
ProxyPassReverse /
ProxyPass /share
ProxyPassReverse /share

This works, but it requires the user to type in the ServerName plus the subdirectory (i.e.  I want the user to only be required to remember

I also attempt the following solution, which is a combination of Tomcat proxy configuration with AJP and Apache virtual host configuration.  I found this solution here

Add to /opt/alfresco/tomcat/conf/server.xml

<Service name="Catalina">

    <!– Define an AJP 1.3 Connector on port 8009 –>
    <Connector port="8009"
               enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />


Apache configuration

<VirtualHost *:80>
ProxyRequests On
RewriteEngine On
RewriteLogLevel 3
RewriteLog "/var/log/httpd/rewrite.log"
RewriteRule ^/(.*) ajp://$1 [P,L]

However this solutions shows a blank page with the URL being rewritten to  If I change the Apache RewriteRule to this:

RewriteRule ^/alfresco(.*) ajp://$1 [P,L]

Then the following URL works  But once again, I would prefer that the user only need to type in

Any assistance would be appreciated.