All pastes #623556 Raw Edit

Mine

public text v1 · immutable
·published 2007-07-17 18:03 UTC
rendered paste body
NameVirtualHost *:80

<VirtualHost *:80>
        ServerName awstats.foobar.com
        DocumentRoot "/var/www/awstats.foobar.com/htdocs"

        Alias /awstats/classes "/usr/share/webapps/awstats/6.5-r1/htdocs/classes/"
        Alias /awstats/css "/usr/share/webapps/awstats/6.5-r1/htdocs/css/"
        Alias /awstats/icons "/usr/share/webapps/awstats/6.5-r1/htdocs/icon/"
        ScriptAlias /awstats/ "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/"
        ScriptAlias /awstats "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl"
        ScriptAlias /awstats.pl "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl"

        <Directory "/var/www/awstats.foobar.com/htdocs">
                Options None
                AllowOverride None
                <IfModule mod_access.c>
                        Order allow,deny
                        Allow from all
                </IfModule>
                AuthType Basic
                AuthName awstats
                AuthUserFile /etc/awstats/passwd
                Require valid-user
                DirectoryIndex "awstats.pl"
        </Directory>

        <Directory "/var/www/awstats.foobar.com/htdocs/awstats">
                Options None
                AllowOverride None
                <IfModule mod_access.c>
                        Order allow,deny
                        Allow from none
                        Deny from all
                </IfModule>
                AuthType Basic
                AuthName awstats
                AuthUserFile /etc/awstats/passwd
                Require valid-user
                DirectoryIndex "awstats.pl"
        </Directory>

        <Directory "/var/www/awstats.foobar.com/cgi-bin">
                Options ExecCGI
                AllowOverride None
                <IfModule mod_access.c>
                        Order allow,deny
                        Allow from all
                </IfModule>
                AuthType Basic
                AuthName awstats
                AuthUserFile /etc/awstats/passwd
                Require valid-user
        </Directory>
</VirtualHost>