Cas prefix don't work with empty value (/cas instead of ROOT context)

25 views
Skip to first unread message

Julien Weillaert

unread,
Aug 11, 2023, 1:18:58 PM8/11/23
to CAS Community
Hi !

I use Apereo cas solution 6.6.10 successfully with the tomcat embedded.
It works great, but I never find a way to change the prefix in the url, for example : 


instead of : 


I put this parameters in my cas.properties : 

But it continue to work only with : 
The other url give me a 404 not found.
And If I call https://server-ncas.i-wel.fr -> it redirects me to /cas/login

The problem have been already posted here a few month ago, but no solutions have been found.

I could use an external tomcat with some rewriting rule, but I don't want to, the embedded tomcat is much more simpler, and the settings should work.

I also tried :
cas.server.prefix=/
cas.server.prefix=/test
But same thing, does not change anything, always cas.


Ray Bon

unread,
Aug 14, 2023, 12:37:48 PM8/14/23
to cas-...@apereo.org
Julien,

This sounds like a tomcat config issue (I have not used embedded tomcat). Maybe a config on this page https://apereo.github.io/cas/6.6.x/installation/Configuring-Servlet-Container-Embedded-Tomcat.html

Ray

On Fri, 2023-08-11 at 08:53 -0700, Julien Weillaert wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.

Julien Weillaert

unread,
Aug 14, 2023, 1:17:07 PM8/14/23
to cas-...@apereo.org
Thanks for you answer, I found the solution myself.
No, the documentation is wrong and not updated.

The right thing to use is : servlet.servlet.context-path=/


--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/afdfcd5c357dac7fee72b91220220152a9a69d07.camel%40uvic.ca.
Reply all
Reply to author
Forward
0 new messages