• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

req.getServerName() and req.getServerPort()

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

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() =

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?



Ben Souther
Posts: 13411
Firefox Browser Redhat VI Editor
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic