# This file is for Apache 1.3.x and Apache 2.x.
#
# It is generated at configure/build time from xymon-apacheconf.txt.DIST
# with the install paths substituted in. The authoritative copy of this
# Apache configuration is also produced as xymon-apache.conf during
# installation; either file can be used.

# 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/www/xymon

Alias /xymon/ "/var/www/xymon/"
<Directory "/var/www/xymon/">
    Options Indexes FollowSymLinks Includes MultiViews
    <IfModule mod_authz_core.c>
        Require all granted
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Allow from all
    </IfModule>
</Directory>

ScriptAlias /xymon-cgi/ "/usr/share/xymon/cgi-bin/"
<Directory "/usr/share/xymon/cgi-bin">
    AllowOverride None
    Options ExecCGI Includes
    <IfModule mod_authz_core.c>
        Require all granted
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Allow from all
    </IfModule>
</Directory>

ScriptAlias /xymon-seccgi/ "/usr/share/xymon/cgi-secure/"
<Directory "/usr/share/xymon/cgi-secure">
    AllowOverride None
    Options ExecCGI Includes
    <IfModule mod_authz_core.c>
        Require all granted
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Allow from all
    </IfModule>

    # Password file where users with access to these scripts are kept.
    # Create it with:
    #     htpasswd -c /etc/xymon/xymonpasswd USERNAME
    #
    # Add more users / change passwords with:
    #     htpasswd /etc/xymon/xymonpasswd USERNAME

    AuthUserFile /etc/xymon/xymonpasswd
    AuthType Basic
    AuthName "Xymon Administration"
    Require valid-user
</Directory>
