Switch HTTP Virtual Host to HTTPS Virtual Host
Posted
by
Kumar
on Super User
See other posts from Super User
or by Kumar
Published on 2013-11-01T09:54:18Z
Indexed on
2013/11/01
9:59 UTC
Read the original article
Hit count: 465
We are using apache web server with RHEL 6.4.
Currently we configured Name based virtual host on server.
Enabled "Namebased Virtualhost *:80" and created /etc/httpd/conf.d/example-com.conf
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/vhost/example.com/public_html
ServerName www.example.com
ServerAlias example.com
ErrorLog /var/log/httpd/vhosts/example-com-error_log
CustomLog /var/log/httpd/vhosts/example-com-access_log common
</VirtualHost>
I've located my ssl certificates by /etc/httpd/conf.d/ssl.conf
In this case how can I switch 80 site to 433 and also redirect all requests to 80 to 443
© Super User or respective owner