I'm hosting couple of websites out of my cloud server. And I wanted to use Ghost for the 'blog' subdomain for one of the website.
I've managed to install Ghost and the Development environment works fine in localhost. However, the Production environment which now runs at 2365 port opens perfectly fine at www.blog.foobar.com:2365
I need it to open at just the www.blog.foobar.com
I've tried setting the port to 80 in the config.js and I get the Error: listen EACCES Even the ARR in IIS doesnt work. Tried almost all the steps suggested in the google search results. Reverse proxy just redirects the sub-domain to index.js
I have the port set to 2365 in config.js as if I set it to 80, it wont start at all. My IIS site binding is at port 80.
Finally figured it out with the help at the ghost forums. Assuming you have iisnode already installed and an A record for your sub-domain at your domain registrar, proceed with:
web.config
to as it is at Configuration FileChange the config.js production section as below
host: '127.0.0.1',
port: process.env.PORT
Leave the bindings
as it is in your sub-domain IIS site settings i.e 80
production
in the index.js
file instead of development