Re: Help with Apache configuration

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

 



Hi,

On Fri, Dec 18, 2015 at 2:35 PM, chetan jain <cpjain26@xxxxxxxxx> wrote:
>
> #For app-1
>
>    RewriteRule ^/app1$ /app1/ [R]
>    RewriteRule ^/app1/(.*) /app/WebObjects/app.woa/$1 [P]
>    ProxyPass /app/WebObjects/app.woa/ http://host_name1:app1_port/app/WebObjects/app.woa/
>    ProxyPassReverse /app/WebObjects/app.woa/  http://host_name1:app1_port/app/WebObjects/app.woa/
>
> # For app-2
>
>    RewriteRule ^/app2$ /app2/ [R]
>    RewriteRule ^/app2/(.*) /app/WebObjects/app.woa/$1 [P]
>    ProxyPass /app/WebObjects/app.woa/ http://host_name2:app2_port/app/WebObjects/app.woa/
>    ProxyPassReverse /app/WebObjects/app.woa/ http://host_name2:app2_port/app/WebObjects/app.woa/

You possibly need something like:

    RewriteRule ^/app1/(.*)
http://host_name1:app1_port/app/WebObjects/app.woa/$1 [P]
    RewriteRule ^/app2/(.*)
http://host_name2:app2_port/app/WebObjects/app.woa/$1 [P]
    <Proxy "http://host_name1:app1_port/app/WebObjects/app.woa/";>
    </Proxy>
    <Proxy "http://host_name2:app2_port/app/WebObjects/app.woa/";>
    </Proxy>

The last <Proxy> blocks are not mandatory unless you want to reuse
backend connections for successive requests (like ProxyPass does), you
may even want to ProxySet some parameters in there.

Regards,
Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[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