Re: response.sendRedirect(response.encodeRedirectURL(path));

2001-09-05 Thread Johan Fredriksson

Thanks, that was it!

Johan
- Original Message -
From: James Fairbairn [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Tuesday, September 04, 2001 2:46 PM
Subject: Re: response.sendRedirect(response.encodeRedirectURL(path));


 Hi Johan

 Are you using Apache as a reverse proxy to provide external web access to
 internal hosts? This may help then:

 If you are using Apache with the ProxyPass directive for your external
 proxy, you also need to include a ProxyPassReverse directive for each
 virtual host in httpd.conf.

 i.e.

 VirtualHost 1.2.3.4
 ServerName vhost4.foo.bar
 ...etc...
 ProxyPass / http://10.0.0.4/
 ProxyPassReverse http://10.0.0.4/
 /VirtualHost

 VirtualHost 1.2.3.4
 ServerName vhost5.foo.bar
 ...etc...
 ProxyPass / http://10.0.0.5/
 ProxyPassReverse / http://10.0.0.5/
 /VirtualHost

 Do this for each virtual host you are exposing to the outside world via
your
 proxy.

 This way, Apache knows to translate any 302 redirect hostnames to the
 outside world vhost's name.

 Hope this helps.

 James






Re: response.sendRedirect(response.encodeRedirectURL(path));

2001-09-04 Thread Johan Fredriksson

The session id is appended correctly.

However a response sendredirect creates a relative url from where I am, that
is behind the proxy. This causes the browser to search the private network
for that server, which does not exist.

So, is it my Apache that is FUBAR or is it me ( or Orion )?

Johan

- Original Message -
From: yeo sze wee [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Tuesday, September 04, 2001 4:29 AM
Subject: Re: response.sendRedirect(response.encodeRedirectURL(path));


 hi

 the encodeRedirectURL method in response object
 doesn't seem to work. What I did is
 to encode the session id in the url in my code.

 i.e.

 response.sendRedirect(path+;jsessionid=+session.getId());

 regards
 sze wee




 From: Johan Fredriksson [EMAIL PROTECTED]
 Reply-To: Orion-Interest [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Subject: response.sendRedirect(response.encodeRedirectURL(path));
 Date: Mon, 3 Sep 2001 13:16:37 +0200
 
 
 
 I cannot get the
 
 response.sendRedirect(response.encodeRedirectURL(path));
 
 
 
 method call to include the frontend host name!!
 
 
 
 Architechture like this
 
 
 
 internetprivate netw
 
 layerlayer
 
 proxy---oriondb
 
 
 
 whenever surfing via the proxy and a response sendredirect is called I
end
 up in the private network ( ip 192.168.1.123) instead of the proxy
address.
 
 My web.xml looks like this:
 
 web-site host=[ALL] port=80 display-name=Aller WebSite
 virtual-hosts=aller.localhost
   !-- The default web-app for this site, bound to the root --
   frontend host=proxy.flowinteractive.se port=80/
   default-web-app application=default name=defaultWebApp /
 
   !-- Uncomment this to activate the news app --
   !-- web-app application=news name=news-web root=/news / --
 
   !-- Access Log, where requests are logged to --
   access-log path=../log/aller-web-access.log /
 !-- web-app application=admin name=admin-web root=/admin / --
   web-app application=aller name=aller-web root=/aller /
 /web-site
 
 
 
 I would greatly appreciate if anyone who has solved this can give me some
 insight other than using absolute urls.
 
 
 
 Thanks in advance
 
 
 
 
 
 Johan Fredriksson
 


 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp






Re: response.sendRedirect(response.encodeRedirectURL(path));

2001-09-04 Thread James Fairbairn

Hi Johan

Are you using Apache as a reverse proxy to provide external web access to
internal hosts? This may help then:

If you are using Apache with the ProxyPass directive for your external
proxy, you also need to include a ProxyPassReverse directive for each
virtual host in httpd.conf.

i.e.

VirtualHost 1.2.3.4
ServerName vhost4.foo.bar
...etc...
ProxyPass / http://10.0.0.4/
ProxyPassReverse http://10.0.0.4/
/VirtualHost

VirtualHost 1.2.3.4
ServerName vhost5.foo.bar
...etc...
ProxyPass / http://10.0.0.5/
ProxyPassReverse / http://10.0.0.5/
/VirtualHost

Do this for each virtual host you are exposing to the outside world via your
proxy.

This way, Apache knows to translate any 302 redirect hostnames to the
outside world vhost's name.

Hope this helps.

James





response.sendRedirect(response.encodeRedirectURL(path));

2001-09-03 Thread Johan Fredriksson





I cannot get the 


response.sendRedirect(response.encodeRedirectURL(path));

method call to include the frontend host name!! 


Architechture like this

internet  private 
netw
layer  
 layer
proxy---oriondb

whenever surfing via the proxy and a response 
sendredirect is called I end up in the private network ( ip 192.168.1.123) 
instead of the proxy address.
My web.xml looks like this:
web-site host="[ALL]" port="80" 
display-name="Aller WebSite" 
virtual-hosts="aller.localhost"!-- The default web-app for 
this site, bound to the root --frontend 
host="proxy.flowinteractive.se" port="80"/default-web-app 
application="default" name="defaultWebApp" /
!-- Uncomment this to activate the news app 
--!-- web-app application="news" name="news-web" 
root="/news" / --
!-- Access Log, where requests are logged 
to --access-log path="../log/aller-web-access.log" 
/!--web-app application="admin" name="admin-web" 
root="/admin" / --web-app application="aller" 
name="aller-web" root="/aller" / /web-site

I would greatly appreciate if anyone who has solved 
this can give me some insight other than using absolute urls.

Thanks in advance


Johan 
Fredriksson


RE: response.sendRedirect(response.encodeRedirectURL(path));

2001-09-03 Thread Andre Vanha

I ran into the same problem.  I think it's a bug in orion, where it ignores
the front-end host parameter.  My solution was to drop the proxy.
 
Andre

-Original Message-
From: Johan Fredriksson [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 03, 2001 5:17 AM
To: Orion-Interest
Subject: response.sendRedirect(response.encodeRedirectURL(path));


 
 
I cannot get the 
 
response.sendRedirect(response.encodeRedirectURL(path));

 

method call to include the frontend host name!! 

 

Architechture like this

 

internetprivate netw

layerlayer

proxy---oriondb

 

whenever surfing via the proxy and a response sendredirect is called I end
up in the private network ( ip 192.168.1.123) instead of the proxy address.

My web.xml looks like this:

web-site host=[ALL] port=80 display-name=Aller WebSite
virtual-hosts=aller.localhost
 !-- The default web-app for this site, bound to the root --
 frontend host=proxy.flowinteractive.se port=80/
 default-web-app application=default name=defaultWebApp /

 !-- Uncomment this to activate the news app --
 !-- web-app application=news name=news-web root=/news / --

 !-- Access Log, where requests are logged to --
 access-log path=../log/aller-web-access.log /
!-- web-app application=admin name=admin-web root=/admin / --
 web-app application=aller name=aller-web root=/aller / 
/web-site

 

I would greatly appreciate if anyone who has solved this can give me some
insight other than using absolute urls.

 

Thanks in advance

 

 

Johan Fredriksson





Re: response.sendRedirect(response.encodeRedirectURL(path));

2001-09-03 Thread yeo sze wee

hi

the encodeRedirectURL method in response object
doesn't seem to work. What I did is
to encode the session id in the url in my code.

i.e.

response.sendRedirect(path+;jsessionid=+session.getId());

regards
sze wee




From: Johan Fredriksson [EMAIL PROTECTED]
Reply-To: Orion-Interest [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Subject: response.sendRedirect(response.encodeRedirectURL(path));
Date: Mon, 3 Sep 2001 13:16:37 +0200



I cannot get the

response.sendRedirect(response.encodeRedirectURL(path));



method call to include the frontend host name!!



Architechture like this



internetprivate netw

layerlayer

proxy---oriondb



whenever surfing via the proxy and a response sendredirect is called I end 
up in the private network ( ip 192.168.1.123) instead of the proxy address.

My web.xml looks like this:

web-site host=[ALL] port=80 display-name=Aller WebSite 
virtual-hosts=aller.localhost
  !-- The default web-app for this site, bound to the root --
  frontend host=proxy.flowinteractive.se port=80/
  default-web-app application=default name=defaultWebApp /

  !-- Uncomment this to activate the news app --
  !-- web-app application=news name=news-web root=/news / --

  !-- Access Log, where requests are logged to --
  access-log path=../log/aller-web-access.log /
!-- web-app application=admin name=admin-web root=/admin / --
  web-app application=aller name=aller-web root=/aller /
/web-site



I would greatly appreciate if anyone who has solved this can give me some 
insight other than using absolute urls.



Thanks in advance





Johan Fredriksson



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp