I installed Jenkins on a remote server running Debian 6.0.6 with a ready-to-use Apache 2 instance by using the following instructions:
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add -
sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
apt-get update
apt-get install jenkins
Then I did some configuration:
a2enmod proxy
a2enmod proxy_http
a2enmod vhost_alias
I created the file /etc/apache2/sites-available/jenkins
:
<VirtualHost *:80>
ServerName mydomain.de/jenkins
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost on
ProxyPass /jenkins http://mydomain.de:8080/jenkins
</VirtualHost>
And finally restarted Apache with /etc/init.d/apache2 restart
.
Now I cannot reach it via Webbrowser. Neither of the following lines works:
mydomain.de/jenkins
mydomain.de:8080
mydomain.de:8080/jenkins
Using the first address triggers the following error message in /var/log/apache2/error.log
:
File does not exist: /var/www/main/jenkins
EDIT: I just found out that starting the browser on the remote server I can access Jenkins by visiting http://localhost:8080
. So Jenkins works, only the redirection is still erroneous.