Thanks wolstech for reply sorry i was not clear enough, i was searching for something that can host port 80 for hosting web server even through mobile data. port 80 is normally blocked so web server not accessible for testing. in the post someone shared link to software which i am not able to find. Regards.
I actually have a situation on one of my personal sites where https on certain api calls breaks things, but I want the site itself to be served over https to browsers. So I don't use .htaccess redirect as that would force all the api calls to use https too. Instead I use this php code on the browser viewable pages. if (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] === "off") {
$location = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
header('HTTP/1.1 301 Moved Permanently');
header('Location: ' . $location);
exit;
}
You need to install the SSL Certificate and wait up to 12 hours for it to work. This is the recommended for Johnny: http://wiki.helionet.org/Installing_a_Let%27s_Encrypt_SSL_Certificate Johnny doesn’t do auto SSL, only the other two servers of Tommy and Ricky do support.