Jump to content

Secure hosting and phpvms


TheBulk

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 4 months later...

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...