Issue
I have successfully installed the new blogging platform Ghost on my MediaTemple VPS server. It works fine, but I'm having trouble configuring the port numbers. You see, I host about 10 domains on the VPS, so I must have Apache enabled at all times, which means that Ghost has to run on a different port number, i.e. 2368
. This means that for me to be able to access the Ghost installation, I have to navigate to my site by specifying that port number: http://my-domain.com:2368
. Well, I don't want to. It looks bad. I want to have a nice, clean URL. I scoured the web for a solution and I found one. It works, but can potentially affect my SEO, as the port number might be indexed too, which is duplicate content.
Hmm, I really have no idea how to run Ghost without stopping Apache...
Solution
After much investigation and messing about with my server setup, I have figured it out :) Now, my Ghost install runs on Ubuntu 12.04, with nginx 1.4.x. Here's the directive that I'm using:
[...]
location / {
alias /var/www/site;
proxy_pass http://localhost:2368/;
proxy_set_header Host $host;
proxy_buffering off;
}
[...]
Answered By - Nick Answer Checked By - Senaida (WPSolving Volunteer)