Enables Uberspace users to administrate some functions via a very simple web panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.htaccess.sample 528B

1234567891011121314151617181920212223242526272829
  1. RewriteEngine On
  2. RewriteBase /
  3. # SSL Enforement
  4. RewriteCond %{SERVER_PORT} !^443$
  5. RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST}
  6. # Basic Auth protection
  7. AuthType Basic
  8. AuthName "secured area"
  9. AuthUserFile /path/to/.htpasswd
  10. require valid-user
  11. # Protect every file excluding CSS, JS, PHP and HTML
  12. <Files *>
  13. Order Deny,Allow
  14. Deny from all
  15. </Files>
  16. <FilesMatch ^$>
  17. Order Allow,Deny
  18. Allow from all
  19. </FilesMatch>
  20. <FilesMatch "\.(css|js|php|html|htm|var|png)$">
  21. Order Allow,Deny
  22. Allow from all
  23. </FilesMatch>