Jenkins redirects / to / jenkins on a standalone installation

We have a standard Debian installation for Jenkins (winstone only, not tomcat or apache) that we run from --prefix=/jenkinsand on port 80.

Now that I get access to http://my.server/, I get page 404. Can I convince Winstone to somehow redirect this to the correct address http://my.server/jenkins/?

EDIT: I know that I can install Apache and use the following rewrite rule to get what I want:

RewriteEngine On
RewriteRule ^/*$ https://jenkins.corp.mobile.de/jenkins/ [R]

My question is how to do this in Winstone.

+5
source share
3 answers

, , - Jenkins - , 8080 --prefix=/jenkins, - Apache Nginx 80, /jenkins http://localhost:8080/jenkins

Apache - Apache:

ProxyPass         /jenkins  http://localhost:8080/jenkins
ProxyPassReverse  /jenkins  http://localhost:8080/jenkins
ProxyRequests     Off

# Allow direct access to Jenkins only from localhost i.e. Apache
<Proxy http://localhost:8080/jenkins*>
  Order deny,allow
  Allow from 127.0.0.1
</Proxy>

, Jenkins.

+1

, , . :

sudo service jenkins stop
sudo rm -rf /tmp/*
sudo service jenkins start
0

- DNS

http://my.server/

, / chnage /jenkins

webapps, http://jenkins.my.server/ www.myserver .

DNS

-2

All Articles