Please help with Apache 2.4 config


#1

Hi,

I have just installed Razuna v1.9.1 onto a CentOS7 VM for testing.

The service seems okay if browsing to http ://10.11.x.x:8080/razuna but I can’t get Apache to front it properly.

I have tried the guide at http://wiki.razuna.com/display/ecp/Razuna+with+Apache+2.x+as+a+front+end+server but I’m not entirely certain what the DocumentRoot has to precisely be (My path to the Razuna install is: /opt/razuna/).

At the moment, it’s “semi”-working using:

<VirtualHost *:80>
        ServerName razuna.mydomain.local
        DocumentRoot /opt/razuna/tomcat/webapps/razuna
        ErrorLog /var/log/httpd/razuna.mydomain.local/error_log
        CustomLog /var/log/httpd/razuna.mydomain.local/custom_log combined

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        ProxyRequests Off
        <Proxy *>
                Order deny,allow
                Allow from all
        </Proxy>

        RequestHeader append x_https "on"

        ProxyPreserveHost On
        ProxyTimeout 120
        ProxyVia On
        ProxyPass / http://localhost:8080/razuna/
        ProxyPassReverse / http://localhost:8080/razuna/

        RewriteEngine On
        RewriteRule ^/(.*\.cf[cm]/?.*)$ http://localhost:8080/$1 [P]
</VirtualHost>

This allows me to successfully browse to http ://razuma.mydomain.local and log into Razuna’s admin interface. But if I use the top-right dropdowns to ‘Load tenant…’ it opens a page with the following:

HTTP Status 404 - /razuna/razuna/raz3/dam

type Status report
message /razuna/razuna/raz3/dam
description The requested resource is not available.

Apache Tomcat/7.0.64
HTTP Status 404 - /razuna/razuna/raz3/dam

type Status report
message /razuna/razuna/raz3/dam
description The requested resource is not available.
Apache Tomcat/7.0.64

Please can someone explain exactly how my Apache config should look?

Thank you!

Elliot


#2

Hi hgl-it,

We recommend to extract Razuna to the “/opt” directory, but you are free to place it wherever you see fit. The Razuna standalone server comes with Tomcat pre-configured.

Hope this helps.

Thanks