Proxy Adempiere Through Apache

From ADempiere
Jump to: navigation, search
This Wiki is read-only for reference purposes to avoid broken links.

As a security measure you must not expose directly Adempiere to the www.

A recommended set up to expose Adempiere webstore is through apache server.

Set up for Adempiere: - Install adempiere as adempiere user (not root) - That compels you to use a port different than 80 (i.e. 8081) - You could also use as the IP address for this machine (not allowed in RUN_Setup, you need to edit to do this)

Set up apache:

In httpd.conf (/etc/httpd/conf/httpd.conf in Fedora)

Enable modules for proxy (normally enabled by default):

LoadModule proxy_module modules/
LoadModule proxy_connect_module modules/
LoadModule proxy_http_module modules/

Then add the following lines to your httpd.conf:

SetEnv force-proxy-request-1.0 1

ProxyPass /wstore
ProxyPassReverse /wstore

If you want to expose the Web Store to an address other than wstore (e.g. root web site /), you also need to change the cookie path in order to login work:

ProxyPassReverseCookiePath /wstore /

You can also expose the admin interface

ProxyPass /admin
ProxyPassReverse /admin

Or simply expose the whole installation

ProxyPass /
ProxyPassReverse /

The port and the IP address can/must be changed if you used different IP/port for