ExtendedStatus On

PerlOptions        +SetupEnv
PerlSetVar         WebguiRoot /usr/share/webgui
PerlCleanupHandler Apache2::SizeLimit
PerlRequire        /usr/share/webgui/sbin/preload.perl

NameVirtualHost *:80
<VirtualHost *:80>
    ServerName      localhost
    ServerAdmin     webmaster@localhost
    ErrorLog        /var/log/apache2/error.log
    CustomLog       /var/log/apache2/access.log common

    DocumentRoot    /var/www/webgui/

    SetHandler      perl-script
    PerlInitHandler WebGUI
    PerlSetVar      WebguiConfig webgui.conf

    Alias /extras /usr/share/webgui/extras

    # Uncomment this if you want to have access to /server-status, and
    # then make sure "/server-status" appears in the passthruUrls list
    # in /etc/webgui/webgui.conf
    #
    #<Location /server-status>
    #  SetHandler server-status
    #  Order deny,allow
    #  Deny from all
    #  Allow from all
    #</Location>

    # Uncomment this if you want to have access to /perl-status, and
    # then make sure "/perl-status" appears in the passthruUrls list
    # in /etc/webgui/webgui.conf
    #
    #<Location /perl-status>
    #  SetHandler perl-script
    #  PerlHandler Apache2::Status
    #  Order deny,allow
    #  Deny from all
    #  Allow from all
    #</Location>

    # Uncomment this if you want to have access to /webalizer, and
    # then add "/webalizer" to passthruUrls in webgui.conf
    #
    #Alias /webalizer /var/www/webalizer
    #<Directory /var/www/webalizer>
    #  Order deny,allow
    #  Deny from all
    #  Allow from all
    #</Directory>

    Alias /uploads /var/lib/webgui/uploads
    <Directory /var/lib/webgui/uploads>
        Order deny,allow
        Deny from all
        Allow from all
    </Directory>

    Alias /exports /var/lib/webgui/exports
    <Directory /var/lib/webgui/exports>
        Order deny,allow
        Deny from all
        Allow from all
    </Directory>

</VirtualHost>
