User Tools

Site Tools


technical_notes:public:apache-htaccess-cookbook

Parent

Apache - .Htaccess - Cookbook

Add auth window

AuthName "Page d'administration"
AuthType Basic
AuthUserFile "/home/[...]/.htpasswd"
Require valid-user

Request SSL connection

SSLRequireSSL

Password generation

# Create .htpasswd file
htpasswd -c .htpasswd fabien

# Add new user
htpasswd .htpasswd fabien
technical_notes/public/apache-htaccess-cookbook.txt · Last modified: 2014/07/23 11:47 by Fabien Arcellier