I was getting a lot of trouble with this also. The cas.server.prefix is totally useless and does not modify the url like you want. The parameter to use is :
server.servlet.context-path=/ And then, it works perfectly ! Le mercredi 16 février 2022 à 14:27:42 UTC+1, [email protected] a écrit : > Hello, > I have no experience with embedded tomcat, sorry. I always used a > standalone container. > One thing in your config stands out, though. > > You use: > > > > *cas.server.prefix=${cas.server.name <http://cas.server.name>} *But > linked discussion mentions: > > > > *cas.server.prefix=${cas.server.name <http://cas.server.name>}/ *with the > / at the end of server prefix. > > Fiisch > > > Dne středa 16. února 2022 v 13:02:50 UTC+1 uživatel Agustín Ezequiel > Pereyra napsal: > >> Hello Fiisch, thank you very much for your answer. I am deploying CAS >> with the embedded Tomcat, not another container. Should it work in this >> case? Do you have any clue what else I could be missing? >> >> Regards, >> >> El mié, 16 feb 2022 a las 4:19, Petr Fišer (<[email protected]>) >> escribió: >> >>> Hello, >>> This looks like you are deploying CAS to your own app container. >>> It will not work, because "server.xxxxxxx" properties are made for >>> configuring a tomcat container embedded in the war. >>> >>> Cheers, >>> Fiisch >>> >>> On 02/15/2022 05:08 PM, Agustín Ezequiel Pereyra wrote: >>> >>> Hello, >>> >>> I want to deploy cas so it takes requests at http://myUrl.com/ instead >>> of the default http://myUrl.com/cas. >>> >>> According to the documentation, and this thread: >>> https://groups.google.com/a/apereo.org/g/cas-user/c/ntVu5_b7TT8/m/wh3IL3qQCQAJ, >>> >>> setting the properties: >>> >>> >>> * cas.server.prefix=${cas.server.name >>> <http://cas.server.name>}/ server.contextPath=/* >>> >>> Should be enough (if I got it wright). Yet I can't make it work. I'm >>> testing with the basic cas-overlay, version 6.4.2. The only thing I >>> customized is the cas.properties file, with the following lines: >>> >>> * cas.server.name >>> <http://cas.server.name>=http://myUrl.com:8080 <http://myUrl.com:8080>* >>> * cas.server.prefix=${cas.server.name >>> <http://cas.server.name>}* >>> >>> >>> >>> * server.contextPath=/ server.port=8080 >>> server.ssl.enabled=false * >>> When I navigate to http://myUrl.com:8080/login I get a 404 error. But >>> when I go to http://myUrl.com:8080/cas/login, I do get the login page. >>> Do you know what I may be doing wrong? >>> -- >>> - 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 [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/a18e9b2f-da86-49d2-8247-b5731b6445cbn%40apereo.org >>> >>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/a18e9b2f-da86-49d2-8247-b5731b6445cbn%40apereo.org?utm_medium=email&utm_source=footer> >>> . >>> >>> >>> -- >>> - 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 [email protected]. >>> >> To view this discussion on the web visit >>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/5c2b880b-6eaf-5302-7266-a8d399dc9590%40gmail.com >>> >>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/5c2b880b-6eaf-5302-7266-a8d399dc9590%40gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- - 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 [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/a3a935da-9c26-4495-9681-e5101a299ad5n%40apereo.org.
