How to autamatic redirect "/" to "/cas/login" CAS 6.6.0
61 views
Skip to first unread message
JiangYing
unread,
Sep 22, 2022, 2:23:49 AM9/22/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CAS Community
I want cas server automatically rediect me from / to /cas/login, how can I configure cas server 6.6.0
e.g. localhost:9090 ---> localhost:9090/cas/login
Ray Bon
unread,
Sep 22, 2022, 12:33:36 PM9/22/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cas-...@apereo.org
That is a configuration in the application container; tomcat, jetty, apache, etc
Ray
On Wed, 2022-09-21 at 22:57 -0700, JiangYing wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
Noelette Stout
unread,
Sep 23, 2022, 9:08:43 AM9/23/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CAS Community
To add an example to what Ray said, I deploy CAS in an external tomcat container. To do the type of redirect you mentioned, I put a simple index.jsp in webapps/ROOT with this one line: <% response.sendRedirect("https://my.cas.host:8443/cas/login"); %>
Noelette
Andrew Marker
unread,
Sep 23, 2022, 11:09:04 AM9/23/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CAS Community, kriv...@gmail.com
I did not find it documented when I started using the embedded tomcat v6.3. What I ended up doing creating the Rule in our load balancer so it happened before it hit CAS. Maybe something like that could be done in your environment?
I did have an app deployed ROOT.war with a simple redirect when i was using a standalone tomcat.
We started using CAS like ~10 years or more ago. The best choice would be deploy CAS as ROOT.war instead of cas.war, seems like I'd need to work with ~200 services to change....