
New UI versioning requires some Apache directives. How to:

1) Add "Include sites-available/ox6.conf" to your default configuration in /etc/apache2/sites-available
2) Create a new file "ox6.conf" in /etc/apache2/sites-available. Add the following to this file:

--- snip ---

# deflate
AddOutputFilterByType DEFLATE text/html text/plain text/javascript application/javascript text/css text/xml application/xml text/x-js application/x-javascript

# pre-compressed files
AddType text/javascript .jsz
AddType text/css .cssz
AddType text/xml .xmlz

AddEncoding x-gzip .jsz .cssz .xmlz
SetEnvIf Request_URI "\.(jsz|cssz|xmlz)$" no-gzip

ExpiresActive On

<Location /ox6>
        # Expires (via ExpiresByType to override global settings)
        ExpiresByType image/gif "access plus 6 months"
        ExpiresByType image/png "access plus 6 months"
        ExpiresByType image/jpg "access plus 6 months"
        ExpiresByType image/jpeg "access plus 6 months"
        ExpiresByType text/css "access plus 6 months"
        ExpiresByType text/html "access plus 6 months"
        ExpiresByType text/xml "access plus 6 months"
        ExpiresByType text/javascript "access plus 6 months"
        ExpiresByType text/x-js "access plus 6 months"
        ExpiresByType application/x-javascript "access plus 6 months"
        ExpiresDefault "access plus 6 months"
        Header append Cache-Control "private"
        Header unset Last-Modified
        Header unset Vary
        # Strip version
        RewriteEngine On
        RewriteRule v=\w+/(.+) $1 [L]
        # Turn off ETag
        Header unset ETag
        FileETag None
</Location>

<Location /ox6/ox.html>
        ExpiresByType text/html "now"
        ExpiresDefault "now"
        Header unset Last-Modified
        Header set Cache-Control "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
        # Turn off ETag
        Header unset ETag
        FileETag None
</Location>

<Location /ox6/index.html>
        ExpiresByType text/html "now"
        ExpiresDefault "now"
        Header unset Last-Modified
        Header set Cache-Control "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
        # Turn off ETag
        Header unset ETag
        FileETag None
</Location>

<Location /ajax>
  SetOutputFilter DEFLATE
</Location>

--- snap ---

3) Go to /var/www (default Apache document root) and create a symbolic link named "ox6" that targets your installation folder (unless you installed the UI into /var/www/ox6)
4) Check that Apache has all required modules. To do so just run the following commands:
    a2enmod deflate
    a2enmod proxy
    a2enmod proxy_ajp
    a2enmod mime
    a2enmod headers
    a2enmod expires
    a2enmod rewrite
5) Done. Don't forget to restart Apache.

Note:

On SLES11, you might need to add

Options +FollowSymLinks +SymLinksIfOwnerMatch

To your apache configuration, if you get the following errors in the apache error log:

[...] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /srv/www/htdocs/ox6/

