Alfresco tomcat behind apache httpd proxy configuration

cancel
Showing results for 
Search instead for 
Did you mean: 
g_rathod
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
cesarista
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

4 Replies
cesarista
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.

mehe
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 :-)

Amemon
Member II

Re: Alfresco tomcat behind apache http proxy configuration

Jump to solution

Hello, I have a problem with alfresco community 5.2 when I tried to access the share/page in https mode.

the ssl certificate is installed but when I enter the login I get this error page

i need help

Screenshot 2024-01-24 175748.png

johnmcmillan
Member II

Re: Alfresco tomcat behind apache http proxy configuration

Jump to solution

I got the same problem