I'm trying to setup a hudson server which is accessed from an apache proxy. The Hudson index page loads but no images, css or javascript are loaded. It seems as relative paths are not working correctly. My current apache configuration for the proxy is the following:


<VirtualHost *:8000>
    RewriteEngine On
    ProxyPass         /hudson  http://localhost:8081
    ProxyPassReverse  /hudson  http://localhost:8081
    ProxyRequests     Off
    ProxyPreserveHost On

    <Proxy *>
        Order deny,allow
        Allow from all

The next screenshot shows how the hudson index is displayed:

(don't have enough reputation to post the image sorry, but imagine the hudson index with no images or css, just black text and blue links)

I think the problem is in my apache config but I can't find any information about this error.

Thanks in advance.

1 Answer 1


Use "--prefix=/hudson" in /etc/default/hudson and:

ProxyPass         /hudson  http://localhost:8081/hudson
ProxyPassReverse  /hudson  http://localhost:8081/hudson


ProxyPass         /  http://localhost:8081
ProxyPassReverse  /  http://localhost:8081
  • When Hudson is down Apache shows: Service Temporarily Unavailable but when I start hudson It wont load anything
    – eliocs
    Commented Jan 23, 2011 at 12:21
  • Is there any more output or logs I could get for this situation?
    – eliocs
    Commented Jan 23, 2011 at 12:37
  • Your answer is correct! But my hudson froze because of the continuous restarts, THANKS :D
    – eliocs
    Commented Jan 23, 2011 at 14:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .