Disable ProxyPass rules within a virtual host on apache 2? Can this

Disable ProxyPass rules within a virtual host on apache 2? Can this

am 11.11.2009 02:21:32 von Kishore Chintoju

--00504502af90653b3904780e4027
Content-Type: text/plain; charset=ISO-8859-1

Hi All,

*My Setup:*

My website is served from apache with jboss acting as an application server.
All of the webapp resides in jboss deployment directory. Apache talks to
jboss using ProxyPass in development and AJP protocol in production.

*My Goal:*

I want to serve all the static content (e.g. css) out of apache directly
reducing load on Jboss itself, as apache is much better at serving static
content.

*My Problem is:*

I have a global proxypass rule in httpd.conf

ProxyPass /test/css http://myserver:7788/test/css

ProxyPassReverse /test/css http://myserver:7788/test/css

and I have a virtual host

Listen localhost:7788
NameVirtualHost localhost:7788

Alias /test/css/
"C:/jboss/server/default/deploy/test.ear/test-web-app.war/cs s/"


*I would like to disable all global proxypass rules applying in this virtual
host? NoProxy doesn't seem to work.*

(The reason I would like to do this is I have below global rules which
create a 502 proxy loop if applied within this virtual host

#pass all requests to application server
ProxyPass /test http://localhost:8080/test
ProxyPassReverse /test http://localhost:8080/test

)

*What I'm trying to do is, serve all static content (like css) using apache,
while still proxying all the rest of requests to the application server.*

Any help or guidance would be really appreciated.

Cheers
Kishore

(P.S. I've already asked this question at
serverfault.com
)

--00504502af90653b3904780e4027
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable


Hi All,

My Setup:

My website is serve=
d from apache with jboss acting as an application server. All of the webapp=
resides in jboss deployment directory. Apache talks to jboss using ProxyPa=
ss in development and AJP protocol in production.



My Goal:

I want to serve all the static content (e.g. css)=
=A0out of apache directly reducing load on Jboss itself, as apache is much =
better at serving static content.

My Problem is:

I have =
a global proxypass rule in httpd.conf





space: pre; ">ProxyPass an>/test =3D"pun">/css http: span>//myserver:7788/test/css



ProxyPassReverse
> /
">test/css http
>://myserver:7788/test/css
span>




and I have a virtual host



Listen
ss=3D"pln"> localhost:
>7788
NameVirtualH=
ost
localhost:=
7788


<VirtualHost > localhost: ss=3D"lit">7788> r>=A0 =A0 Alias n>/test "pun">/css/ an class=3D"pln"> "C:/jboss/server/default/=
deploy/test.ear/test-web-app.war/css/"



</VirtualHost n>>
e>

I would like to disable all global proxypass rules applying in t=
his virtual host? NoProxy doesn't seem to work.



(The reason I would like to do this is I have below global rules
which create a 502 proxy loop if applied within this virtual host



#pass all requests to =
application server

>ProxyPass =A0 =A0 =A0 =A0 pun">/test =A0 =A0 =A0 =A0 =A0http lass=3D"pun">://localhost:8080/test class=3D"pln">


ProxyPassReverse an>/test =A0 =A0 =A0 =A0 =A0=
http
://localhost:8080=
/test





)



What I'm trying to do is, serve all static content (like css)
using apache, while still proxying all the rest of requests to the
application server.

Any help or guidance would be really appreci=
ated.

Cheers
Kishore

(P.S. I've already asked this quest=
ion at=A0 s-rules-within-a-virtual-host-on-apache-2">serverfault.com)





--00504502af90653b3904780e4027--

Re: Disable ProxyPass rules within a virtual host on

am 11.11.2009 02:36:07 von Eric Covener

On Tue, Nov 10, 2009 at 8:21 PM, Kishore Chintoju
wrote:

> I would like to disable all global proxypass rules applying in this virtual
> host? NoProxy doesn't seem to work.

Have you tried the ProxyPass syntax that uses an exclamation point?
The alternate solution would be to move your existng rules into their
own virtualhost.

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypas s
--
Eric Covener
covener@gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org