Redirecionamentos (Apache)

Redirecionar para HTTPS

<VirtualHost *.80>
	ServerName dominio.ufrj.br
	DocumentRoot /srv/dominio/
 
	Redirect 302 / https://dominio.ufrj.br
</VirtualHost>
 
<VirtualHost *.443>
	ServerName dominio.ufrj.br
	DocumentRoot /srv/dominio/
 
	SSLEngine on
 
        SSLCertificateFile    /etc/ssl/http/server.crt
        SSLCertificateKeyFile /etc/ssl/http/server.key
        Header always set Strict-Transport-Security "max-age=0; includeSubdomains; "
</VirtualHost>