Xampp: can I make it work with https?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Xampp: can I make it work with https?

Post by simonmlewis »

We are now having our main website on SSL, so have updated htaccess to use SSL.
However, this means XAMPP won't run the site because it's trying to replace the http.
So can XAMPP work with SSL and make some sort of fake certificate to run locally, or do I have to have a developer version of HTACCESS that's non SSL?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Xampp: can I make it work with https?

Post by Celauran »

simonmlewis wrote:We are now having our main website on SSL, so have updated htaccess to use SSL.
Better to do this in the vhost if you can. http://httpd.apache.org/docs/2.4/rewrite/avoid.html
simonmlewis wrote:However, this means XAMPP won't run the site because it's trying to replace the http.
Also solved by the above.
simonlewis wrote:So can XAMPP work with SSL and make some sort of fake certificate to run locally
I'm sure it can. I've done that plenty on Linux and OS X. Not a Windows user myself, but there are plenty of resources
https://www.google.com/search?q=windows ... 8&oe=utf-8

I've used something like this: http://brianflove.com/2014/12/01/self-s ... -yosemite/
Not sure if it will be of use given the different OS
Post Reply