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/12 21:31]
jojo [Secure a directory with an authentication]
en:web:web-hosting:web-management:htaccess-file [2016/10/12 17:15]
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 106: Line 106:
   ​   ​
 The "​PATH"​ will have to be replaced by: The "​PATH"​ will have to be replaced by:
-  * For the WEB hosting: ''/​flex/​storage/​DOMAIN.TLD/​site/​www/''​+  * For the WEB hosting: ''/​flex/​domain/​DOMAIN.TLD/​site/​www/''​
   * For the CLOUD hosting: ''/​var/​www/​DOMAIN.TLD/​www''​   * For the CLOUD hosting: ''/​var/​www/​DOMAIN.TLD/​www''​
  
Line 115: Line 115:
 If you have saved your users table in the directory /​www/​secret/​password/​ with the name '​mylist.txt',​ you need to change accordingly the directive <​nowiki>​AuthUserFile</​nowiki>: ​ If you have saved your users table in the directory /​www/​secret/​password/​ with the name '​mylist.txt',​ you need to change accordingly the directive <​nowiki>​AuthUserFile</​nowiki>: ​
  
-  AuthUserFile ​ /flex/storage/​DOMAIN.TLD/​site/​www/​secret/​password/​mylist.txt+  AuthUserFile ​ /flex/domain/​DOMAIN.TLD/​site/​www/​secret/​password/​mylist.txt
  
 The command "​require valid-user"​ authorizes all valid users to access the files in the folder. ​ The command "​require valid-user"​ authorizes all valid users to access the files in the folder. ​