After a deeper look on this issue, I've found the main cause. In my case it has been caused by transmission's authentication setting two environment variables in PHP after login:
- PHP_AUTH_USER (containing user name)
- PHP_AUTH_PW (containing user password for transmission)
and enable alternative authentication via ngx_http_auth_basic_module.
Following code prints all web servers' environment variables:
<?php print '<pre>' . htmlspecialchars(print_r(get_defined_vars(), true)) . '</pre>'; print '<pre>' . htmlspecialchars(print_r($_SERVER, true)) . '</pre>'; ?>
No comments:
Post a Comment