/apache2/conf.d/hobbit

http://github.com/brinkman83/bashrc · #! · 58 lines · 47 code · 11 blank · 0 comment · 0 complexity · cb0becbaf8c9fa684fc56280ab3ac196 MD5 · raw file

  1. # This file is for Apache 1.3.x and Apache 2.0.x
  2. #
  3. # Add this to your Apache configuration, it makes
  4. # the Xymon webpages and cgi-scripts available in the
  5. # "/hobbit" and "/hobbit-cgi" URLs.
  6. # NB: The "Alias" line below must NOT be used if you have
  7. # the Xymon webfiles as the root URL. In that case,
  8. # you should instead set this:
  9. #
  10. # DocumentRoot /var/lib/hobbit/www
  11. Alias /hobbit/ "/var/lib/hobbit/www/"
  12. <Directory "/var/lib/hobbit/www">
  13. Options Indexes FollowSymLinks Includes MultiViews
  14. Order allow,deny
  15. Allow from localhost ::1/128
  16. </Directory>
  17. ScriptAlias /hobbit-cgi/ "/usr/lib/hobbit/cgi-bin/"
  18. <Directory "/usr/lib/hobbit/cgi-bin">
  19. AllowOverride None
  20. Options ExecCGI Includes
  21. Order allow,deny
  22. Allow from localhost ::1/128
  23. </Directory>
  24. ScriptAlias /hobbit-seccgi/ "/usr/lib/hobbit/cgi-secure/"
  25. <Directory "/usr/lib/hobbit/cgi-secure">
  26. AllowOverride None
  27. Options ExecCGI Includes
  28. Order allow,deny
  29. Allow from localhost ::1/128
  30. # Password file where users with access to these scripts are kept.
  31. # Create it with "htpasswd -c /etc/hobbit/hobbitpasswd USERNAME"
  32. # Add more users / change passwords with "htpasswd /etc/hobbit/hobbitpasswd USERNAME"
  33. #
  34. # You can also use a group file to restrict admin access to members of a
  35. # group, instead of anyone who is logged in. In that case you must setup
  36. # the "hobbitgroups" file, and change the "Require" settings to require
  37. # a specific group membership. See the Apache docs for more details.
  38. AuthUserFile /etc/hobbit/hobbitpasswd
  39. AuthGroupFile /etc/hobbit/hobbitgroups
  40. AuthType Basic
  41. AuthName "Xymon Administration"
  42. # "valid-user" restricts access to anyone who is logged in.
  43. Require valid-user
  44. # "group admins" restricts access to users who have logged in, AND
  45. # are members of the "admins" group in hobbitgroups.
  46. # Require group admins
  47. </Directory>