yum install httpd
Install SSL module for Apache (httpd)
yum install ssl_mod
Redirect http to https
vi /etc/httpd/conf/httpd.conf
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]
Enable User webpage
#UserDir disable
UserDir public_html
No comments:
Post a Comment