JK Connector url rewrite question

2003-07-10 Thread Noel Rappin
I'm running an Apache/Tomcat combination using mod_jk.  Whenever I enter 
a URL to hit the apache server, somewhere along the redirect to tomcat 
the server portion of the url gets changed.

So, if I type

http://localhost/myapp

I actually get in the browser

http://my.hostname.com/myapp

This even happens if I type the IP address, rather than a hostname.  I'd 
really like it to not do this, and just use the hostname or IP address 
that I type in, but I can't seem to find any hook to change this 
behavior.  Can anybody help?

Noel Rappin



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


Re: JK Connector url rewrite question

2003-07-10 Thread Simon Pabst
Hmm, sure you don't use a proxy connection toconnect to tomcat instead of 
mod_jk? :-)

My other guess would be to check Apache's httpd.conf for
UseCanonicalName and ServerName
If ServerName is my.hostname.com and UseCanonicalName is on Apache uses 
always Servername instead of the URL you typed in Browser,
if you want to keep the Browser typed URL set
UseCanonicalName Off

At 11:03 10.07.2003 -0400, you wrote:
I'm running an Apache/Tomcat combination using mod_jk.  Whenever I enter a 
URL to hit the apache server, somewhere along the redirect to tomcat the 
server portion of the url gets changed.

So, if I type

http://localhost/myapp

I actually get in the browser

http://my.hostname.com/myapp

This even happens if I type the IP address, rather than a hostname.  I'd 
really like it to not do this, and just use the hostname or IP address 
that I type in, but I can't seem to find any hook to change this 
behavior.  Can anybody help?

Noel Rappin



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


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


Re: JK Connector url rewrite question

2003-07-10 Thread srevilak
 From: Noel Rappin [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: JK Connector url rewrite question

 I'm running an Apache/Tomcat combination using mod_jk.  Whenever I enter
 a URL to hit the apache server, somewhere along the redirect to tomcat
 the server portion of the url gets changed.

 So, if I type

 http://localhost/myapp

 I actually get in the browser

 http://my.hostname.com/myapp

 This even happens if I type the IP address, rather than a hostname.  I'd
 really like it to not do this, and just use the hostname or IP address
 that I type in, but I can't seem to find any hook to change this
 behavior.  Can anybody help?

In your apache configuration, do you have UseCanonicalName Off?  If
not, that may be your problem.

-- 
Steve

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