~britco/nginx/master

« back to all changes in this revision

Viewing changes to debian/conf/sites-available/default

  • Committer: Bazaar Package Importer
  • Author(s): Kartik Mistry, Kartik Mistry, Michael Lustfield
  • Date: 2010-11-27 21:04:02 UTC
  • mfrom: (1.3.8 upstream)
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: james.westby@ubuntu.com-20101127210402-14sgjpe6r3jup8a9
Tags: 0.8.53-1
[Kartik Mistry]
* debian/control:
  + Added Michael Lustfield as co-maintainer
* nginx.conf:
  + No need to use regex in gzip_disable for msie6, Thanks to António P. P.
    Almeida <appa@perusio.net> (Closes: #592147)
* conf/sites-available/default:
  + Fixed typo for "include fastcgi", Thanks to Mostafa Ghadamyari
    <nginx@gigfa.com> (Closes: #593142, #593143)
* debian/patches/fix_reloading_ipv6.diff:
  + Removed, merged upstream
* debian/init.d:
  + Added fix to control nginx by user in a simple way by setting DAEMON
    variable to an invalid name in /etc/default/nginx. Patch by Toni Mueller
    <support@oeko.net> (Closes: #594598)
* debian/NEWS.Debian:
  + Updated news for 0.8.x as stable branch

[Michael Lustfield]
* New upstream release (Closes: #602970)
  + 0.8.x branch is declared stable by upstream now
* Add a UFW profile set:
  + debian/nginx.ufw.profile: Added.
  + debian/control: nginx: Suggests ufw.
  + debian/dirs: Add 'etc/ufw/applications.d'
  + debian/rules: Add install rule for the nginx UFW profile.
* Moved debian/dirs to debian/nginx.dirs
* Added types_hash_max_size to nginx.conf
* Install simple default index.html file (Closes: #581416)
  + debian/dirs: Add 'usr/share/nginx/www'.
  + debian/nginx.install: Add 'html/* usr/share/nginx/www'.
* debian/patches/nginx-echo.diff:
  + Added Echo module
* Added files for nginx.docs
  - /usr/share/doc/nginx/
    + debian/help/docs/fcgiwrap
    + debian/help/docs/php
    + debian/help/docs/support-irc
    + debian/help/docs/upstream
* Added files for nginx.examples
  - /usr/share/doc/nginx/examples/
    + debian/help/docs/drupal
    + debian/help/docs/http
    + debian/help/docs/mail
    + debian/help/docs/mailman
    + debian/help/docs/nginx.conf
    + debian/help/docs/virtual_hosts
    + debian/help/docs/wordpress
* debian/conf/:
  + Removed excess spaces
  + Added tabs where appropriate
  + Added SCRIPT_FILENAME to fastcgi_params

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# server {
3
3
#       ...
4
4
# }
5
 
# statements for each of your virtual hosts
 
5
# statements for each of your virtual hosts to this file
 
6
 
 
7
##
 
8
# You should look at the following URL's in order to grasp a solid understanding
 
9
# of Nginx configuration files in order to fully unleash the power of Nginx.
 
10
# http://wiki.nginx.org/Pitfalls
 
11
# http://wiki.nginx.org/Quickstart
 
12
# http://wiki.nginx.org/Configuration
 
13
#
 
14
# Generally, you will want to move this file somewhere, and start with a clean
 
15
# file but keep this around for reference. Or just disable in sites-enabled.
 
16
#
 
17
# Please see /usr/share/doc/nginx/examples/ for more detailed examples.
 
18
##
6
19
 
7
20
server {
8
 
 
9
 
        listen   80; ## listen for ipv4
10
 
        listen   [::]:80 default ipv6only=on; ## listen for ipv6
11
 
 
12
 
        server_name  localhost;
13
 
 
14
 
        access_log  /var/log/nginx/localhost.access.log;
 
21
        #listen   80; ## listen for ipv4; this line is default and implied
 
22
        #listen   [::]:80 default ipv6only=on; ## listen for ipv6
 
23
 
 
24
        root /usr/share/nginx/www;
 
25
        index index.html index.htm;
 
26
 
 
27
        # Make site accessible from http://localhost/
 
28
        server_name localhost;
15
29
 
16
30
        location / {
17
 
                root   /var/www;
18
 
                index  index.html index.htm;
 
31
                # First attempt to serve request as file, then
 
32
                # as directory, then fall back to index.html
 
33
                try_files $uri $uri/ /index.html;
19
34
        }
20
35
 
21
36
        location /doc {
22
 
                root   /usr/share;
 
37
                root /usr/share;
23
38
                autoindex on;
24
39
                allow 127.0.0.1;
25
40
                deny all;
26
41
        }
27
42
 
28
43
        location /images {
29
 
                root   /usr/share;
30
 
                autoindex on;
 
44
                root /usr/share;
 
45
                autoindex off;
31
46
        }
32
47
 
33
 
        #error_page  404  /404.html;
 
48
        #error_page 404 /404.html;
34
49
 
35
50
        # redirect server error pages to the static page /50x.html
36
51
        #
37
 
        #error_page   500 502 503 504  /50x.html;
 
52
        #error_page 500 502 503 504 /50x.html;
38
53
        #location = /50x.html {
39
 
        #       root   /var/www/nginx-default;
 
54
        #       root /usr/share/nginx/www;
40
55
        #}
41
56
 
42
57
        # proxy the PHP scripts to Apache listening on 127.0.0.1:80
43
58
        #
44
59
        #location ~ \.php$ {
45
 
                #proxy_pass   http://127.0.0.1;
 
60
        #       proxy_pass http://127.0.0.1;
46
61
        #}
47
62
 
48
63
        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
49
64
        #
50
65
        #location ~ \.php$ {
51
 
                #fastcgi_pass   127.0.0.1:9000;
52
 
                #fastcgi_index  index.php;
53
 
                #fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
54
 
                #includefastcgi_params;
 
66
        #       fastcgi_pass 127.0.0.1:9000;
 
67
        #       fastcgi_index index.php;
 
68
        #       include fastcgi_params;
55
69
        #}
56
70
 
57
71
        # deny access to .htaccess files, if Apache's document root
58
72
        # concurs with nginx's one
59
73
        #
60
74
        #location ~ /\.ht {
61
 
                #deny  all;
 
75
        #       deny all;
62
76
        #}
63
77
}
64
78
 
66
80
# another virtual host using mix of IP-, name-, and port-based configuration
67
81
#
68
82
#server {
69
 
#listen   8000;
70
 
#listen   somename:8080;
71
 
#server_name  somename  alias  another.alias;
72
 
 
73
 
#location / {
74
 
#root   html;
75
 
#index  index.html index.htm;
76
 
#}
 
83
#       listen 8000;
 
84
#       listen somename:8080;
 
85
#       server_name somename alias another.alias;
 
86
#       root html;
 
87
#       index index.html index.htm;
 
88
#
 
89
#       location / {
 
90
#               try_files $uri $uri/ /index.html;
 
91
#       }
77
92
#}
78
93
 
79
94
 
80
95
# HTTPS server
81
96
#
82
97
#server {
83
 
#listen   443;
84
 
#server_name  localhost;
85
 
 
86
 
#ssl  on;
87
 
#ssl_certificate  cert.pem;
88
 
#ssl_certificate_key  cert.key;
89
 
 
90
 
#ssl_session_timeout  5m;
91
 
 
92
 
#ssl_protocols  SSLv3 TLSv1;
93
 
#ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
94
 
#ssl_prefer_server_ciphers   on;
95
 
 
96
 
#location / {
97
 
#root   html;
98
 
#index  index.html index.htm;
99
 
#}
 
98
#       listen 443;
 
99
#       server_name localhost;
 
100
#
 
101
#       root html;
 
102
#       index index.html index.htm;
 
103
#
 
104
#       ssl on;
 
105
#       ssl_certificate cert.pem;
 
106
#       ssl_certificate_key cert.key;
 
107
#
 
108
#       ssl_session_timeout 5m;
 
109
#
 
110
#       ssl_protocols SSLv3 TLSv1;
 
111
#       ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
 
112
#       ssl_prefer_server_ciphers on;
 
113
#
 
114
#       location / {
 
115
#               try_files $uri $uri/ /index.html;
 
116
#       }
100
117
#}