{"id":447,"date":"2015-03-03T11:09:53","date_gmt":"2015-03-03T10:09:53","guid":{"rendered":"http:\/\/hamsterhirn.de\/?p=447"},"modified":"2015-03-03T11:09:53","modified_gmt":"2015-03-03T10:09:53","slug":"get-weblogic-working-with-apache-as-reverse-proxy-mod_proxy","status":"publish","type":"post","link":"https:\/\/hamsterhirn.de\/index.php\/2015\/03\/get-weblogic-working-with-apache-as-reverse-proxy-mod_proxy\/","title":{"rendered":"get WebLogic working with Apache as reverse proxy (mod_proxy)"},"content":{"rendered":"<p>There is Oracle Reports running on a WebLogic Server. I want it to run on https but for some reason I don&#8217;t know it wasn&#8217;t working for the Internet Explorer 11 (and maybe other versions too). IE11 just timed out and never displayed any html nor could be establish a connection. It worked with Chrome and Firefox.<br \/>\nAs a fast workaround I thought, lets install a Apache and make the ssl stuff there and proxy it to the WebLogic http listening address. Both WebLogic and Apache are on the same machine, so no problem with using the http port.<\/p>\n<p>With the usual Apache config for mod_proxy:<br \/>\n<pre><code class=\"preserve-code-formatting\">\n...\nProxyPass \/reports http:\/\/somedomain.tld:7002\/reports\nProxyPassReverse \/reports http:\/\/somedomain.tld:7002\/reports\n...\n<\/code><\/pre><\/p>\n<p>Those lines weren&#8217;t enough because I could still see links to <em>http:\/\/somedomain.tld:7002\/reports*<\/em> embedded within the html code.<br \/>\nWith enabling additional options and rewriting html I thought it could be managed:<\/p>\n<p><pre><code class=\"preserve-code-formatting\">\nSetOutputFilter proxy-html\nProxyHTMLEnable On\nProxyHTMLExtended On\nProxyHTMLURLMap http:\/\/somedomain.tld:7002\/reports https:\/\/somedomain.tld\/reports\n<\/code><\/pre><\/p>\n<p>Most of the links worked now but there were still pages not displaying correctly. Those pages just had<br \/>\n<pre><code class=\"preserve-code-formatting\">\n&amp;lt;html&amp;gt;\n&amp;lt;head&amp;gt;\n&amp;lt;base href=&quot;https:\/\/somedomain.tld\/reports\/rwservlet\/getfile\/HW-NW8428FX-mIL4832KDA-==\/0jsdfUjid.htm&quot;&amp;gt;\n&amp;lt;\/head&amp;gt;&amp;lt;\/html&amp;gt;\n<\/code><\/pre><br \/>\nin it.<\/p>\n<p>Without the Apache proxy it was something like:<br \/>\n<pre><code class=\"preserve-code-formatting\">\n&amp;lt;html&amp;gt;\n&amp;lt;head&amp;gt;\n&amp;lt;base href=&quot;http:\/\/somedomain.tld:7002\/reports\/rwservlet\/getfile\/HW-NW8428FX-mIL4832KDA-==\/0jsdfUjid.htm&quot;&amp;gt;\n&amp;lt;\/head&amp;gt;&amp;lt;\/html&amp;gt;\n\n&amp;lt;html&amp;gt;\n...\nwhole page content\n...\n&amp;lt;\/html&amp;gt;\n<\/code><\/pre><\/p>\n<p>After googling I finally found a solution&#8230; <a href=\"http:\/\/theheat.dk\/blog\/?p=916\" target=\"_blank\">Simple tell WebLogic that there is a proxy in front of it \ud83d\ude42<\/a><br \/>\nIn short:<\/p>\n<ul>\n<li>enable &#8222;WebLogic Plug-In Enabled&#8220; in <em>Domain Structure &gt; Environment &gt; Servers &gt; managed01 &gt; Configuration General &gt; Advanced<\/em><\/li>\n<li>write in your hostname in &#8222;Frontend Host:&#8220; and set your https port in &#8222;Frontend HTTPS Port:&#8220; <em>Domain Structure &gt; Environment &gt; Servers &gt; managed01 &gt; Protocols &gt; HTTP<\/em><\/li>\n<li>save changes and restart WebLogic<\/li>\n<li>set an additional header within your Apache config: <code class=\"preserve-code-formatting\">RequestHeader set WL-Proxy-SSL true<\/code><\/li>\n<li>restart Apache<\/li>\n<li>it should work now \ud83d\ude42<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>There is Oracle Reports running on a WebLogic Server. I want it to run on https but for some reason I don&#8217;t know it wasn&#8217;t working for the Internet Explorer 11 (and maybe other versions too). IE11 just timed out and never displayed any html nor could be establish a connection. It worked with Chrome [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[223,225,230,229,224,222,228,226,227,220,221],"class_list":["post-447","post","type-post","status-publish","format-standard","hentry","category-it","tag-apache","tag-base-href","tag-firefox","tag-internet-explorer","tag-mod_proxy","tag-oracle","tag-proxy","tag-proxyhtmlextended","tag-proxyhtmlurlmap","tag-weblogic","tag-wls"],"_links":{"self":[{"href":"https:\/\/hamsterhirn.de\/index.php\/wp-json\/wp\/v2\/posts\/447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hamsterhirn.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hamsterhirn.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hamsterhirn.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hamsterhirn.de\/index.php\/wp-json\/wp\/v2\/comments?post=447"}],"version-history":[{"count":8,"href":"https:\/\/hamsterhirn.de\/index.php\/wp-json\/wp\/v2\/posts\/447\/revisions"}],"predecessor-version":[{"id":455,"href":"https:\/\/hamsterhirn.de\/index.php\/wp-json\/wp\/v2\/posts\/447\/revisions\/455"}],"wp:attachment":[{"href":"https:\/\/hamsterhirn.de\/index.php\/wp-json\/wp\/v2\/media?parent=447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hamsterhirn.de\/index.php\/wp-json\/wp\/v2\/categories?post=447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hamsterhirn.de\/index.php\/wp-json\/wp\/v2\/tags?post=447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}