doc:syno_tools

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
doc:syno_tools [2022/06/19 14:28] – modification externe 127.0.0.1doc:syno_tools [2023/11/01 10:44] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 +<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 ===== ===== Synology =====
  
Ligne 4: Ligne 8:
  
   * keywords : ~/.bashrc  /etc/profile    ~/.bash_profile   ~/.bash_login   ~/.profile   * keywords : ~/.bashrc  /etc/profile    ~/.bash_profile   ~/.bash_login   ~/.profile
 +
  
  
Ligne 25: Ligne 30:
 </sxh> </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.1655641724.txt
  • Dernière modification : 2022/06/19 14:28
  • de 127.0.0.1