Apache & php-fpm & rutorrent & auth digest

peshua19

Member
May 25, 2018
897
0
16
Hi,

I've this box setup with Apache and PHP-FPM for a specific need.
I also wanted to have rutorrent running on it, password protected, so I modified my /etc/apache2/sites-available/default like this:
<Location /rut>
AuthType Digest
AuthName "rt"
AuthDigestDomain /var/www/rut/ http://<hostname>/rut/

AuthDigestProvider file
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
SetEnv R_ENV "/var/www/rut"
</Location>

and then I get this:
yvl08Tg.png

If I comment the LOCATION code and restart apache, everything works (but no authentication required):
7vqx4ij.png


From searching, it seems that for apache and php-fpm to use authentication, php files must be modified.

Can anyone help?
 

lisas4567

Member
May 25, 2018
773
0
16
Try to read manual about mod_auth_digest. For example:

"The AuthDigestDomain directive allows you to specify one or more URIs which are in the same protection space (i.e. use the same realm and username/password info). The specified URIs are prefixes; the client will assume that all URIs "below" these are also protected by the same username/password. The URIs may be either absolute URIs (i.e. including a scheme, host, port, etc.) or relative URIs."

Is "/var/www/rut/" in your case an URI? Or, may be, this is not an URI? May be, this is a simply path on your fs?

"SetEnv R_ENV "/var/www/rut"" - what this? For which purpose? Etc.