I had the same problem, and I first tried using Apache ProxyPass to redirect /blog to port 2368 , but found other problems doing this.
Before proceeding with my suggestions, you must undo any changes made using httpproxy .
It seems to have worked for me - put the code that you have in index.js directly into your app.js file instead of what you already have. You will need to add the ghost error variable and rename parentApp to the name of your application, I will call it yourAppName to yourAppName it, but mine is just an app . So, inside app.js you can put:
var yourAppName = express(); var ghost = require('ghost'); var ghosterrors = require('ghost/core/server/errors') ghost().then(function(ghostServer) { yourAppName.use(ghostServer.config.paths.subdir, ghostServer.rootApp); ghostServer.start(yourAppName); }).catch(function(err) { errors.logErrorAndExit(err, err.context, err.help); });
You probably already have the ghost and express variables declared in app.js, so you don't need to add these lines.
The blog should now be available at the address specified in config.js.
Myles source share