/apache2/conf.d/hobbit
http://github.com/brinkman83/bashrc · #! · 58 lines · 47 code · 11 blank · 0 comment · 0 complexity · cb0becbaf8c9fa684fc56280ab3ac196 MD5 · raw file
- # This file is for Apache 1.3.x and Apache 2.0.x
- #
- # Add this to your Apache configuration, it makes
- # the Xymon webpages and cgi-scripts available in the
- # "/hobbit" and "/hobbit-cgi" URLs.
- # NB: The "Alias" line below must NOT be used if you have
- # the Xymon webfiles as the root URL. In that case,
- # you should instead set this:
- #
- # DocumentRoot /var/lib/hobbit/www
- Alias /hobbit/ "/var/lib/hobbit/www/"
- <Directory "/var/lib/hobbit/www">
- Options Indexes FollowSymLinks Includes MultiViews
- Order allow,deny
- Allow from localhost ::1/128
- </Directory>
- ScriptAlias /hobbit-cgi/ "/usr/lib/hobbit/cgi-bin/"
- <Directory "/usr/lib/hobbit/cgi-bin">
- AllowOverride None
- Options ExecCGI Includes
- Order allow,deny
- Allow from localhost ::1/128
- </Directory>
- ScriptAlias /hobbit-seccgi/ "/usr/lib/hobbit/cgi-secure/"
- <Directory "/usr/lib/hobbit/cgi-secure">
- AllowOverride None
- Options ExecCGI Includes
- Order allow,deny
- Allow from localhost ::1/128
- # Password file where users with access to these scripts are kept.
- # Create it with "htpasswd -c /etc/hobbit/hobbitpasswd USERNAME"
- # Add more users / change passwords with "htpasswd /etc/hobbit/hobbitpasswd USERNAME"
- #
- # You can also use a group file to restrict admin access to members of a
- # group, instead of anyone who is logged in. In that case you must setup
- # the "hobbitgroups" file, and change the "Require" settings to require
- # a specific group membership. See the Apache docs for more details.
- AuthUserFile /etc/hobbit/hobbitpasswd
- AuthGroupFile /etc/hobbit/hobbitgroups
- AuthType Basic
- AuthName "Xymon Administration"
- # "valid-user" restricts access to anyone who is logged in.
- Require valid-user
- # "group admins" restricts access to users who have logged in, AND
- # are members of the "admins" group in hobbitgroups.
- # Require group admins
- </Directory>