Easiest would be an iptables redirect, so you don't have to re-configure all services/vhosts. And your new port would need to be opened in the CSF firewall (/etc/csf/csf.conf). Start by enabling port forwarding:
echo "1" > /proc/sys/net/ipv4/ip_forward
Then you have to add the following rules to your iptables NAT table:
iptables -t nat -A PREROUTING -s 127.0.0.1 -p tcp --dport 443 -j REDIRECT --to 8443`
iptables -t nat -A OUTPUT -s 127.0.0.1 -p tcp --dport 443 -j REDIRECT --to 8443`
Thank you for your guide.
I applied the commands but still the site doesn't work via https in my country. (When I check with vpn through another country, the sites go through https without any problem. here is an example site:
https://hipsychology.com)
Maybe I didn't do the port forwarding correctly? Is there a way to check https websites is running through which port now?
Even when I tried to redirect "Https" to "Http" via .htaccess file It's not working.
Maybe we need to do that before forwarding level? or maybe they use another method to block https websites?