• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Redirecting changing server name

 
Steve Leach
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I have just loaded my application onto a new server, and almost everything is working properly, except...

when called with a relative path name is changing the name of the server, which means the session cookie gets lost. The server name it is changed to is an alias defined in the <host> section of the server and is also what request.getServerName() returns.
Has anyone seen anything like this before ?
Cheers
Steve
 
Steve Leach
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once again I've sorted things out myself before anyone bothered responding. I'm starting to wonder whether there is actually any point in using this forum.

The problem was that the new server was running under Apache with mod_jk, and the Apache config was specifying the wrong name.
 
Vasilis Karas
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't get dicouraged. Keep posting. Appreciate your sharing the solution.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You asked if anybody had seen that before - given that the solution was really pretty obscure, and that your first and second posts were separated by less than a day, you really should not be surprised.
anyone bothered responding
indeed!
Did you really think that there were people reading that post who knew the answer but didn't respond out of spite?
Bill
 
Sonny Gill
Ranch Hand
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ditto!!
And keeping in mind that quite a few of us are not real programmers, so dont know the intricacies of running Apache on Linux..
 
Steve Leach
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for the spot of petulance. However, by throwing my toys out of the pram at least I discovered that I'm not being ignored
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic