This is an old revision of the document!


Apache

dev umgebugsvariable

  • CentOS: /etc/systemctrl/httpd: OPTIONS='-D dev'
  • htaccess
<IfDefine dev>
        SetEnv DEV 1
</IfDefine>
<IfDefine !dev>
        whatever not for dev
</IfDefine>
  • php
            if(isset($_SERVER['DEV'])){
                $dofordev
            }

proxy header blocken

htaccess conditions

<If "req('Host') == 'url.de'">
        AuthName "protected"
        AuthType Basic
        AuthUserFile /path/to/.htpasswd
        require valid-user
</If>
Edit this page