Re: [users@httpd] apache 2.2.2 and talking to Tomcat 5.5 via ProxyPass

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

 




Oliver.Schaudt@xxxxxxxxx wrote:
>> Apache 2.2 makes it SOOO easy to talk to a Tomcat app by just using:
>> ProxyPass /mytomcatapp ajp://127.0.0.1:8009/mytomcatapp
>>     
>
>   
>> But the problem I'm facing is that I have an app that uses it's own
>> stylesheets and javascripts.  Further, the app itself calls the contents
>> on these directories with relative paths (ie ./stylesheets/...)  And the
>> problem is that these are not being proxied.
>>     
>
>   
>> Any ideas ?
>>     
> yes
>
> 1.  I hope you have beside your
>   ProxyPass /mytomcatapp ajp://127.0.0.1:8009/mytomcatapp
> a line 
>   ProxyPassReserve /mytomcatapp ajp://127.0.0.1:8009/mytomcatapp
> and/or
>   ProxyPreserveHost On
>
>   
Did not have the ProxyPreserveHost On, but did have ProxyPassReverse.

> 2. Either you put the stylesheets for your relative names on the apache or
> you have to put all your stylesheets and javascripts under a proxied path.
>   
Would I need a proxied path such as:

ProxyPass /mytomcatapp http://127.0.0.1:8009/mytomcatapp

(and ProxyPassReverse) in addition to the ajp ?  Or should I list them
separatedly such as:

ProxyPass /mytomcatapp/stylesheets
http://127.0.0.1:8009/mytomcatapp/stylesheets

Thanks again...

-- 

°(((=((===°°°(((===========================================

begin:vcard
fn:Ricardo Stella
n:Stella;Ricardo
org:Rider University
adr;dom:;;2083 Lawrenceville Rd;Lawrenceville;NJ;08648
version:2.1
end:vcard


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-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