You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Visioner Sadak <vi...@gmail.com> on 2013/08/19 13:13:28 UTC
reverse proxy /proxy
Hello friends
I have some http redirect urls like in my jsp page
http://spn1.spinterllyy.com:50070/webhdfs/v1/Namehome1/terfttb.jpg?=OPEN
http://spn2.spinterllyy.com:50070/webhdfs/v1/Namehome2/terfttb.jpg?=OPEN
I would like to use reverse proxy on my apache server so that the contents
can be cached and served by apache any hints on how to do this
[users@httpd] Re: reverse proxy /proxy
Posted by Visioner Sadak <vi...@gmail.com>.
any hints friends
On Mon, Aug 19, 2013 at 4:52 PM, Visioner Sadak <vi...@gmail.com>wrote:
>
>
> ---------- Forwarded message ----------
> From: Visioner Sadak <vi...@gmail.com>
> Date: Mon, Aug 19, 2013 at 4:43 PM
> Subject: reverse proxy /proxy
> To: Tomcat Users List <us...@tomcat.apache.org>
>
>
> Hello friends
>
> I have some http redirect urls like in my jsp page
>
> http://spn1.spinterllyy.com:50070/webhdfs/v1/Namehome1/terfttb.jpg?=OPEN
>
> http://spn2.spinterllyy.com:50070/webhdfs/v1/Namehome2/terfttb.jpg?=OPEN
>
> I would like to use reverse proxy on my apache server so that the
> contents can be cached and served by apache any hints on how to do this
>
>
Re: [users@httpd] Re: Fwd: reverse proxy /proxy
Posted by Visioner Sadak <vi...@gmail.com>.
thannks the link says
ProxyPassReverse /app1/ http://internal1.example.com/
ProxyPassReverse /app2/ http://internal2.example.com/
and
ProxyPass /app1/ http://internal1.example.com/
ProxyPass /app2/ http://internal2.example.com/
I did used
ProxyPassReverse /spn1.spinterllyy.com
<http://spn1.spinterllyy.com:50070/webhdfs/v1/Namehome1/terfttb.jpg?=OPEN>/
http://spn1.spinterllyy.com
<http://spn1.spinterllyy.com:50070/webhdfs/v1/Namehome1/terfttb.jpg?=OPEN>/
ProxyPassReverse /spn2.spinterllyy.com
<http://spn2.spinterllyy.com:50070/webhdfs/v1/Namehome2/terfttb.jpg?=OPEN>/
http://spn2.spinterllyy.com
<http://spn2.spinterllyy.com:50070/webhdfs/v1/Namehome2/terfttb.jpg?=OPEN>/
ProxyPass /spn1.spinterllyy.com
<http://spn1.spinterllyy.com:50070/webhdfs/v1/Namehome1/terfttb.jpg?=OPEN>/
http://spn1.spinterllyy.com
<http://spn1.spinterllyy.com:50070/webhdfs/v1/Namehome1/terfttb.jpg?=OPEN>/
ProxyPass /spn2.spinterllyy.com
<http://spn2.spinterllyy.com:50070/webhdfs/v1/Namehome2/terfttb.jpg?=OPEN>/
http://spn2.spinterllyy.com
<http://spn2.spinterllyy.com:50070/webhdfs/v1/Namehome2/terfttb.jpg?=OPEN>/
but still unable to cache my files at
these locations
http://spn1.spinterllyy.com:50070/webhdfs/v1/Namehome1/terfttb.jpg?=OPEN
>
> http://spn2.spinterllyy.com:50070/webhdfs/v1/Namehome2/terfttb.jpg?=OPEN
can we directlyy set cache control header for these redirect URLS
in my jsp i use them as
<img src= http://spn1.spinterllyy.com:50070/webhdfs/v1/Namehome1/terfttb.jpg?=
<http://spn1.spinterllyy.com:50070/webhdfs/v1/Namehome1/terfttb.jpg?=OPEN>OPEN
<http://spn1.spinterllyy.com:50070/webhdfs/v1/Namehome1/terfttb.jpg?=OPEN>>
ProxyPass /app1/ http://internal1.example.com/
ProxyPass /app2/ http://internal2.example.com/
On Tue, Aug 20, 2013 at 9:05 AM, Mark Eggers <md...@gmail.com> wrote:
> On Mon, 19 Aug 2013 16:52:28 +0530, Visioner Sadak wrote:
>
> > ---------- Forwarded message ----------
> > From: Visioner Sadak <vi...@gmail.com>
> > Date: Mon, Aug 19, 2013 at 4:43 PM Subject: reverse proxy /proxy To:
> > Tomcat Users List <us...@tomcat.apache.org>
> >
> >
> > Hello friends
> >
> > I have some http redirect urls like in my jsp page
> >
> > http://spn1.spinterllyy.com:50070/webhdfs/v1/Namehome1/terfttb.jpg?=OPEN
> >
> > http://spn2.spinterllyy.com:50070/webhdfs/v1/Namehome2/terfttb.jpg?=OPEN
> >
> > I would like to use reverse proxy on my apache server so that the
> > contents can be cached and served by apache any hints on how to do this
> >
>
> http://www.apachetutor.org/admin/reverseproxies
>
> For starters.
>
> Also read the appropriate manual pages for your version of Apache HTTPD
> (2.2 or 2.4).
>
> I just did this to embed one web application inside another. The parent
> application is written in PHP (for example), while the meat of the
> application is written in Java and runs on Apache Tomcat 7.0.42.
>
> The only issue that tripped me up was the cookie path. There's a
> configuration directive for that.
>
> . . . . just my two cents.
> /mde/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
[users@httpd] Re: Fwd: reverse proxy /proxy
Posted by Mark Eggers <md...@gmail.com>.
On Mon, 19 Aug 2013 16:52:28 +0530, Visioner Sadak wrote:
> ---------- Forwarded message ----------
> From: Visioner Sadak <vi...@gmail.com>
> Date: Mon, Aug 19, 2013 at 4:43 PM Subject: reverse proxy /proxy To:
> Tomcat Users List <us...@tomcat.apache.org>
>
>
> Hello friends
>
> I have some http redirect urls like in my jsp page
>
> http://spn1.spinterllyy.com:50070/webhdfs/v1/Namehome1/terfttb.jpg?=OPEN
>
> http://spn2.spinterllyy.com:50070/webhdfs/v1/Namehome2/terfttb.jpg?=OPEN
>
> I would like to use reverse proxy on my apache server so that the
> contents can be cached and served by apache any hints on how to do this
>
http://www.apachetutor.org/admin/reverseproxies
For starters.
Also read the appropriate manual pages for your version of Apache HTTPD
(2.2 or 2.4).
I just did this to embed one web application inside another. The parent
application is written in PHP (for example), while the meat of the
application is written in Java and runs on Apache Tomcat 7.0.42.
The only issue that tripped me up was the cookie path. There's a
configuration directive for that.
. . . . just my two cents.
/mde/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Fwd: reverse proxy /proxy
Posted by Visioner Sadak <vi...@gmail.com>.
---------- Forwarded message ----------
From: Visioner Sadak <vi...@gmail.com>
Date: Mon, Aug 19, 2013 at 4:43 PM
Subject: reverse proxy /proxy
To: Tomcat Users List <us...@tomcat.apache.org>
Hello friends
I have some http redirect urls like in my jsp page
http://spn1.spinterllyy.com:50070/webhdfs/v1/Namehome1/terfttb.jpg?=OPEN
http://spn2.spinterllyy.com:50070/webhdfs/v1/Namehome2/terfttb.jpg?=OPEN
I would like to use reverse proxy on my apache server so that the contents
can be cached and served by apache any hints on how to do this
Re: reverse proxy /proxy
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Friend,
On 8/19/13 7:13 AM, Visioner Sadak wrote:
> Hello friends
>
> I have some http redirect urls like in my jsp page
>
> http://spn1.spinterllyy.com:50070/webhdfs/v1/Namehome1/terfttb.jpg?=OPEN
>
>
> http://spn2.spinterllyy.com:50070/webhdfs/v1/Namehome2/terfttb.jpg?=OPEN
>
> I would like to use reverse proxy on my apache server so that the
> contents can be cached and served by apache any hints on how to do
> this
Sounds like you should be asking on the httpd mailing list: this list
is for Apache Tomcat, the Java Servlet Container.
Hint: you should read about httpd's mod_proxy.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBCAAGBQJSEiBOAAoJEBzwKT+lPKRYW8sQAI+yK5BXYjdtTT2zEPV0d5am
l7DxyZaEXZ+mcjB8qwsiF6LJucpETLUzQG1c/9kmMLzgjrngTUB3gUnQyciXM+SH
6W9y3dSJ6w8/lWl/jER4BJZGax7t6tlcXICkM5dmRhO7p5Do9CieRG2bCEudn/23
veaLfDaFtAUqxQOzUU9vg+E8G+5hnlFhIgTHleePRCrnjAoCf6t/mRlEUKh2J+V1
0DzRqk1SRAqEkcaj5N/w8YWKQYCvbnhm57viN8AYnAiM2e+jS1sMfgaBPNpmb6ex
Dc6ul2krCCoXlKe+GvdmKwAPwh7VEY/nF3iKipyUaS0tQDziiiHIY0GfyOkLeRod
mvwTWxn23ry26j/Z3yXUIMEvMLlhUZbWfsYUez7e91XxAppWXn/apCdCK1S1zmoU
ClZaF5T1+WCrKxXyqL4PKXPiTTlA8cwlSZxsFIUdlSEPWdLiA77O1OnoacaJIFRF
TqchG3UFno4gVmomNQRwR9DwqEXiERobodeRcWBiZeeagiuXs91xf1svZuRFGkyC
SrlrmbhfqpaPw9HvbgUSUJSg+VXW2mPlUKWPzALxL9kOyBiWSOt3JGQ4xdnuetML
75SUpRSJoz7rC30clAYMO/c/V1Ce6bYvGvZ+zKamqPCeH5rx8k7s6cnQFEPxkYEM
y84CIkcHpM5ceP3iW7Cl
=p/47
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org