summaryrefslogtreecommitdiff
path: root/ledgersmb-httpd.conf
blob: 7a7f5d027bd51dc74fccaa1f191037cbe5fb712f (plain)
  1. # This file must be edited to substitute the current path with WORKING_DIR
  2. Alias /ledgersmb WORKING_DIR/
  3. <Directory WORKING_DIR>
  4. # Rewrite rule to allow HTTP Authorization information to the scripts only
  5. # from this directory.
  6. RewriteEngine On
  7. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
  8. AllowOverride All
  9. AddHandler cgi-script .pl
  10. Options ExecCGI Includes FollowSymlinks
  11. # By default, only allow from localhost. If you change this, please be
  12. # advised that you should use SSL protection on any and all network
  13. # connections that access this application in order to protect usernames and
  14. # passwords.
  15. Order Deny,Allow
  16. Allow from 127.0.0.1
  17. Deny from All
  18. # The rest of this file just tightens up security.
  19. <Files ~ "\.conf$">
  20. Order Deny,Allow
  21. Deny from All
  22. </Files>
  23. </Directory>
  24. <Directory WORKING_DIR/users>
  25. Order Deny,Allow
  26. Deny from All
  27. </Directory>
  28. <Directory WORKING_DIR/bin>
  29. Order Deny,Allow
  30. Deny from All
  31. </Directory>
  32. <Directory WORKING_DIR/utils>
  33. Order Deny,Allow
  34. Deny from All
  35. </Directory>
  36. <Directory WORKING_DIR/spool>
  37. Order Deny,Allow
  38. Deny from All
  39. </Directory>
  40. <Directory WORKING_DIR/templates>
  41. Order Deny,Allow
  42. Deny from All
  43. </Directory>
  44. <Directory WORKING_DIR/LedgerSMB>
  45. Order Deny,Allow
  46. Deny from All
  47. </Directory>