Proxy reverse and rewrite

Moderator: crythias

Post Reply
wigberto
Znuny newbie
Posts: 2
Joined: 16 Jan 2018, 16:20
Znuny Version: 5.0.24

Proxy reverse and rewrite

Post by wigberto »

Hello
I am trying to perform a ProxyReverse from a main apache to the apache server where I have installed otrs, but I can not get it to work properly.
My configuration is the following:

Code: Select all

<VirtualHost *:80>
    ServerName localhost
	ProxyRequests Off
	ProxyTimeout 300
	ProxyPass /otrs http://xxxxx/
	ProxyPass /otrs-web http://xxxxx/otrs-web
	ProxyPassReverse /otrs http://xxxxx/
	ProxyPassReverse /otrs-web http://xxxxx/otrs-web
	
	RewriteEngine On
	RewriteRule ^/(customer.pl)$ http://xxxxx/otrs/$1 [NC,L
	
	ErrorLog "logs/localhost.log"
</VirtualHost>
The user's home page and password work correctly, it is displayed well, but when you log in, the page error does not exist because instead of going to the page http: //xxxxx/otrs/customer.pl load the page http: / /xxxxx/customer.pl and can not find it.
I'm trying to do a Rewrite, but it does not work for me:

Code: Select all

	RewriteEngine On
	RewriteRule ^/(customer.pl)$ http://xxxxx/otrs/$1 [NC,L]
Thank you
Post Reply