you said it's apache problem but you never mentioned apache's role in
problem. So, i will assume you are using mod_jk to have apache tomcat combo.

First thing to check is httpd.conf . Is your webapp and mod_jk handler are
listed under your *external* host name.
Second thing to check is server.xml. Is your webapp context is configured
under your *external* hostname?

I can think that one of this is broken and hence the problem is coming. Or
if we can get config files, i may help better.

HTH
Navjot Singh


>-----Original Message-----
>From: Dave Tilley [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, October 22, 2003 9:42 AM
>To: [EMAIL PROTECTED]
>Subject: Forward/redirect and virtual hosts
>
>
>
>Howdy,
>
>       I'm not sure if this is really a Struts config question or
>an Apache
>config question, so i'm gonna ask in both places and hope that someone
>knows enough about both to help point me in the right direction!
>
>
>I've got a Struts webapp under Tomcat that runs fine until it was moved
>to a linux machine with multiple virtual hosts associated with it. The
>machine has two names, like www.external.mycompany.com and
>dev7.internal.mycompany.co.uk  It runs fine on this new linux machine
>*until* execution hits an action like:
>
>
><action path="/createStuff"
>               .
>               .
>               .
>   <forward name="success" path="/displayOtherStuff.do" redirect="true"/>
>
></action>
>
>
>This action is executed correctly when a user is directed to a URL like
>www.external.mycompany.com/myapp/createStuff.do , but then the
>forward/redirect=true ends up sending the browser to the "internal" name
>of the linux machine instead of the "external" name and thus the webapp
>breaks (since there is no session associated with the "internal" machine
>name, only the "external" name)...ie the browser is sent to
>dev7.internal.mycompany.co.uk/myapp/displayOtherStuff.do
>
>
>So, what i'm wondering is:
>
>- Is there a 'safer' way to forward/redirect in a given action other
>than using the <forward .... redirect="true"/> ???
>
>or
>
>- Is there a bug/limitation in using  <forward .... redirect="true"/> on
>a machine with multiple virtual hosts?
>
>or
>
>- Do you think my Apache or Tomcat config is just not set up right for
>dealing with several virtual hosts?  Does Tomcat have to be told in
>detail about these virtual hosts, or just Apache?
>
>
>many thanks,
>
>
>       -dave
>
>
>
>
>---------------------------------------------------------------------
>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]

Reply via email to