Enabling HTTPS on express.js

I’m trying to get HTTPS working on express.js for node, and I can’t figure it out. This is my app.js code. var express = require(‘express’); var fs = require(‘fs’); var privateKey = fs.readFileSync(‘sslcert/server.key’); var certificate = fs.readFileSync(‘sslcert/server.crt’); var credentials = {key: privateKey, cert: certificate}; var app = express.createServer(credentials); app.get(“https://stackoverflow.com/”, function(req,res) { res.send(‘hello’); }); app.listen(8000); When … Read more

HTTPS leads to Sorry, you are not allowed to access this page

I have a fresh WordPress installation that works fine. I decide to make it work under HTTPS so I go in the General config and change the “WordPress Address” and the “Site Adress” from http://my.website.com/blog/ to https://my.website.com/blog/. First, this create a redirection loop so I have to add the following lines to my wp_config.php: /** … Read more

Stop WordPress from using HTTPS and just use HTTP

Just today I synchronized a development website database with a production website database. Now, my development website gives a “404 Not Found” error. The URL starts with HTTPS, and there is a red slash through the HTTPS text. The 404 page says “The server can not find the requested page: dev.greenbee-web.com/ilaimh/wp-admin/ (port 443). Apache Server … Read more