PageRenderTime 86ms CodeModel.GetById 84ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

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