Issues with proxypass

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there

I've been stuck with this problem for several days now.
The main website/DNS is hosted on a VPS, and the web server I want to reach is behind a remote IP:Port.
With configuration below I get a permanent 302 and the traffic is redirected to www.domain.edu. Even if I use, for example, the flag R=301. I also tried with P instead of R, but the result is still the same.
The remote server has ProxyPass configured because it is an application developed by a third party that works that way. Could the problem be there?
I really don't know where to look at this point, I'm dizzy.

<Macro MacroInternalApp ${RemoteAddress} ${DirApp1} ${DirApp2}>
<VirtualHost *:80>
    Serveralias sub.domain.edu

    ProxyPreserveHost On
    ProxyRequests Off
    RewriteEngine  on
    RewriteCond %{QUERY_STRING} (.*(?:^|&))(ai=InternalApp(?:\|\||\%7C\%7C))(110000003)((?:&|$).*)
    RewriteRule ^(${DirApp1}aplication.php)$  ${RemoteAddress}/$1?%1  [R]
    ProxyPassMatch ^(${DirApp1}(?:fwa|skins|img|css|temp|js|rest).*)$ "${RemoteAddress}/$1"  
    ProxyPassMatch ^(${DirApp2}(?:fwa|skins|img|css|temp|js|rest).*)$ "${RemoteAddress}/$1"
    ProxyPassReverse "/" "${RemoteAddress}/"

    ErrorLog ${APACHE_LOG_DIR}/error_InternalApp.log
    CustomLog ${APACHE_LOG_DIR}/access_InternalApp.log combined

</VirtualHost>
</Macro>

Use MacroInternalApp http://1.2.3.4:8081 /App/1/Dir/ /App/2/Dir/
UndefMacro MacroInternalApp


Thanks in advance


_______________________________________________
Daniel A. Rodriguez
Departamento de Tecnología para la Gestión
Escuela Provincial de Educación Técnica N° 1
Posadas - Misiones - Argentina
(0376) 443-8578
www.epet1.edu.ar

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux