0

I have installed Tomcat 6 and Jenkins. I can connect to it via http://localhost/jenkins, but i want to access it directly via http://localhost. How can I archive this? My complete setup includes a host computer with Apache2 installed and it routes several subdomains to virtual machines. So if it is easier to do it in Apache, I could do it too, but I would prefer the first solution.

I am completely new to the Java and Tomcat world, so this might be pretty easy, but I didn't got it.

Khaled
  • 36,533
  • 8
  • 72
  • 99
Abenil
  • 125
  • 7

1 Answers1

1

You need to use URL rewriting. These two posts from stackoverflow: link 1, link 2 suggest to use URLrewriteFilter.

Any easier option may be to run your webapp as ROOT webapp in tomcat. See this post on how to do so.

Khaled
  • 36,533
  • 8
  • 72
  • 99
  • Sorry, im to stupid to get it...it says something about context dir and web-inf dir in the install guide. I have never heard it. :( – Abenil Apr 02 '12 at 13:54
  • Isn't it possible to just tell tomcat to start jenkins if / is called? Or can i configure jenkins to start on / instead of /jenkins? The standalone Jenkins was working with no /jenkins added, after some configuration. – Abenil Apr 02 '12 at 14:04
  • 1
    @Abenil: Edited the answer. – Khaled Apr 02 '12 at 14:51