I’ve been able to get Caddy with http.login and http.jwt working with htpasswd. I’m presented with a login page and after I authenticate I can see the resources.

I’m using fastcgi with php-fpm to serve php files. The app I’m running relies on $_SERVER[‘REMOTE_USER’] to get the logged in user, but this variable is not set after I login and try to print it from php.

Is there anything I can do to make sure this variable is populated with the name I authenticated with?

This feature isn’t implemented in http.login at the moment. I submitted a PR.

Ref: PHP $_SERVER['REMOTE_USER'] not set · Issue #94 · tarent/loginsrv · GitHub

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.