Question
Redirect http request -> https
Hi!! I activated 5$ plan vps yesterday, I'm quite impressed.
I'm developing a management application, that have to run throught ssl.
I created this virtualhost (following the guide on digital ocean):
ServerAdmin maltesepiero@gmail.com
ServerName emmepiesse.no-ip.org:443
ServerAlias www.emmepiesse.no-ip.org:443
DirectoryIndex index.html
DocumentRoot /var/www/mps
# CGI Directory
ScriptAlias /cgi-bin/ /var/www/mps/cgi-bin/
Options +ExecCGI
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key
and it works well, but I'll have issue in redirecting http traffic.
I tried with:
ServerName emmepiesse.no-ip.org
Redirect / https://emmepiesse.no-ip.org:443
but no luck.
Ideas?
Thank you in advance
Add a comment
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×