Skip to content

Instantly share code, notes, and snippets.

View UltraBob's full-sized avatar

Bob McDonald UltraBob

  • Kalamuna
  • Maple Ridge, BC, Canada
  • 21:43 (UTC -08:00)
  • LinkedIn in/ultrabob
View GitHub Profile
@siffring
siffring / .htaccess
Created March 4, 2012 17:33
htaccess to password protect a specific server
# ----------------------------------------------------------------------
# Password protect staging server
# Use one .htaccess file across multiple environments
# (e.g. local, dev, staging, production)
# but only password protect a specific environment.
# ----------------------------------------------------------------------
SetEnvIf Host staging.domain.com passreq
AuthType Basic
AuthName "Password Required"