Afficher la pageAnciennes révisionsLiens de retourHaut de page Cette page est en lecture seule. Vous pouvez afficher le texte source, mais ne pourrez pas le modifier. Contactez votre administrateur si vous pensez qu'il s'agit d'une erreur. <php> if ($_SERVER['PHP_AUTH_USER'] != 'jeff' && $_SERVER['PHP_AUTH_USER'] != 'marina' && $_SERVER['PHP_AUTH_USER'] != 'jflemay@hotmail.com' && $_SERVER['PHP_AUTH_USER'] != 'marina.lemay@hotmail.com' ) { die('no rights to read this page'); } </php> ===== Synology ===== ==== non-interactive ssh environnement ==== * keywords : ~/.bashrc /etc/profile ~/.bash_profile ~/.bash_login ~/.profile <sxh title: /root/.ssh/environment> # this file is located /root/.ssh/environment BASH_ENV=/root/.bashrc </sxh> <sxh title: /root/.bashrc> # this file is located /root/.bashrc JEFF="~/.bashrc" PATH=$PATH:/opt/bin:/opt/sbin #in /root/.ssh/environment : BASH_ENV=/root/.bashrc </sxh> <sxh title: /etc/ssh/sshd_config> # this file is located /etc/ssh/sshd_config PermitUserEnvironment yes </sxh> ==== opkg Apache2+php ==== <sxh title: /opt/etc/apache2/apache2.conf> # this file is located /opt/etc/apache2/apache2.conf # # jeff php-cgi ### trick to send php to /opt/bin/php-cgi # from https://openwrt.org/docs/guide-user/services/webserver/http.apache # <IfModule cgi_module> ScriptAlias /php/ "/opt/bin/" <Directory "/opt/bin/"> Require all denied <Files php-cgi> Require all granted </Files> </Directory> AddHandler application/x-httpd-php .php Action application/x-httpd-php "/php/php-cgi" </IfModule> </sxh> <sxh title: /opt/etc/php.ini> ; this file is located /opt/etc/php.ini ; ; jeff php-cgi ---- comment or reset doc_root = "/opt/share/www" ; #doc_root = "/opt/share/www" doc_root = "" ; </sxh> doc/syno_tools.txt Dernière modification : 2023/11/01 10:44de 127.0.0.1