how do I set up the auto redirect with apache2. I have got SSL working and want to redirect all to the SSL side. I added Redirect / https://fraffel.tech/ but takes me to the wrong site directory whereas https takes me to the right spot. Is that the right thing to add for the redirect? (its in VirtualHost *:80)
Current VirtualHost file:
ServerName fraffel.tech
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/fraffeltech
Redirect / https://fraffel.tech/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
DocumentRoot /var/www/fraffeltech
SSLEngine on
SSLCertificateFile /etc/ssl/fraffel_tech.crt
SSLCertificateKeyFile /etc/ssl/private/fraffel.tech.key
SSLCertificateChainFile /etc/ssl/fraffel_tech.ca-bundle
</VirtualHost>
https
when opened your site. – pa4080 May 03 '18 at 09:35