Running RedBox and Jetty 6.1.24 behind Apache for Windows 2.4
On the server itself we’ve configured Jetty for localhost operation and can run RedBox as http://localhost:9000/redbox and it all functions correctly.
However, when we access RedBox external to server and come in through Apache on port 80 we see the following:
When viewing source it shows all references are localhost absolute to the server, which explains the missing graphics.
It looks like Apache is correctly redirecting but that RedBox/Jetty is returning localhost references. Is the issue likely to be the Apache or Jetty config?
Our Apache config is
ProxyVia On
ProxyPreserveHost On
ProxyPass /redbox http://localhost:9000/redbox/
ProxyPassReverse /redbox http://localhost:9000/redbox/
ProxyPass /mint http://localhost:9001/mint/
ProxyPassReverse /mint http://localhost:9001/redbox/
Thanks
Jon
Jon Hurn, Project Manager, IT Services,
University of Tasmania, PO Box 69, HOBART TAS 7001
Mob: 0427 912 992 Tel: +61 3 6226 2935 Skype: jonhurn
--
-- Website: http://www.redboxresearchdata.com.au
You received this message because you are subscribed to the Google Groups ReDBox group. To post to this group, send email to redbo...@googlegroups.com. To unsubscribe from this group, send email to redbox-repo...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/redbox-repo?hl=en
---
You received this message because you are subscribed to the Google Groups "ReDBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redbox-repo...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Running RedBox and Jetty 6.1.24 behind Apache for Windows 2.4
On the server itself we’ve configured Jetty for localhost operation and can run RedBox as http://localhost:9000/redbox and it all functions correctly.
However, when we access RedBox external to server and come in through Apache on port 80 we see the following:
When viewing source it shows all references are localhost absolute to the server, which explains the missing graphics.
It looks like Apache is correctly redirecting but that RedBox/Jetty is returning localhost references. Is the issue likely to be the Apache or Jetty config?
Our Apache config is
ProxyVia On
ProxyPreserveHost On
ProxyPass /redbox http://localhost:9000/redbox/
ProxyPassReverse /redbox http://localhost:9000/redbox/
ProxyPass /mint http://localhost:9001/mint/
ProxyPassReverse /mint http://localhost:9001/redbox/
Thanks
Jon
Jon Hurn, Project Manager, IT Services,
University of Tasmania, PO Box 69, HOBART TAS 7001
Mob: 0427 912 992 Tel: +61 3 6226 2935 Skype: jonhurn
--
Nishen
Naidoo
Senior Systems Analyst
Library
IT
MACQUARIE
UNIVERSITY NSW 2109
[JNL]
E-Mail:
nishen...@mq.edu.au
Phone: +61 2
98506553
Mobile: +61 4
30006783
Fax: +61 2
98507912
http://www.mq.edu.au/library
CRICOS
Provider No 00002J
This message is intended for the addressee named and
may contain confidential information. If you are not the intended recipient,
please delete it and notify the sender. Views expressed in this message are
those of the individual sender, and are not necessarily the views of Macquarie
University Library or Macquarie University.
Please consider the
environment before printing this email.
Thanks everyone who responded both on and offline. We finally resolved the problem after many false starts and disappearing down a few rabbit holes. Just to confirm, we’re running on a Microsoft stack but with Jetty as the local web server and Apache for Windows as a transparent proxy.
Our mistake was in not keeping things simple. In the end there was very little to do except modify the tf_env.bat file server_url setting to https://rdds.utas.edu.au/redbox and leave alone references to localhost (similar changes for Mint), and also set up Apache to redirect.
Our Apache config was pretty much correct from day one with the proxy and reverse proxy settings, although we didn’t know this as it was this layer we were unfamiliar with and at the start tended to think was the source of our problems. It did need a couple of tweaks to the SSLCertificate entries.
Port 80 requests are redirected to port 443. Apache takes care of the secure layer and maps the appropriate requests to either RedBox or Mint Java web apps as necessary. The RedBox/Mint applications run self-contained as localhost on the server.
As indicated above, our admins went down a few rabbit holes with (at times) large changes to tf_env and system-config.json files which were all unnecessary. Also no changes to POM files or the applications were required.
If anyone has any queries about any aspect of this I’d be more than happy to try and help out.
Thanks again.