This shows you the differences between two versions of the page.
password [2014/01/29 18:04] |
password [2014/01/29 18:04] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Password ====== | ||
+ | Protects your admin area. | ||
+ | |||
+ | Basically your scj/admin folder is protected with so-called Apache authorization. But you can switch on " | ||
+ | |||
+ | Check menu Settings - Password. | ||
+ | |||
+ | ====== php-fpm, castcgi & multiaccess problem ====== | ||
+ | |||
+ | At present time there' | ||
+ | |||
+ | By default apaches passes PHP_AUTH_USER variable while those modules ignore it | ||
+ | |||
+ | **Solution** | ||
+ | |||
+ | 1. add to .htaccess | ||
+ | |||
+ | RewriteRule .* - [env=HTTP_AUTHORIZATION: | ||
+ | | ||
+ | |||
+ | 2. add to includes/ | ||
+ | |||
+ | < | ||
+ | if (isset($_SERVER[' | ||
+ | list($name, $password) = explode(':', | ||
+ | $_SERVER[' | ||
+ | $_SERVER[' | ||
+ | } | ||
+ | |||
+ | </ |