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 have standard Apache configuration. At Apache is serving static html files (No backend technology)

At, there is a Ghost (blogging platform) instance, running NodeJS.

I want to have the following effect:

People should come in at and it should redirect (the content, not the URL) to the Ghost instance at the specific port.

So far, i have managed to make to point at Ghost, but I want /blog to work too.

Here is my main VH:

<VirtualHost *:80>

    DocumentRoot /srv/www/htdocs/
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    <Directory /srv/www/htdocs/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined

Here is the additional VH which redirects the port to

    <VirtualHost *:80>  
    ProxyPass /
    ProxyPassReverse /
    ProxyPreserveHost On
share|improve this question
ProxyPass /blog ... in your vhost – Iain Jan 12 '14 at 15:19
Yes but Ghost is looking for resources and not finding them that way :/ – Radoslav Georgiev Jan 12 '14 at 15:49
GET 404 (Not Found) blog:17 GET 404 (Not Found) blog:84 GET 404 (Not Found) blog:87 – Radoslav Georgiev Jan 12 '14 at 15:58
It seems that Ghost is not supporting subdirectories right now -… – Radoslav Georgiev Jan 12 '14 at 16:18
up vote 0 down vote accepted

Ghost added support for this in 0.4 -

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.