Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

I would like to integrate interesting points from http://www.opensourcestrategies.com/ofbiz/tutorials.php (OFBiz Cookbooks part) but I don't know the licence status.

Tables of content  

Apache HTTPD (Apache Web server)

Ajax - Javascript - Json

...

FAQ - TIPS - Cookbook - How to 

Anchor
HTTPD
HTTPD

How to use mod_proxy_ajp

 You need to use a 2.2+ version of HTTPD. I used 2.2.6.

...

In httpd.conf 

...

Uncomment (or compile with at least these modules using --enable)
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so

Set ServerAdmin, ServerName

Add something like

ProxyRequests Off

<Proxy *>
        AddDefaultCharset off
        Order deny,allow
        Allow from all
</Proxy>

# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
ProxyVia On

NameVirtualHost *:80

<VirtualHost *:80>
    #   General setup for the virtual host
    DocumentRoot "/usr/local/apache2/htdocs"
    ErrorLog logs/error_log
    TransferLog logs/access_log

    ServerName lamouline.myvnc.com
    ServerAdmin webmaster@les7arts.com

    ProxyRequests Off
    ProxyPreserveHost On
    proxyPass / ajp://localhost:8009/
    
    RewriteEngine On
    RewriteRule ^/(images/.);jsessionid=\w$ /$1     
    
</VirtualHost>

include conf/httpd-ssl.conf

...

In httpd-ssl.conf

...

replace

<VirtualHost _default_:443>

#   General setup for the virtual host
DocumentRoot "/usr/local/apache2/htdocs"
ServerName www.example.com:443
ServerAdmin you@example.com
ErrorLog "/usr/local/apache2/logs/error_log"
TransferLog "/usr/local/apache2/logs/access_log"

by

<VirtualHost *:443>
    #   General setup for the virtual host
    DocumentRoot "/usr/local/apache2/htdocs"
    ErrorLog "/usr/local/apache2/logs/error_log"
    TransferLog "/usr/local/apache2/logs/access_log"

    ServerName lamouline.myvnc.com
    ServerAdmin webmaster@les7arts.com
    ServerAlias ofbiz

    ProxyRequests Off
    ProxyPreserveHost On
    proxyPass / ajp://localhost:8009/
   
    RewriteEngine On
    RewriteRule ^/(images/.);jsessionid=\w$ /$1    

It should work, on Windows the configuration is the same

Anchor
field type in Derby
field type in Derby

...