I set up Jenkins on my mac and use Nginx as reverse proxy. I follw the doc( https://www.jenkins.io/doc/book/system-administration/reverse-proxy-configuration-nginx/ ) but stuck on
Set the context path by modifying the jenkins.xml configuration file and adding --prefix=/jenkins to the entry.
I can't find jenkins.xml in my folder (only config.xml)
And I don't know where to add --prefix=/jenkins, it only says add to the entry.
You can export this as an Environment variable as shown below before starting Jenkins. Or add this to the Jenkins startup script.
export JENKINS_OPTS="--prefix=/jenkins"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.