• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Problems with apache and tomcat behind a router

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I made a search for my problem but couldn't find anything so I decided to post.
I'm running Apache and Tomcat on a win2k machine which are placed behind a DI-604 router.
I've connected the apache and the tomcat using a JK. The problem is that I'm not sure what my host should be? I have a dyndns that points at my ip from my isp. when I access plain html (that is placed in tomcats directories) it works fine but as soon as I access a .jsp it doesn't work and I get the following errormessage:
"No Host matches server name puma.kicks-ass.org
Your browser sent a request that this server could not understand.
Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request."
I have set the internal ip to the server as the host in server.xml and it works if I access the jsp with the local ip (http://192.168.0.158/examples/jsp/dates/date.jsp). if I access with (http://puma.kicks-ass.org/examples/jsp/dates/date.jsp)
Summary:
I can access plain html on the tomcat with my dyndns but not .jsp.
I can access both plain html and .jsp using the internal ip.
I hope someone can help me here. I'm going crazy over here

adding the essential parts of server.xml
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
did you try :
<host name="puma.kicks-ass.org" ...
 
Jerry Olsson
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I used puma.kicks-ass.org first but then it didn't work. tried several other things that didn't work. Using the internal ip instead worked but not on everything. I realized today that I didn't replace puma.kicks-ass.org everywhere in server.xml and when I did that it worked fine
 
The government thinks you are too stupid to make your own lightbulb choices. But this tiny ad thinks you are smart:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic