Hi there,
After a fresh install of nextcloud using setup-nextcloud.php, I tried to login with the admin passwd and it came back to the following URL : https://cloud.mydom.com/index.php/login?user=admin&direct=1
Installation :
Nextcloud : 28.0.2
Serveur : Rocky Linux 9.3
Web Server : Caddy v2.7.6
PHP : 8.3.2
DB : mariaDB 11.2.3
Here is the caddy log for my nextcloud :
{"level":"info","ts":1707848437.9581254,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"11.22.333.444","remote_port":"58501","client_ip":"11.22.333.444","proto":"HTTP/2.0","method":"GET","host":"cloud.mydom.com","uri":"/index.php/login?user=admin&direct=1","headers":{"Accept-Language":["fr-FR,fr;q=0.9"],"Sec-Fetch-Site":["same-origin"],"Sec-Ch-Ua":["\"Not A(Brand\";v=\"99\", \"Google Chrome\";v=\"121\", \"Chromium\";v=\"121\""],"Sec-Fetch-Mode":["navigate"],"Sec-Ch-Ua-Platform":["\"Windows\""],"Upgrade-Insecure-Requests":["1"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36"],"Sec-Fetch-User":["?1"],"Sec-Fetch-Dest":["document"],"Sec-Ch-Ua-Mobile":["?0"],"Accept-Encoding":["gzip, deflate, br"],"Cookie":[],"Cache-Control":["max-age=0"],"Dnt":["1"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"cloud.mydom.com"}},"bytes_read":0,"user_id":"","duration":0.131585497,"size":5880,"status":200,"resp_headers":{"X-Request-Id":["FLV7bP36beG7j3npbxSy"],"Content-Security-Policy":["default-src 'none';base-uri 'none';manifest-src 'self';script-src 'nonce-SVJHL2Q3NTFIUi94am1ERFJndHpYNjFTZE1qZWJmbjJwU25OeFRLaWRIRT06VzMzYlR0STZkbTZmdVRXQ0ozRVZEOEFlSEptUlZjREU4RTZtbjNQTkVqMD0=';script-src-elem 'strict-dynamic' 'nonce-SVJHL2Q3NTFIUi94am1ERFJndHpYNjFTZE1qZWJmbjJwU25OeFRLaWRIRT06VzMzYlR0STZkbTZmdVRXQ0ozRVZEOEFlSEptUlZjREU4RTZtbjNQTkVqMD0=';style-src 'self' 'unsafe-inline';img-src 'self' data: blob: https://*.tile.openstreetmap.org;font-src 'self' data:;connect-src 'self';media-src 'self';frame-src 'self';frame-ancestors 'self';form-action 'self'"],"X-Powered-By":["PHP/8.3.2"],"Referrer-Policy":["no-referrer"],"Feature-Policy":["autoplay 'self';camera 'none';fullscreen 'self';geolocation 'none';microphone 'none';payment 'none'"],"Content-Length":["5880"],"X-Content-Type-Options":["nosniff"],"Alt-Svc":["h3=\":443\"; ma=2592000"],"Content-Type":["text/html; charset=UTF-8"],"X-Permitted-Cross-Domain-Policies":["none"],"X-Robots-Tag":["noindex, nofollow"],"Content-Encoding":["gzip"],"Cache-Control":["no-cache, no-store, must-revalidate"],"X-Frame-Options":["SAMEORIGIN"],"Server":["Caddy"],"Set-Cookie":[],"X-Xss-Protection":["1; mode=block"]}}
Thanks for your help