Apache2 Redirect all http traffic to https (virtualhost)

Add or modify the following in your sites-enabled / available and restart apache2

<VirtualHost *:80>
ServerName YourServer
Redirect permanent / https://www.yourdomain.com/
</VirtualHost>

Print Friendly, PDF & Email

More Like This


Categories


CentOS Linux Ubuntu / Mint Web Hosting
  • Post a comment