7月 172012
 
Pocket

リバースプロキシなApacheと連携したい場合などに必要となる事がある。

Javaの実行オプションに--prefix=/jenkinsという具合に付加すると、http://localhost:8080/jenkinsでサーバーが起動する。

[xml title=”jenkins.xml”]
-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar “%BASE%\jenkins.war” –httpPort=8080 –prefix=/jenkins
[/xml]

Running Jenkins behind Apache – Jenkins – Jenkins Wiki

Set the context path in Windows by modifying the jenkins.xml configuration file and adding –prefix=/jenkins (or similar) to the entry.
Set the context path when using the Ubuntu package by adding –prefix=/jenkins to JENKINS_ARGS in /etc/default/jenkins ( or in /etc/sysconfig/jenkins for RHEL/CentOS package)

 Leave a Reply