Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
best_practice [2016/07/19 13:10] – [proxy header blocken] gevatterbest_practice [2016/11/11 03:04] (current) gevatter
Line 1: Line 1:
 +===== Linux Server =====
 +  * MySQL Backups: mylvmbackup
 +  * etckeeper
 +  * molly-guard
 +
 +
 ===== Apache ===== ===== Apache =====
 +==== dev umgebugsvariable ====
 +
 +  * CentOS: ''/etc/systemctrl/httpd'': ''OPTIONS='-D dev'''
 +  * htaccess
 +<code>
 +<IfDefine dev>
 +        SetEnv DEV 1
 +</IfDefine>
 +<IfDefine !dev>
 +        whatever not for dev
 +</IfDefine>
 +</code>
 +
 +  * php
 +<code>
 +            if(isset($_SERVER['DEV'])){
 +                $dofordev
 +            }
 +</code>
  
 ==== proxy header blocken ==== ==== proxy header blocken ====
Line 5: Line 30:
   * ''RequestHeader unset Proxy early''   * ''RequestHeader unset Proxy early''
   * https://httpoxy.org/   * https://httpoxy.org/
 +
 +==== htaccess conditions ====
 +<code>
 +<If "req('Host') == 'url.de'">
 +        AuthName "protected"
 +        AuthType Basic
 +        AuthUserFile /path/to/.htpasswd
 +        require valid-user
 +</If>
 +</code>
 +
 +