About Me

Anjum Ara I am a technology enthusiast, an ardent reader. My latest interest is virtualization. In my free time, I love understanding child nutrition, child holistic development. I bake, read, paint, and do whatever it takes to improve myself every day.

Friday, April 10, 2015

Redirect traffic from HTTP to HTTPS post SSL

Once we have completed implementing SSL OHS offloading. We should ensure that the old URL is no longer available or the user is redirected to HTTPS.



In httpd.conf add the following entries
 




Above rules caused FDMEE to not function well. The URL http://servername:6550/odiagent was internally getting redirected to https://servername:6550/odiagent which is incorrect since we have terminated SSL only till OHS.

So I edited the RewriteRule as shown below

<VirtualHost *:80>
    include "conf/mod_wl_ohs.conf"
    Include "conf/epm_online_help.conf"
    Include "conf/epm_rewrite_rules.conf"
    Include "conf/epm.conf"
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^/workspace/(.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteRule ^/easconsole/(.*) https://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>





It all worked fine like a healthy little environment. 

Share:

0 comments: