Hey all,

I have installed Jasig Cas on an Amazon EC2 instance.
I have an issue related to AMAZON EC2 environment with the redirection Cas
makes.
By the bay I am using Apache ' mod_cas_auth' as my 'Cas client'  and  as a
gateway (redirector) to my tomcat web applications.

For example:
I am addressing to one of my tomcat web applications that is configured to
be protected by cas, I am accessing the *PUBLIC EC2 DNS ADDRESS*:

   - http://ec2-22-22-222-22.compute-1.amazonaws.com/app1
   - I am being redirected to Cas web page to authenticate: https://
   ec2-22-22-222-22.compute-1.amazonaws.com/cas/login
   - Authentication works great (I can tell by the logs) against a Mysql
   server.
   - I am being redirected to my initial request 'app1', but this time it
   redirects me to the *INTERNAL DNS ADDRESS* of that instance on EC2:


http://domu-11-11-11-11-11-11.compute-1.internal/app1?ticket=ST-12-Oz4Oz4Oz4
Oz4Oz4Oz4Qz-ec2-22-22-222-22.compute-1.amazonaws.com

   - My (clients) web browser obviously does not know how to resolve this
   dns address because it is AMAZON's internal address.
   - When I am adding to my local '/etc/hosts' file the following line that
   resolved this internal dns address and redirect it to the public address,
   all works great

           22.22.222.22     domu-11-11-11-11-11-11.compute-1.internal


Does someone has any ideas of how to resolve/overcome this issue???
I have addressed amazon web support with now luck so far.

Thanks!!

-- 
*
Ronen Itkin*
Taykey | www.taykey.com

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to