Alfresco tomcat behind apache httpd proxy configuration

cancel
Showing results for 
Search instead for 
Did you mean: 
Active Member II

Alfresco tomcat behind apache httpd proxy configuration

Jump to solution

Hi,

I require apache httpd server to kept before alfresco tomcat. I am not using mod_jk but want to use proxy and proxypass reverse.

Can anyone provide me working configuration with alfresco? ( I want to use it with alfresco 5.2)

Thanks,

1 Solution

Accepted Solutions
Customer

Re: Alfresco tomcat behind apache httpd proxy configuration

Jump to solution

Basically:

Let's say we have an Ubuntu Server as an Apache frontend:

sudo apt-get install apache2
sudo a2enmod proxy
sudo a2enmod proxy_ajp


sudo vim /etc/apache2/sites-enabled/000-default

   .
   .
   .
   # Add these lines in the Virtual Host definition for 80 port
   ProxyPass              /alfresco ajp://alfrescoserver:8009/alfresco
   ProxyPassReverse /alfresco ajp://alfrescoserver:8009/alfresco
   ProxyPass               /share ajp://alfrescoserver:8009/share
   ProxyPassReverse /share ajp://alfrescoserver:8009/share
</VirtualHost>

sudo service apache2 restart

This is the essential part, then you can use a similar config for 443 port with the corresponding certificates, and ssl module.

Regards.
--C.

View solution in original post

2 Replies
Customer

Re: Alfresco tomcat behind apache httpd proxy configuration

Jump to solution

Basically:

Let's say we have an Ubuntu Server as an Apache frontend:

sudo apt-get install apache2
sudo a2enmod proxy
sudo a2enmod proxy_ajp


sudo vim /etc/apache2/sites-enabled/000-default

   .
   .
   .
   # Add these lines in the Virtual Host definition for 80 port
   ProxyPass              /alfresco ajp://alfrescoserver:8009/alfresco
   ProxyPassReverse /alfresco ajp://alfrescoserver:8009/alfresco
   ProxyPass               /share ajp://alfrescoserver:8009/share
   ProxyPassReverse /share ajp://alfrescoserver:8009/share
</VirtualHost>

sudo service apache2 restart

This is the essential part, then you can use a similar config for 443 port with the corresponding certificates, and ssl module.

Regards.
--C.

View solution in original post

Senior Member II

Re: Alfresco tomcat behind apache httpd proxy configuration

Jump to solution

...and set alfresco.host alfresco.port alfresco.protocol share.host share.port share.protocol in your alfresco-global-properties to your apache URL and the entries in share-config-custom.xml :-)