>I think you left somewhere in your conf-files a "localhost". I had the 
>same error working on Apache and Tomcat and after some searching I found 
>out that I forgot to modify httpd.conf in a way that my server no 
>longer  was the localhost but had a real name.

Right.  In all of the information I gave, I failed to include that Apache 
is connected to Tomcat for this.  Tomcat isn't running as a 
standalone.  Thanks for your response, Nick, I think you're probably right 
(or at least, you're close), but I can't check at this moment to make 
sure.  I'll contact the server admin and see what he thinks.  Since 
localhost does not appear in any of the descriptor files on the Tomcat side 
of things (I've grepped and grepped and grepped, as I mentioned), my only 
guess is that, in this instance, the issue is rooted in Apache.

Can anybody vouch for what Nick has suggested?

The issue now is that it's a virtual host, so explicitly specifying *my* 
particular domain as the machine name in httpd.conf isn't going to 
happen.  :-)  If what you said above is correct, though, my next question 
would be... are there any additional options that I have on the Tomcat side 
of things to make this redirect stay within the same domain name?  (Again, 
outside of building that type of redirect into each of the JSPs and 
servlets themselves.)

Right about now, it sure would be nice for Tomcat to have some more control 
over this, e.g. in the configuration for each Host.  :)  Similar to 
"redirectPort" in Connector, Tomcat would use the value of an optional, 
user-specified attribute as the domain to send all of its SSL redirects for 
that host:

<Host name="foo.mysite.com" redirectHost="foo.mysite.com"
       appBase="/myapp/web" debug="0" unpackWARs="false">
[...]
</Host>

Heh, now, I don't want this discussion to be about the merits of such an 
option, I'm just hoping there's something *like it* out there in some other 
place that I'm missing, could replicate, etc.  This 
domain-being-rewritten-as-localhost business is a bit maddening.

Thanks for any help you all can offer,

-Steve



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to