TheBulk Posted February 10, 2016 Report Share Posted February 10, 2016 Hi everyone, I have been looking into the possibility of running my copy of phpvms via secure connection so that if people browse to http:// they are redirected automatically to https:// as my paid hosting offers free security certificates and secure hosting. I did a test of it on my testbed platform for phpvms, added the secure hosting to the domain, added the certificate, added the code to the htaccess file for phpvms and set url rewrite in the config file to true however it didnt load the page correctly. Some compotents were loaded and others were not. Firefox said the page contained mixed content. I have searched the forums for this one but have not found any result for it. Has anyone else tried to configure their installation to be on a secure link? Did you get it work and if yes how did you do it? Many Thanks Jonny Quote Link to comment Share on other sites More sharing options...
web541 Posted February 11, 2016 Report Share Posted February 11, 2016 If you have any references to things like jQuery, they should look like this <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> and change them to look like this <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> Which might (or not) solve a few errors Quote Link to comment Share on other sites More sharing options...
TheBulk Posted February 11, 2016 Author Report Share Posted February 11, 2016 Thanks web541 I will give it a try and report back on my findings. Quote Link to comment Share on other sites More sharing options...
TennShadow Posted June 20, 2016 Report Share Posted June 20, 2016 Thanks web541 I will give it a try and report back on my findings. Did you have any luck with this? This is something I've been thinking about as well given the fact that http is not secure. Quote Link to comment Share on other sites More sharing options...
web541 Posted June 20, 2016 Report Share Posted June 20, 2016 Did you have any luck with this? This is something I've been thinking about as well given the fact that http is not secure. I can't speak for @TheBulk, but it should work as it should under https:// provided that you do change all http:// references to https:// and change your site url in local.config.php to https:// One issue I suspect will happen though is the adding airports function, because the api.vacentral.net server is using the http:// protocol, you might get a mixed content exception error in your console which won't allow it to search. But if you've got a separate way to search these airports e.g. finding the lat/lng/airport info separately or modifying the script to search another server, then I can't see why it wouldn't work. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.