File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

req.getServerName() and req.getServerPort()

 
Renato Losio
Ranch Hand
Posts: 99
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.

I have a web app running on JBoss that relies on the req.getServerName() and req.getServerPort() to generate invitation emails for new users. I have:

req.getServerPort() = 80
req.getServerName() = my.server.com

and everything works fine. If I add an Apache server on port 80 the box that redirects the request to JBoss on 8080, I have:

req.getServerPort() = 8080
req.getServerName() = 127.0.0.1

and that's not nice. As that's not very useful indeed to the user :-(

Did I set anything wrong in Apache or is a flow in my app design?

Regards,

Renato



Everything
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic