I am trying to use caddy as a webserver for Nextcloud. Hopefully this is common enough that others are familiar with the required configuration.
The problem I am facing is that whenever I try to login, it kicks me back to the starting page instead of logging in or saying that credentials are wrong. Using Apache server this problem does not occur
4. Error messages and/or full log output:
No clear error message.
5. What I already tried:
Uncommenting any of the other options in the linked Caddyfile
That was not the issue, but now I’ve got it working. I am not sure if this was the actual issue, but these are the only changes I’ve made which got it working again:
Create a new group to encapsulate all the different web-servers I have
In /etc/php-fpm.d I’ve created a few pools for caddy and other webservers, with respective user and group
Changed the group ownership of /var/lib/php/{session,wsdlcache,opache} and /var/log/php-fpm to the above created group so that all sockets have write privileges there
It might be only the last part that was giving me issues, but there were no apparent console errors to indicate that.