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'); }
===== Synology =====
==== non-interactive ssh environnement ====
* keywords : ~/.bashrc /etc/profile ~/.bash_profile ~/.bash_login ~/.profile
# this file is located /root/.ssh/environment
BASH_ENV=/root/.bashrc
# this file is located /root/.bashrc
JEFF="~/.bashrc"
PATH=$PATH:/opt/bin:/opt/sbin
#in /root/.ssh/environment : BASH_ENV=/root/.bashrc
# this file is located /etc/ssh/sshd_config
PermitUserEnvironment yes
==== opkg Apache2+php ====
# 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
#
ScriptAlias /php/ "/opt/bin/"
Require all denied
Require all granted
AddHandler application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi"
; 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 = ""
;