OTRS + Apache mod_proxy

Moderator: crythias

Locked
maureliosilverio
Znuny newbie
Posts: 17
Joined: 25 Aug 2011, 19:22
Znuny Version: 3
Real Name: Marcos Aurélio Silvério
Company: Suntech

OTRS + Apache mod_proxy

Post by maureliosilverio »

Hi!
I'm need to access otrs through apache. This is necessary because otrs is inside a LAN, and only apache is published to external access. So, I've created a proxy rule that redirects all request sent to apache to otrs. The topology is attached.

Here is apache's config:

Code: Select all

<VirtualHost *:80>
    ServerName mydomain.com
    ServerAlias suport.mydomain.com
    ServerAdmin webmaster@mydomain.com.br
    ProxyRequests Off
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>
    ProxyPass / http://5.191.28.77/otrs/index.pl
</VirtualHost>
When I'm try to access http://mydomain.com/, OTRS tells that my browser is to old. I belive this is because apache can't access some files (looking at source code, I found that this file can't be accessed: http://mydomain.com/otrs-web/skins/Agen ... 7c639b.css). If i try to access that file directly by the browser, the bellow error message is displayed:
Software error:

slurp_filename('/opt/otrs/bin/cgi-bin/index.plotrs-web') / opening: (2) No such file or directory at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 541
For help, please send mail to the webmaster ([no address given]), giving this error message and the time and date of the error.
What I did wrong?
You do not have the required permissions to view the files attached to this post.
OTRS 3.0.8 and ITSM 3.0.4 on Ubuntu Server 10.0.4.3 (running on Citrix XenServer)
maureliosilverio
Znuny newbie
Posts: 17
Joined: 25 Aug 2011, 19:22
Znuny Version: 3
Real Name: Marcos Aurélio Silvério
Company: Suntech

Re: OTRS + Apache mod_proxy

Post by maureliosilverio »

Solved by my self!

Here is the new apache config:

Code: Select all

<VirtualHost *:80>
    ServerName mydomain.com.br
    ServerAlias suport.mydomain.com.br
    ServerAdmin webmaster@mydomain.com.br
    ProxyRequests Off
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>
    <Location />
        ProxyPass http://5.191.28.77/otrs/index.pl
        ProxyPassReverse http://5.191.28.77/otrs/index.pl
    </Location>
    <Location /otrs-web>
        ProxyPass http://5.191.28.77/otrs-web
        ProxyPassReverse http://5.191.28.77/otrs-web
    </Location>
</VirtualHost>
OTRS 3.0.8 and ITSM 3.0.4 on Ubuntu Server 10.0.4.3 (running on Citrix XenServer)
Locked