Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
faq:web04 [2011/04/30 19:19] – created georgfaq:web04 [2015/11/13 16:45] – Coming from $HOME/html a 'pwd -P' might making clear, where to create the files. alex
Line 9: Line 9:
      1. Create a file called '.htaccess' in the directory you       1. Create a file called '.htaccess' in the directory you 
         want to protect (NOTE, its not a directory in your         want to protect (NOTE, its not a directory in your
-        HOME directory, but on the /www file system)+        HOME directory, but on the /www file system). Double check with 'pwd -P'
  
         AuthUserFILE /www/path/to/directory/.htpasswd         AuthUserFILE /www/path/to/directory/.htpasswd
Line 23: Line 23:
      2. run the 'htpasswd' command, for the first time:      2. run the 'htpasswd' command, for the first time:
  
-        htpasswd -c .htpasswd myuser1+        /usr/pkg/sbin/htpasswd -c .htpasswd myuser1
  
         You will be prompted to enter a password for the          You will be prompted to enter a password for the