Re: Help with Apache configuration

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

 



to elaborate more, the first page comes up fine, and which is exactly same for app1 and app2 (these are exactly the same apps just separated by instances to have different configurations in the UI, and assigned for different groups doing the same functionality), problem comes up when i hit on any other hyperlink from first page, it always lands up on the app1 (This is with the original configuration i had posted)

On Wed, Dec 30, 2015 at 7:18 PM, chetan jain <cpjain26@xxxxxxxxx> wrote:
niether of it works, for some unknows reason it tried to look for /app1 under document root.



On Tue, Dec 29, 2015 at 7:54 PM, Yann Ylavic <ylavic.dev@xxxxxxxxx> wrote:
On Tue, Dec 29, 2015 at 3:16 PM, Yann Ylavic <ylavic.dev@xxxxxxxxx> wrote:
>
> 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>

Or maybe even simpler:
    ProxyPass /app1/ http://host_name1:app1_port/app/WebObjects/app.woa/
    ProxyPass /app2/ http://host_name2:app2_port/app/WebObjects/app.woa/
    ProxyPassReverse /app1/ http://host_name1:app1_port/app/WebObjects/app.woa/
    ProxyPassReverse /app2/ http://host_name2:app2_port/app/WebObjects/app.woa/

Doesn't this work?

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