Hello,
we are encountering the problem that cookies for remembering the login are not saved / created when accessing our xwiki server with an DNS alias.
- the server FQDN is like “server-xwiki-02.subdomain.domain.de”
- the choosen hostname when installing the Debian 12 server was like “server-xwiki-02”
- the DNS alias is like “xwiki.subdomain.domain.de”
We use the XWiki 15.9+1 XJetty .DEB package with an nginx server - currently in an very simple port 80 only configuration. The nginx script is taken from here: Tomcat Installation (XWiki.org)
When accessing the servers FQDN and logging in with selecting the “remember me” option, 5 cookies are created (validation, rememberme, password, username and JSESSIONID). After restarting the browser I am logged in as expected.
But when accessing the server by its DNS alias however and logging in with selecting the “remember me” option only two cookies get created (username and JESSIONID).
That has the consequence, that simply restarting the browser loggs you out.
I can reproduce the problem with Edge, Firefox. The browsers are of course not configured to delete cookies after closing.
Obviosly I need to configure something somewhere but I don’t have a clue. I tried changing the servername in the nginx configuration but that didn’t change a thing.
Can you hint me at where I have to look/search?
Does the neccessary changes to correctly save the cookies be done to the configurations of nginx, xjetty, xwiki or the Debian system itself? The xwiki and xjetty configurations don’t seem to have an configuration value of a servername - at least I didn’t found one, so they are not the ones I suspect.
Thank you in advance