...
Uncomment (or compile with at least these modules using --enable or on Debian/Ubuntu use a2enmod)
...
replace (according to your setup, ie. keeping the right pathespaths)
Code Block |
---|
<VirtualHost _default_:443> # General setup for the virtual host ServerName www.example.com:443 ServerAdmin you@example.com |
...
Code Block |
---|
<VirtualHost *:443>
ServerName www.example.com:443
ServerAdmin you@example.com
ProxyRequests Off
ProxyPreserveHost On
proxyPass / ajp://localhost:8009/
RewriteEngine On
RewriteRule ^/(images/.+);jsessionid=\w+$ /$1
|
for
...
apache
...
3.2.2
...
servers
...
youu
...
need
...
to
...
add
Code Block |
---|
SSLEngine on SSLProtocol all -SSLv2 SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW SSLCertificateFile /etc/pki/tls/certs/localhost.crt SSLCertificateKeyFile /etc/pki/tls/private/localhost.key ofcourse if you have a certificate for your domain you should replace the crt and key files of your domain files. |
It should work. On Windows the configuration is the same.
Don't forget to edit ofbiz-containers.xml and url.properties file (change 8080 to 80 and 8443 to 443).
...
Sometime it is useful to let Apache Web Server to serve the static resources such as images, css, js etc for performance or other reasons.
In that scenario, you will need to mount the individual OFbiz OFBiz application. For example:
Mounting Ofbiz OFBiz application as show below will forward every request to Ofbiz OFBiz including request for static resources such as images.
...