Browser shows page source when accessing JBoss ON UI login page through reverse proxy
Issue
- I did an upgrade in our test environment from JON 3.2 to JON 3.3.1. But after the upgrade I run into a big problem. After the server "load page" is done i will come to a HTML page. It looks like JON doesn't read the HTML code and present it as it should.
- JBoss ON 3.3 login page is loaded as a source instead of html;
- Browser shows page source when accessing JBoss ON UI login page through reverse proxy
- When accessing JBoss ON login page through reverse proxy, my browser shows:
<html class="login-pf" xmlns="http://www.w3.org/1999/html">
<head>
<!-- this forces us to emulate IE8 "quirks" mode regardless of IE browser version. It:
1) Follows the SmartGWT recommendation of not declaring a DOCTYPE and instead using these meta elements.
http://forums.smartclient.com/showthread.php?t=15973
2) solves initial app load issues that we experienced on some XP and Vista/Windows7 flavors.
-->
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
...
<!-- GWT iframe -->
<iframe src="javascript:''" id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>
</body>
</html>
- reverse proxy in front of jon shows html source instead of genreating the page.
- We installed jon to listen to localhost and put a apache in front of it which acts as a reverse proxy. When we access the url we get the source code printed instead of generating the actual login page.
Environment
- Red Hat JBoss Operations Network (JON)
- 3.3.0
- 3.3.1
- 3.3.2
- Firefox or Chrome;
- This issue does not exist when Internet Explorer (IE) is used;
- Configured reverse proxy in front of JBoss ON by adding the following in the Apache httpd.conf file:
<VirtualHost jon.server.example:80>
ServerName jon.server.example
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://jon.server.example:7080/
ProxyPassReverse / http://jon.server.example:7080/
</VirtualHost>
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.