You are here: Foswiki>LabstaffWeb Web>LabstaffHowto>CreateHTACCESS (29 Dec 2009, armstj2@LAB.CS.RPI.EDU)Edit Attach

html .htaccess file

Protecting your web page with .htaccess

  • create the password file by running
    • htpasswd -c .htpasswd <filename>
  • Set permissions to prevent viewing the file contents with a web browser
  • Store the password file in a directory external to your web directory.
  • create .htaccess file and fill it with something like
    • AuthType Basic
    • AuthUserFile <filename from above>
    • AuthName "<Title you want displayed>"
    • require valid-user
    • satisfy any
    • deny from all

-- StevenLindsey - 14 Oct 2009
Topic revision: r2 - 29 Dec 2009, armstj2@LAB.CS.RPI.EDU
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback