Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to set up Ghost the blogging platform on my CentOS (6.5, x64) server with Apache and... I think I mixed together my domain ( with the Ghost subdomain ( I hope the main page would be a static html page. So here's my problem:

  • -> (redirected to is going to GHOST ----- should go to "Welcome Apache"
  • -> is going to GHOST ----- should go to "Welcome Apache"
  • -> is going to GHOST and it's correct

I found a similar thread here:

The solution there is based on nginx and Ubuntu, I guess. Could anyone help me walk through the settings with Apache? Thanks! I can't do it like because Ghost is a nodejs app with no DocumentRoot to set, which listens port 80 and links it with port 2368.

Here are some snippets that would help understand my situation (I've uncomment the '#NameVirtualHost *:80' in /etc/httpd/conf/httpd.conf):

vim /etc/httpd/conf.d/ghost.conf

<VirtualHost *:80>

ProxyRequests Off
ProxyPreserveHost On

AddDefaultCharset Off
Order deny,allow
Allow from all

ProxyPass /
ProxyPassReverse /


and here's my DNS zone file:

A (Host)
Host Points To
@    M.Y.I.P

CName (Alias)
Host Points To
blog   @
www    @
share|improve this question
up vote 0 down vote accepted

Problem solved.

rm /etc/httpd/conf.d/ghost.conf

vim /etc/httpd/conf/httpd.conf
<VirtualHost *:80>

    ProxyPreserveHost on

    ProxyPass /


<VirtualHost *:80>
    ProxyRequests off

    DocumentRoot /var/www/html

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.