Skip to content

Instantly share code, notes, and snippets.

@mitchkramez
Last active December 15, 2015 06:19

Revisions

  1. mitchkramez renamed this gist Oct 15, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. Mitch Kramer revised this gist Jul 2, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.apacheconf
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    # Put this in the vhost.conf... otherwise remove the directory wrappers when using as an htaccess... but use it in the vhost.conf, not the htaccess.
    # Allow traffic from IP without login
    SetEnvIf Remote_Addr ^11\.11\.11\.11$ MOVE_ALONG=true

  3. Mitch Kramer revised this gist Mar 21, 2013. 1 changed file with 8 additions and 8 deletions.
    16 changes: 8 additions & 8 deletions gistfile1.apacheconf
    Original file line number Diff line number Diff line change
    @@ -5,14 +5,14 @@ SetEnvIf Remote_Addr ^11\.11\.11\.11$ MOVE_ALONG=true
    SetEnvIfNoCase User-Agent iPhone MOVE_ALONG=true

    <Directory "/var/www/vhosts/vhost.com/httpdocs">
       Satisfy Any
       Order deny,allow
       Deny from all
       Allow from env=MOVE_ALONG
    Satisfy Any
    Order deny,allow
    Deny from all
    Allow from env=MOVE_ALONG
    </Directory>
    <Directory "/var/www/vhosts/vhost.com/httpsdocs">
       Satisfy Any
       Order deny,allow
       Deny from all
       Allow from env=MOVE_ALONG
    Satisfy Any
    Order deny,allow
    Deny from all
    Allow from env=MOVE_ALONG
    </Directory>
  4. Mitch Kramer revised this gist Mar 21, 2013. 1 changed file with 14 additions and 8 deletions.
    22 changes: 14 additions & 8 deletions gistfile1.apacheconf
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,18 @@
    # Allow traffic from IP without login
    SetEnvIf Remote_Addr ^11\.11\.11\.11$ MOVE_ALONG=true

    # Allow traffic from any iPhone user agent without login
    SetEnvIfNoCase User-Agent iPhone MOVE_ALONG=true

    <Directory "/var/www/vhosts/vhost.com/httpdocs">
    Satisfy Any
    Order deny,allow
    Deny from all
    Allow from 11.11.11.11
       Satisfy Any
       Order deny,allow
       Deny from all
       Allow from env=MOVE_ALONG
    </Directory>
    <Directory "/var/www/vhosts/vhost.com/httpsdocs">
    Satisfy Any
    Order deny,allow
    Deny from all
    Allow from 11.11.11.11
       Satisfy Any
       Order deny,allow
       Deny from all
       Allow from env=MOVE_ALONG
    </Directory>
  5. Mitch Kramer revised this gist Mar 21, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.apacheconf
    Original file line number Diff line number Diff line change
    @@ -5,8 +5,8 @@
    Allow from 11.11.11.11
    </Directory>
    <Directory "/var/www/vhosts/vhost.com/httpsdocs">
    Satisfy Any
    Order deny,allow
    Satisfy Any
    Order deny,allow
    Deny from all
    Allow from 11.11.11.11
    </Directory>
  6. Mitch Kramer revised this gist Mar 21, 2013. 1 changed file with 8 additions and 8 deletions.
    16 changes: 8 additions & 8 deletions gistfile1.apacheconf
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,12 @@
    <Directory "/var/www/vhosts/vhost.com/httpdocs">
    Satisfy Any
    Order deny,allow
    Deny from all
    Allow from 11.11.11.11
    Satisfy Any
    Order deny,allow
    Deny from all
    Allow from 11.11.11.11
    </Directory>
    <Directory "/var/www/vhosts/vhost.com/httpsdocs">
    Satisfy Any
    Order deny,allow
    Deny from all
    Allow from 11.11.11.11
    Satisfy Any
    Order deny,allow
    Deny from all
    Allow from 11.11.11.11
    </Directory>
  7. Mitch Kramer renamed this gist Mar 21, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  8. Mitch Kramer created this gist Mar 21, 2013.
    12 changes: 12 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    <Directory "/var/www/vhosts/vhost.com/httpdocs">
    Satisfy Any
    Order deny,allow
    Deny from all
    Allow from 11.11.11.11
    </Directory>
    <Directory "/var/www/vhosts/vhost.com/httpsdocs">
    Satisfy Any
    Order deny,allow
    Deny from all
    Allow from 11.11.11.11
    </Directory>