Enable Apache SSL
# Enable SSL
$ sudo a2enmod ssl
# Enable Site
$ sudo a2ensite default-ssl
# Edit /etc/apache2/ports.conf
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
ServerName mysite.example.com
DocumentRoot /usr/local/apache2/htdocs
Redirect permanent /secure https://mysite.example.com/secure
</VirtualHost>
$ sudo a2enmod ssl
# Enable Site
$ sudo a2ensite default-ssl
# Edit /etc/apache2/ports.conf
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
ServerName mysite.example.com
DocumentRoot /usr/local/apache2/htdocs
Redirect permanent /secure https://mysite.example.com/secure
</VirtualHost>
Comentários
Postar um comentário