I have setup two instances where (1) is running httpd to reverse proxy. (2) is running jenkins.war.
[1st instance - ssl.conf]
#ProxyPass /jenkins http://secondinstance:8081/ nocanon
#ProxyPassReverse /jenkins http://secondinstance:8081/
[2nd instance - jenkins.war]
sudo java -jar /usr/lib/jenkins/jenkins.war --httpsPort=8081 is invoked to listen on 8081.
I can use the first instance's https address to access the jenkins instance.
However, whenever I terminate the SSH session on my 2nd instance, the jenkins shuts down prematurely.
How do I make jenkins be on persistently? Without having to have the 2nd instance ssh session on.
I couldn't find any information on the search engines relevant to this.
Thank you.