Sha256: cf4d6e7e77e741ead42c95b5e263be2a4cd77b70c4f6bd569a1eb64a52b94342

Contents?: true

Size: 1.16 KB

Versions: 6

Compression:

Stored size: 1.16 KB

Contents

# zena awstats vhost for <%= config[:host] %>
# automatically generated file

<VirtualHost *<%= vhost_port %>>
  ServerName stats.<%= config[:host] %>

  DocumentRoot /usr/share/doc/awstats/examples
  ErrorLog     <%= config[:sites_root] %>/<%= config[:host] %>/log/apache2.error.log
  CustomLog    <%= config[:sites_root] %>/<%= config[:host] %>/log/apache2.access.log combined

  <location />
    SetEnv AWSTATS_FORCE_CONFIG <%= config[:host] %>

    AuthType Basic
    AuthName "<%= config[:host] %> stats"
    AuthUserFile <%= config[:sites_root] %>/<%= config[:host] %>/log/.awstatspw
    Require valid-user
  </location>

  #
  # Directives to allow use of AWStats as a CGI
  #
  Alias /awstatsclasses "/usr/share/doc/awstats/lib"
  Alias /awstatscss "/usr/share/doc/awstats/examples/css/"
  Alias /awstatsicons "/usr/share/awstats/icon/"
  ScriptAlias / "/usr/lib/cgi-bin/"

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

  RewriteEngine On
  RewriteRule ^/$ /awstats.pl [R=302,L]
</VirtualHost>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zena-1.2.8 lib/zena/deploy/stats.vhost.rhtml
zena-1.2.7 lib/zena/deploy/stats.vhost.rhtml
zena-1.2.6 lib/zena/deploy/stats.vhost.rhtml
zena-1.2.5 lib/zena/deploy/stats.vhost.rhtml
zena-1.2.4 lib/zena/deploy/stats.vhost.rhtml
zena-1.2.3 lib/zena/deploy/stats.vhost.rhtml