UnixServerAdmin

Server Administration & Management

How to Redirect your website to secure port

# iptables -t nat -A PREROUTING -i eth0 -p tcp –dport 80 -j REDIRECT –to-port 443

# /etc/init.d/iptables save

# chkconfig iptables on

Advertisements

September 12, 2011 Posted by | Apache, Security, SSH, Tips & Tricks | , , , | Leave a comment