cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco tomcat behind apache httpd proxy configuration

g_rathod
Star Contributor
Star Contributor

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 ACCEPTED ANSWER

cesarista
World-Class Innovator
World-Class Innovator

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 answer in original post

4 REPLIES 4

cesarista
World-Class Innovator
World-Class Innovator

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
Elite Collaborator
Elite Collaborator

...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
Champ in-the-making
Champ in-the-making

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

image

johnmcmillan
Champ in-the-making
Champ in-the-making

I got the same problem