Port 443 (https) timed out linux VPS

port 443 or in other words https is timing out with no trace of what the problem may be.

Checking the default conf files:

/etc/httpd/conf/httpd.conf /etc/httpd/conf.d/ssl.conf

One error found when comparing httpd.conf and ssl.conf is that mod_ssl.so (the ssl_module) was being loaded twice. Throwing an error every time I restart httpd.

LoadModule ssl_module /usr/lib64/httpd/modules/mod_ssl.so /etc/init.d/httpd restart

After hours of research the answer is a couple simple lines of code to update the iptables... first check iptables --list to see where you need to add the exceptions, in this case VZ_INPUT and VZ_OUTPUT.

iptables -A VZ_INPUT -p tcp -m tcp --dport 443 -j ACCEPT iptables -A VZ_OUTPUT -p tcp -m tcp --sport 443 -j ACCEPT

Then run:

service iptables save

Now https will work and when you restart the server via plesk or virtuozzo your iptables will stay intact.