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]