summaryrefslogtreecommitdiff
path: root/ledgersmb-httpd.conf
blob: 02ca1b4f5f8f2f4c1eec4fd61b1ae688257f7379 (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. Allow from localhost
  18. Deny from All
  19. # The rest of this file just tightens up security.
  20. <Files ~ "\.conf$">
  21. Order Deny,Allow
  22. Deny from All
  23. </Files>
  24. </Directory>
  25. <Directory WORKING_DIR/users>
  26. Order Deny,Allow
  27. Deny from All
  28. </Directory>
  29. <Directory WORKING_DIR/bin>
  30. Order Deny,Allow
  31. Deny from All
  32. </Directory>
  33. <Directory WORKING_DIR/utils>
  34. Order Deny,Allow
  35. Deny from All
  36. </Directory>
  37. <Directory WORKING_DIR/spool>
  38. Order Deny,Allow
  39. Deny from All
  40. </Directory>
  41. <Directory WORKING_DIR/templates>
  42. Order Deny,Allow
  43. Deny from All
  44. </Directory>
  45. <Directory WORKING_DIR/LedgerSMB>
  46. Order Deny,Allow
  47. Deny from All
  48. </Directory>