All pastes #805959 Raw Edit

Mine

public text v1 · immutable
·published 2007-12-04 20:44 UTC
rendered paste body
<vhost>....
    #
    # Directives to allow use of AWStats as a CGI
    #
    Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"
    Alias /awstatscss "/usr/local/awstats/wwwroot/css/"
    Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/"
    ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"

    #
    # This is to permit URL access to scripts/files in AWStats directory.
    #
    <Directory "/usr/local/awstats/wwwroot">
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>

  # URL reqrite
  RewriteCond %{REQUEST_URI} /awstats [NC]
  RewriteRule ^(.*) http://www.mydomain.com/awstats/awstats.pl?config=mydomain.com&configdir=/etc/awstats [R=301]

<vhost...>