Enable SSL for apache server in 5 minutes
Charles last edited by Charles
This post describe how to quickly enable SSL for apache web server under linux. This has been done on a clouded virtual machine, the Linux distribution is Ubuntu 12.04 LTS Server, the one provided by Amazon Aws or Microsoft Azure.… Continue Reading
Click here to see the full blog post
Thank you so much!!! I can finally go to bed now :D
BTW I would also recommend these lines in the default-ssl or default-ssl.conf (depending on what is in your folder when logged into your server
under: <Virtual host default:443>
Find a place to put this three lines
Header add Strict-Transport-Security "max-age=1576800"
SSLProtocol all -SSLv2 -SSLv3
This will give you a better score at https://sslanalyzer.comodoca.com/
Charles last edited by
thanks for the head up, I will add these line for sure
So simple. I had to do a few trick on my apache configuration becabuse I compiled it from source but your post helped a lot. I have setting up my SSL on my Debian and Linux Mint distros.
Raju Ginne last edited by
how to enable ssl for only website in server all other are port 80
if i enabled ssl module then port 80 http traffic refusing
You bloody genius.
Thanks for this great article. I got many ideas from this blog. You may get some more ideas here http://bit.ly/2Afdi6i
Oliver Russell last edited by
Nice guide for integrating <a href="https://www.cloudways.com/blog/add-ssl-certificates-to-custom-php-sites/">PHP with SSL</a>. But this doesn't include how to write redirect rules so your http php site is redirect to https urls. You can write the redirect rules in .htacess.
AWS amazon, I was able to make this guide working in 2020.
anyway, for apache2/php7 you have to change this:
000-default-ssl is now default-ssl
also pay attention to symlink creation. if red, something bad. if its blue, good 4 you.
also, depending on the distribution, to check apache you may apachectl -V
cercatore @ github.com
or httpdctl -V