Re: mod_proxy
<[email protected]> Tue, 19 May 2009 17:54:26 +0200
| Newsgroups | gmane.comp.java.xplanner.devel |
|---|---|
| Message-ID | <[email protected]> |
Thanks,
I have tried xplanner (xplanner-0.7b7-standalone) with mod_proxy, with no s=
uccess. I am attempting to get xplanner to work with the url http://hostna=
me/xplanner which would result in forwarded requests to http://localhost:70=
70 . The problem is to rewrite url:s from xplanner that contains the intern=
al url:
# wget http://localhost/xplanner
--18:30:45-- http://localhost/xplanner
=3D> `xplanner'
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://localhost/xplanner/do/view/projects;jsessionid=3D5A9D9F745=
0D9E14BE7B0A02E1AAFDEF4 [following]
--18:30:45-- http://localhost/xplanner/do/view/projects;jsessionid=3D5A9D9=
F7450D9E14BE7B0A02E1AAFDEF4
=3D> `projects'
Reusing existing connection to localhost:80.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://localhost/xplanner/do/login [following]
--18:30:45-- http://localhost/xplanner/do/login
=3D> `login'
Reusing existing connection to localhost:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
[ <=3D> =
] 2,733 --.--K/s
18:30:46 (44.94 MB/s) - `login' saved [2733]
This seems ok so far, the problem is that urls do not get rewritten, i.e. I=
get a login page but cannot login because the html page contains the action
<form name=3D"login/authenticate" method=3D"post" action=3D"/do/login">. =
Furthermore urls like http://localhost:7070/do/systemInfo wont work outside=
the system where the application is running, when sent to the browser.
The configuration snippet for mod_proxy :
<IfModule mod_proxy.c>
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /xplanner http://localhost:7070/
ProxyPassReverse /xplanner/ http://localhost:7070/
# ProxyPreserveHost On
</IfModule>
BTW ProxyPreserveHost On does not seem to work in this case. I have done si=
milar configs with some other application servers, I think mongrel was one =
of them, without any problems of this kind. =
/Anders
-----Original Message-----
From: Henning Sprang [mailto:[email protected]] =
Sent: den 19 maj 2009 16:33
To: [email protected]
Subject: Re: [Xplanner-devel] mod_proxy
Hi,
On Tue, May 19, 2009 at 3:09 PM, <[email protected]> wrote:
> Is it possible to run xplanner with mod_proxy to use Apache as a =
> reverse proxy for xplanner =A0?
I think that is not depending from xplanner, but with the servlet container.
In general, I don't think there aren't even any things a servlet conatiner =
could do to prevent that.
The mod_proxy is basically nothing else than a normal "client" to the webse=
rver of the servlet container, and just forwarding http requests in one dir=
ection, and the replies in the other.
That said, I haven't tried it with xplanner and a java servlet container - =
with a rails server mod_proxy works without problems once the right config =
is in place.
Henning
---------------------------------------------------------------------------=
---
Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simpl=
ified licensing option that enables unlimited royalty-free distribution of =
the report engine for externally facing server and web deployment. =
http://p.sf.net/sfu/businessobjects
_______________________________________________
Xplanner-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xplanner-devel
---------------------------------------------------------------------------=
---
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables =
unlimited royalty-free distribution of the report engine =
for externally facing server and web deployment. =
http://p.sf.net/sfu/businessobjects