Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:web:web-hosting:web-management:htaccess-file [2016/04/03 15:47]
jojo [Secure a directory with an authentication]
en:web:web-hosting:web-management:htaccess-file [2016/10/12 17:15] (current)
dedibox [Disable the listing of a directory]
Line 44: Line 44:
   Options -Indexes   Options -Indexes
  
-<note warning>​**ATTENTION : <​nowiki>​IndexOptions</​nowiki>​ -Indexes ​ is obsolete and does not work anymore on the shared ​hosting platform, you have to configure it using the directive Options -Indexes**</​note> ​+<note warning>​**ATTENTION : <​nowiki>​IndexOptions</​nowiki>​ -Indexes ​ is obsolete and does not work anymore on the web hosting platform, you have to configure it using the directive Options -Indexes**</​note> ​
  
   * **Step 2: Upload the file**   * **Step 2: Upload the file**
Line 100: Line 100:
 To limit the access to the users specified in the file "​passlist.txt",​ you need to create a htaccess file in the directory you want to protect. The content of the file should be as following: To limit the access to the users specified in the file "​passlist.txt",​ you need to create a htaccess file in the directory you want to protect. The content of the file should be as following:
  
-  ​<​nowiki>​AuthUserFile</​nowiki> ​/​PATH/​passlist.txt+  AuthUserFile /​PATH/​passlist.txt
   AuthName "Acces Restricted"​   AuthName "Acces Restricted"​
   AuthType Basic   AuthType Basic