~ubuntu-branches/ubuntu/saucy/awstats/saucy

« back to all changes in this revision

Viewing changes to tools/nginx/awstats-nginx.conf

  • Committer: Package Import Robot
  • Author(s): Sergey B Kirpichev
  • Date: 2013-02-22 19:33:53 UTC
  • mfrom: (1.2.9)
  • Revision ID: package-import@ubuntu.com-20130222193353-kxadnnphaxmxlpp4
Tags: 7.1~dfsg-1
* Ensure that backwards compatible Java bytecode is built (Closes:
  #687414)
* Add option to easy switch off awstats crontabs.  Install symlink for
  awstats binary to /usr/bin.  Closes: #641481.
* Drop deprecated DMUA flag
* Link missing mime-icons to notavailable.png (Closes: #690379)
* Fix lintian unused-license-paragraph-in-dep5-copyright (Add comment
  for Files: wwwroot/icon/mime/*)
* Fix lintian copyright-refers-to-symlink-license (GPL -> GPL-1+)
* Install manpage
* Imported Upstream version 7.1~dfsg
* Update patches for new release
* Fix executable bit on awstats.pl
* Bump up Standards-Version (to 3.9.4)
* Change license for wwwroot/icon/mime/* icons (Closes: #698921)
* Update watch file for 7.x
* Add debian/icons/firefox.png to include-binaries
* Update DEB_UPSTREAM_TARBALL* stuff in rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
server {
 
2
        listen 127.0.0.1:80;
 
3
        server_name localhost;
 
4
        access_log /var/log/nginx/localhost.access_log main;
 
5
        error_log /var/log/nginx/localhost.error_log info;
 
6
        root /var/www/localhost/htdocs;
 
7
        index index.html;
 
8
 
 
9
        # Restrict access
 
10
        #auth_basic "Restricted";
 
11
        #auth_basic_user_file /etc/awstats/htpasswd;
 
12
 
 
13
 
 
14
        # Static awstats files: HTML files stored in DOCUMENT_ROOT/awstats/
 
15
        location /awstats/classes/ {
 
16
                alias /usr/share/awstats/wwwroot/classes/;
 
17
        }
 
18
 
 
19
        location /awstats/css/ {
 
20
                alias /usr/share/awstats/wwwroot/css/;
 
21
        }
 
22
 
 
23
        location /awstats/icon/ {
 
24
                alias /usr/share/awstats/wwwroot/icon/;
 
25
        }
 
26
 
 
27
        location /awstats/js/ {
 
28
                alias /usr/share/awstats/wwwroot/js/;
 
29
        }
 
30
 
 
31
 
 
32
        # Dynamic stats.
 
33
        location ~ ^/cgi-bin/(awredir|awstats)\.pl {
 
34
                gzip off;
 
35
                fastcgi_pass 127.0.0.1:9000;
 
36
                fastcgi_param SCRIPT_FILENAME /usr/share/awstats/wwwroot/cgi-bin/fcgi.php;
 
37
                fastcgi_param X_SCRIPT_FILENAME /usr/share/awstats/wwwroot$fastcgi_script_name;
 
38
                fastcgi_param X_SCRIPT_NAME $fastcgi_script_name;
 
39
                include fastcgi_params;
 
40
        }
 
41
}