Hello,
Simon Reinhardt wrote:
Hugh Acland wrote:
So in an ideal world where one's IT budget was larger than management
have given you would have a dedicated restlet 'box' serving only
restlets on port 80. The problem i have is that i am constrained to
one physical server which has apache on 80, glassfish on 8080 and 8181
and now i need to set up the restlets on another port. I tried many
moons ago to get apache to pass through to glassfish on certain
uri-stems but i ended up punching to death three monitors in thr
process. now i just use the :<port> in the client uri. don't like
doing it though as it exposes your architecture to evil-doers. Perhaps
using the servlet as aproxy is the best way forward..
Restlet also has an adaptor for AJP so you could use mod_proxy_ajp
<http://httpd.apache.org/docs/2.2/mod/mod_proxy_ajp.html> to go directly
from Apache to your Restlet app.
Would that be an option?
This should work, indeed. I've been using mod_jk with AJP too. (I
haven't been able to use mod_proxy_ajp yet, since it doesn't support
passing the full chain of client certificates when using SSL, yet.)
Using AJP relies on the Jetty connector (which works fine), or perhaps
on Restlet being deployed within something like Tomcat, itself behind
Apache Httpd (definitely a bit more convoluted, but this could be a
solution if what you can deploy is limited).
Another option would be to use the mod_proxy_http in reverse proxy,
which is similar to mod_proxy_ajp, except that it can talk HTTP to a
container in the back-end, thus leaving more options open regarding the
choice of connector. In fact, a single front-end Apache Httpd could be
talking to a number of containers/connectors behind it: Glassfish,
Restlet, etc.
This approach can be quite handy if you want some flexibility in terms
of deployment. For example, I had a:
- /myapp/* -> talking to the stable version of my application and
- /myapptest/* -> talking to the development version, perhaps running
within the latest snapshot of Restlet.
This can make rolling out new versions a bit smoother.
Best wishes,
Bruno.