Hubzilla core code
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.
 
 
 
 
 
 

35 lines
1019 B

  1. Options -Indexes
  2. AddType application/x-java-archive .jar
  3. AddType audio/ogg .oga
  4. #SSLCipherSuite HIGH:AES256-SHA:AES128-SHA:RC4:!aNULL:!eNULL:!EDH
  5. # don't allow any web access to logfiles, even after rotation/compression
  6. <FilesMatch "\.(out|log|gz)$">
  7. <IfModule mod_authz_core.c>
  8. Require all denied
  9. </IfModule>
  10. <IfModule !mod_authz_core.c>
  11. Order deny,allow
  12. Deny from all
  13. </IfModule>
  14. </FilesMatch>
  15. <IfModule mod_rewrite.c>
  16. RewriteEngine on
  17. # Protect repository directory from browsing
  18. RewriteRule "(^|/)\.git" - [F]
  19. RewriteRule "(^|/)store" - [F]
  20. # Rewrite current-style URLs of the form 'index.php?q=x'.
  21. # Also place auth information into REMOTE_USER for sites running
  22. # in CGI mode.
  23. RewriteCond %{REQUEST_URI} ^/\.well\-known/.*
  24. RewriteRule ^(.*)$ index.php?q=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
  25. RewriteCond %{REQUEST_FILENAME} !-f
  26. RewriteCond %{REQUEST_FILENAME} !-d
  27. RewriteRule ^(.*)$ index.php?q=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
  28. </IfModule>