How To
Summary
How to redirect HTTP to HTTPS for Redhat?
Steps
This is a note related to redirecting http to go to Https.
WARNING: This has not been tested with all components of SOAR or SOAR apps.
- Backup web configuration files that will be altered:
cp -p /usr/share/co3/conf/server.xml /usr/share/co3/conf/server.xml.org cp -p /usr/share/co3/conf/web.xml /usr/share/co3/conf/web.xml.org cp -p /etc/firewalld/zones/public.xml /etc/firewalld/zones/public.xml.org - Edit files that were backed-up:
Add in the lines that are in purple:vi /usr/share/co3/conf/server.xml...
...vi /usr/share/co3/conf/web.xml - Restart Resilient for the changes to take effect.
systemctl restart resilient - Modify Firewall rule to allow port 80
firewall-cmd --zone=public --add-port=80/tcp --permanentThis adds a line to /etc/firewalld/zones/public.xml:
more /etc/firewalld/zones/public.xml
<?xml version="1.0" encoding="utf-8"?>
<zone>
<short>Public</short>
<description>For use in public areas. You do not trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted
.</description>
<service name="ssh"/>
<service name="dhcpv6-client"/>
<port protocol="tcp" port="22"/>
<port protocol="tcp" port="443"/>
<port protocol="tcp" port="65000"/>
<port protocol="tcp" port="65001"/>
<port protocol="tcp" port="80"/> - Restart the firewall Daemon for the changes to take effect.
systemctl reload firewalld
Additional Information
To Back Out the work:
- Replace the files to their originals:
cp -p /usr/share/co3/conf/server.xml.org /usr/share/co3/conf/server.xml cp -p /usr/share/co3/conf/web.xml.org /usr/share/co3/conf/web.xml cp -p /etc/firewalld/zones/public.xml.org /etc/firewalld/zones/public.xml - Restart the Services:
systemctl restart resilient systemctl reload firewalld
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
16 June 2025
UID
ibm17236908