├── README.md ├── nginx ├── README.md └── debian │ ├── README.Debian │ ├── README.Packaging │ ├── changelog │ ├── compat │ ├── conf │ ├── fastcgi.conf │ ├── fastcgi_params │ ├── koi-utf │ ├── koi-win │ ├── mime.types │ ├── nginx.conf │ ├── proxy_params │ ├── scgi_params │ ├── sites-available │ │ └── default │ ├── snippets │ │ ├── fastcgi-php.conf │ │ └── snakeoil.conf │ ├── uwsgi_params │ └── win-utf │ ├── control │ ├── copyright │ ├── gbp.conf │ ├── help │ ├── docs │ │ ├── fcgiwrap │ │ ├── php │ │ ├── support-irc │ │ └── upstream │ └── examples │ │ ├── drupal │ │ ├── http │ │ ├── mail │ │ ├── mailman │ │ ├── nginx.conf │ │ ├── nginx_modsite │ │ ├── virtual_hosts │ │ └── wordpress │ ├── index.html │ ├── nginx-common.NEWS │ ├── nginx-common.dirs │ ├── nginx-common.install │ ├── nginx-common.lintian-overrides │ ├── nginx-common.manpages │ ├── nginx-common.nginx.default │ ├── nginx-common.nginx.init │ ├── nginx-common.nginx.logrotate │ ├── nginx-common.nginx.service │ ├── nginx-common.postinst │ ├── nginx-common.postrm │ ├── nginx-common.preinst │ ├── nginx-custom.dirs │ ├── nginx-custom.install │ ├── nginx-custom.lintian-overrides │ ├── nginx-custom.postinst │ ├── nginx-custom.prerm │ ├── nginx-doc.docs │ ├── nginx-doc.examples │ ├── nginx-extras.install │ ├── nginx-extras.lintian-overrides │ ├── nginx-extras.postinst │ ├── nginx-extras.prerm │ ├── nginx-full.dirs │ ├── nginx-full.install │ ├── nginx-full.lintian-overrides │ ├── nginx-full.postinst │ ├── nginx-full.prerm │ ├── nginx-light.dirs │ ├── nginx-light.install │ ├── nginx-light.lintian-overrides │ ├── nginx-light.postinst │ ├── nginx-light.prerm │ ├── nginx.1 │ ├── patches │ ├── easyengine-branding.patch │ ├── perl-use-dpkg-buildflags.patch │ └── series │ ├── rules │ ├── source │ ├── format │ └── include-binaries │ ├── tests │ └── control │ ├── ufw │ └── nginx │ ├── upstream │ └── signing-key.asc │ └── watch └── ppa.sh /README.md: -------------------------------------------------------------------------------- 1 | Nginx build for Easyengine. 2 | =========================== 3 | * Detailed steps for building your own nginx package you can follow [wiki page](https://github.com/EasyEngine/nginx-build/wiki) of the repo. 4 | * The new updated images are hosted at [Opensuse Build Service](https://build.opensuse.org/package/show/home:rtCamp:EasyEngine/nginx). 5 | -------------------------------------------------------------------------------- /nginx/README.md: -------------------------------------------------------------------------------- 1 | #### Download nginx.sh 2 | 3 | ```bash 4 | ^_^[Mitesh@Shah:~]$ wget -c https://raw.githubusercontent.com/rtCamp/launchpad/master/ppa.sh 5 | ``` 6 | 7 | #### Execute ppa.sh 8 | 9 | ```bash 10 | ^_^[Mitesh@Shah:~]$ bash ppa.sh nginx 1.6.2 Mr.Miteshah@gmail.com 11 | ``` 12 | 13 | ## Nginx package 14 | **Note:** Package dh-systemd is not available for Ubuntu 12.04 15 | 16 | If you want to build nginx for Ubuntu 12.04 then you have to first build [init-system-helpers package] (https://github.com/rtCamp/launchpad/blob/master/init-system-helpers/README.md) 17 | 18 | ##### Modify Changelog 19 | 20 | ```bash 21 | ^_^[Mitesh@Shah:~]$ vim ~/PPA/nginx/nginx-1.6.2/debian/changelog 22 | nginx (1.6.2-1ppa~trusty) trusty; urgency=low 23 | 24 | * Remove nginx-naxsi package 25 | * Remove nginx-pagespeed package 26 | * Add ngx_pagespeed in nginx-extras package 27 | 28 | -- Mitesh Shah Wed, 29 Oct 2014 18:57:39 +0530 29 | 30 | ``` 31 | 32 | ##### Make A Debian Source For Upload To PPA: 33 | 34 | ```bash 35 | ^_^[Mitesh@Shah:~]$ cd ~/PPA/nginx/nginx-1.6.2 36 | # For new nginx version 1.6.2 37 | ^_^[Mitesh@Shah:~]$ debuild -S -sa -k'387AFF02' 38 | # For minor changes on existing nginx 1.6.2 39 | # Download nginx_1.6.2.orig.tar.xz from launchpad 40 | ^_^[Mitesh@Shah:~]$ debuild -S -k'387AFF02' 41 | ``` 42 | 43 | ##### Let Upload To LaunchPad: 44 | 45 | ```bash 46 | ^_^[Mitesh@Shah:~]$ dput ppa:rtcamp/nginx ~/PPA/nginx/nginx_1.6.2-1ppa~trusty_source.changes 47 | ``` 48 | 49 | ##### Check Nginx Modules 50 | Refer: https://docs.google.com/spreadsheets/d/1cNIX6vmar9q7ci6_lXrM_pEsOyc1GrCzfXOiMdpf7Gg/ 51 | -------------------------------------------------------------------------------- /nginx/debian/README.Debian: -------------------------------------------------------------------------------- 1 | README for Debian 2 | ----------------- 3 | 4 | Files under /var/www/ are not supported as per Debian Policy. 5 | Please see: http://lintian.debian.org/tags/dir-or-file-in-var-www.html and, 6 | http://www.pathname.com/fhs/pub/fhs-2.3.html#THEVARHIERARCHY for more 7 | details and explanations. 8 | 9 | -- Kartik Mistry Fri, 05 Mar 2010 13:31:15 +0530 10 | -------------------------------------------------------------------------------- /nginx/debian/README.Packaging: -------------------------------------------------------------------------------- 1 | Debian Packaging 2 | ================ 3 | 4 | We use git-buildpackage for packaging. Our repository can be found at 5 | git.debian.org:/git/collab-maint/nginx.git. 6 | 7 | Workflow for Unstable 8 | ===================== 9 | 10 | We use the standard git-buildpackage workflow. 11 | 12 | Workflow for Experimental (not-active) 13 | ====================================== 14 | 15 | Now that nginx 1.6.0 is released there is no plan to package mainline 1.7 16 | releases to experimental. The following guide is been kept as a reference. 17 | 18 | -------- 19 | 20 | Nginx mainline releases (1.5.x series) are been packaged for experimental, 21 | as they lack security support. 22 | 23 | The workflow we use is based on the assumption that packaging work happens on 24 | origin/master and experimental builds are a trivial patch away from that. 25 | 26 | The direct consequense of treating experimental as a patchset for origin/master 27 | is that the relevant branches are forced-pushed whenever we release a new 28 | 1.5.x version. In other words, **it is not safe to base your work on the 29 | experimental branch**. 30 | 31 | This is a brief description of our experimental branches and how we are using 32 | them. 33 | 34 | * experimental-base 35 | Force-pushed when origin/master changes. 36 | 37 | experimental-base tracks the changes needed for building the 1.5.x branch, 38 | such as new configure parameters, etc. On new 1.5.x releases, it is rebased 39 | on origin/master so it is always up-to-date with our latest packaging work. 40 | 41 | * experimental 42 | Force-pushed on every 1.5.x release. 43 | 44 | This branch points to the latest 1.5.x release. 45 | Before release this branch is reset to experimental-base, and then merged 46 | with the new upstream-1.5 branch. Finally all the release specific changes 47 | are commited (changelog entry etc) and the build is made. 48 | 49 | * upstream-1.5 50 | Force-pushed on every 1.5.x release. 51 | 52 | Before a new 1.5.x release the branch is reset to origin/upstream. 53 | This is a technicallity so we can avoid resolving conflicts when a new 1.4.x 54 | release happens between two experimental releases. 55 | 56 | Older 1.5.x releases are not referenced by any branch, but they can be found by 57 | the relevant debian/* tag. 58 | 59 | 3rd party experimental workflow 60 | =============================== 61 | 62 | As we described, it is better not base you work on our forced-pushed 63 | experimental branch. A better approach would be to maintain a custom-build 64 | branch that is rebased to our latest experimental branch (basically git rebase 65 | --onto the relevant commits should work). 66 | 67 | -------------------------------------------------------------------------------- /nginx/debian/changelog: -------------------------------------------------------------------------------- 1 | nginx (1.14.0-1ppa~stable) xenial; urgency=medium 2 | 3 | * Use new stable nginx source. 4 | 5 | -- Mriyam Tamuli Thu, 24 May 2018 22:07:00 +0530 6 | 7 | nginx (1.10.3-5ppa~stable) stable; urgency=high 8 | 9 | * Use new stable nginx source. 10 | * remove ngx_pagespeed package 11 | * change deprecated option --without-http_limit_zone_module to --without-http_limit_conn_module 12 | * change deprecated option --with-http_spdy_module to --with-http_v2_module 13 | * update outdated HTTP Redis module 14 | 15 | -- Bharat Parsiya Sat, 18 Mar 2017 20:14:53 +0530 16 | 17 | nginx (1.6.2-2ppa~utopic) utopic; urgency=high 18 | 19 | * Remove nginx-naxsi package 20 | * Remove nginx-pagespeed package 21 | * Add ngx_pagespeed module in nginx-extras 22 | * Add nginx-lua, ngx-fancyindex and ngx_pagespeed in nginx-custom package 23 | 24 | -- Mitesh Shah Mon, 10 Nov 2014 12:41:53 +0530 25 | 26 | nginx (1.6.2-4+utopic0) utopic; urgency=high 27 | 28 | * Resync with Debian 29 | 30 | -- Thomas Ward Wed, 22 Oct 2014 12:34:53 -0400 31 | 32 | nginx (1.6.2-4) unstable; urgency=medium 33 | 34 | [ Christos Trochalakis ] 35 | * debian/modules/nginx-development-kit: 36 | + Upgrade v0.2.17-7-g24202b4 -> v0.2.19 37 | * debian/modules/nginx-echo: 38 | + Upgrade v0.51 -> v0.56 39 | * debian/modules/nginx-upload-progress: 40 | + Upgrade v0.9.0-0-ga788dea -> 0.9.1 41 | * debian/modules/ngx-fancy-index: 42 | + Upgrade v0.3.3 -> v0.3.4 43 | * debian/copyright: 44 | + Rewrite copyright file fixing various issues. 45 | * debian/nginx-common.nginx.logrotate: 46 | + Switch postrotate to the initscript's rotate command. 47 | 48 | -- Christos Trochalakis Sun, 19 Oct 2014 08:23:33 +0300 49 | 50 | nginx (1.6.2-3) unstable; urgency=medium 51 | 52 | [ Christos Trochalakis ] 53 | * Change the default document root to /var/www/html according to debian 54 | policy 3.9.6.0. (Closes: #730382) 55 | * Provide a new, debian specific, default landing page. 56 | * debian/nginx-common.nginx.service: 57 | + Graceful stopping of nginx was not handled correctly with systemd. 58 | * debian/nginx-common.nginx.init: 59 | + Gracefully stop nginx by default, we are switcing to a configurable 60 | STOP/5/TERM/5/KILL/5 schedule. We are now in sync with the systemd 61 | service file. (Closes: #762708) 62 | * debian/conf: 63 | + Introduce a `snippets/fastcgi-php.conf` snippet with a basic 64 | php configuration that can be included when needed. (Closes: #762491) 65 | + Introduce a `snippets/snakeoil.conf` snippet that enabled https 66 | using the certs installed by the ssl-cert package. 67 | + Suggest disabling SSLv3 in default site with a ref to POODLE. 68 | * debian/control: 69 | + nginx-common now suggests ssl-cert. 70 | 71 | -- Christos Trochalakis Thu, 16 Oct 2014 13:34:29 +0300 72 | 73 | nginx (1.6.2-2) unstable; urgency=medium 74 | 75 | [ Christos Trochalakis ] 76 | * Drop nginx-naxsi, nginx-naxsi-dbg, nginx-naxsi-ui packages. 77 | (Closes: #746199, #737146, #712445) 78 | * debian/conf/nginx.conf: 79 | + Remove relic passenger stanga. 80 | 81 | -- Christos Trochalakis Fri, 26 Sep 2014 11:06:47 +0300 82 | 83 | nginx (1.6.2-1) unstable; urgency=high 84 | 85 | [ Christos Trochalakis ] 86 | * New upstream release. 87 | CVE-2014-3616: "it was possible to reuse SSL sessions in unrelated 88 | contexts if a shared SSL session cache or the same TLS session ticket 89 | key was used for multiple "server" blocks". 90 | (Closes: #761940) 91 | 92 | -- Christos Trochalakis Wed, 17 Sep 2014 11:19:01 +0300 93 | 94 | nginx (1.6.1-2) unstable; urgency=medium 95 | 96 | [ Christos Trochalakis ] 97 | * debian/control: 98 | + Build nginx-extras against luajit (Closes: #755875) 99 | * debian/modules/nginx-lua: 100 | + Update nginx-lua to v0.9.12 101 | * debian/nginx-common.nginx.init: 102 | + Better pidfile extraction from nginx.conf (Closes: #747329) 103 | * debian/conf/mime.types: 104 | + Upgrade to the latest upstream mime types. 105 | As a consequence, nginx now uses "application/javascript" for 106 | javascript files. 107 | * debian/conf/nginx.conf: 108 | + Add application/javascript to the gzip_types list. (Closes: #737176) 109 | * debian/rules: 110 | + Make naxsi module first in configure parameters. 111 | Fixes erratic naxsi behaviour. (Closes: #758642) 112 | * debian/conf/{koi-utf,koi-win,scgi_params,uwsgi_params}: 113 | + Sync with upstream config files. 114 | * debian/conf/fastcgi_params: 115 | + Sync with upstream and remove `SCRIPT_FILENAME` parameter. 116 | This change might break fastcgi sites. (Closes: #718639) 117 | + debian/conf/fastcgi.conf: 118 | + Ship upstream file. 119 | * debian/nginx-common.NEWS: 120 | + Document syncing conf files with upstream. 121 | * debian/tests/control: 122 | + Include some simple autopkgtests. 123 | Thanks to Robie Basak for the initial patch. (Closes: #756391) 124 | * debian/modules/nginx-http-push: 125 | + Update to v0.73. 126 | Fixes fd leak on reload. (Closes: #745921) 127 | 128 | -- Christos Trochalakis Thu, 04 Sep 2014 13:00:46 +0300 129 | 130 | nginx (1.6.1-1) unstable; urgency=medium 131 | 132 | [ Christos Trochalakis ] 133 | * New upstream release. 134 | Handle CVE-2014-3556 SMTP STARTTLS vulnerability (Closes: #757196) 135 | http://mailman.nginx.org/pipermail/nginx-announce/2014/000144.html 136 | 137 | -- Christos Trochalakis Wed, 06 Aug 2014 10:05:08 +0300 138 | 139 | nginx (1.6.0-2) unstable; urgency=medium 140 | 141 | [ gregor herrmann ] 142 | * Patch from Gregor Herrmann : 143 | Fix "hardcodes /usr/lib/perl5": 144 | - drop debian/nginx-extras.dirs, not needed, dh_install uses the 145 | directories from debian/nginx-extras.install 146 | - make debian/nginx-extras.install executable, and use $Config{vendorarch} 147 | for the perl library path there 148 | (Closes: #752796) 149 | 150 | -- Kartik Mistry Tue, 29 Jul 2014 04:56:03 +0000 151 | 152 | nginx (1.6.0-1) unstable; urgency=medium 153 | 154 | [ Christos Trochalakis ] 155 | * New upstream release. 156 | * debian/rules: 157 | + Enable auth request http module. (Closes: #725732) 158 | * debian/patches/series: 159 | + Remove backported openssl guard patch. 160 | 161 | -- Christos Trochalakis Thu, 24 Apr 2014 19:23:22 +0300 162 | 163 | nginx (1.4.7-2) unstable; urgency=medium 164 | 165 | [ Christos Trochalakis ] 166 | * debian/rules: 167 | + Convert to dh $@ 168 | As a side effect, fixes make dependency issues (Closes: #744050) 169 | 170 | -- Christos Trochalakis Thu, 17 Apr 2014 14:30:27 +0300 171 | 172 | nginx (1.4.7-1) unstable; urgency=medium 173 | 174 | [ Christos Trochalakis ] 175 | * New upstream release. (Closes: #742059) 176 | + Fixes pottential arbitrary code execution (CVE-2014-0133) 177 | Debian build was not vulnerable since it was compiled 178 | with the --with-debug configure option. 179 | * debian/modules/nginx-http-push: 180 | + Update to v0.711 (Closes: #732251) 181 | * debian/modules/headers-more-nginx-module: 182 | + Update to v0.25, containing several bugfixes. 183 | * debian/modules/nginx-echo: 184 | + Update to v0.51, containing several bugfixes. 185 | * debian/modules/nginx-dav-ext-module: 186 | + Update to v0.0.3, containing some uri encoding fixes. 187 | * debian/modules/ngx_http_substitutions_filter_module: 188 | + Update to v0.6.4, containing some enhancements. 189 | * debian/modules/nginx-auth-pam: 190 | + Update to v1.3. 191 | This version contains our downstream patch (See: #721702) 192 | 193 | -- Christos Trochalakis Tue, 18 Mar 2014 22:03:47 +0200 194 | 195 | nginx (1.4.6-1) unstable; urgency=medium 196 | 197 | [ Christos Trochalakis ] 198 | * New upstream release. 199 | * debian/rules: 200 | + Avoid double declaration of hardening flags. 201 | + Expand buildflags so the build log is easier to follow. 202 | + Switch to --with--cc-opt, --with-ld-opt configure flags. 203 | Nginx is now compiled with --Werror, making all warnings 204 | into errors. 205 | + Split common configure options. 206 | + Enable realip module for nginx-light. 207 | + Enable debug module for nginx-light and nginx-extras. 208 | * debian/patches/perl-use-dpkg-buildflags.patch: 209 | + Rewrite patch to just just override LDDLFLAGS and not 210 | CCFLAGS since this is handled by --with-cc-opt. 211 | * debian/watch, debian/upstream/signing-key.asc: 212 | + Fix upstream signature verification. 213 | 214 | -- Christos Trochalakis Tue, 04 Mar 2014 18:06:55 +0200 215 | 216 | nginx (1.4.5-1) unstable; urgency=medium 217 | 218 | [ Christos Trochalakis ] 219 | * New upstream release. 220 | * debian/modules/nginx-lua: 221 | + Update nginx-lua to v0.9.4 222 | * debian/nginx-naxsi-ui.preinst: 223 | + Fix exit status issue (Closes: #735152) 224 | * debian/control: 225 | + Fix arch:all to arch:any dependencies 226 | + Make nginx depend on specific flavor version 227 | * debian/nginx-*.postinst: 228 | + Make nginx start by default (Closes: #735551) 229 | * debian/nginx-*.prerm: 230 | + No need to check for invoke-rc.d, 231 | correctly set the exit code on error 232 | * debian/nginx-common.nginx.init: 233 | + Rewrite some parts of the initscript 234 | + Introduce rotate command 235 | + Introduce upgrade command 236 | 237 | -- Christos Trochalakis Thu, 13 Feb 2014 11:41:49 +0200 238 | 239 | nginx (1.4.4-4) unstable; urgency=medium 240 | 241 | [ Christos Trochalakis ] 242 | * debian/nginx-common.postinst: 243 | + Fix log re-opening issue due to wrong /var/log/nginx 244 | permissions. (Closes: #734139) 245 | 246 | -- Christos Trochalakis Sat, 04 Jan 2014 09:41:40 +0200 247 | 248 | nginx (1.4.4-3) unstable; urgency=medium 249 | 250 | [ Christos Trochalakis ] 251 | * debian/nginx-naxsi-ui.postinst: 252 | + Fix early exit issue (Closes: #715435) 253 | 254 | -- Christos Trochalakis Tue, 31 Dec 2013 11:47:07 +0200 255 | 256 | nginx (1.4.4-2) unstable; urgency=low 257 | 258 | [ Michael Lustfield ] 259 | * debian/control: 260 | + Added Provides: httpd-cgi to packages. (Closes: #701508) 261 | + Added other options to nginx depends. (Closes: #729860) 262 | + Added Spdy to nginx-full package description. 263 | * debian/nginx-common.nginx.init: 264 | + Added missing line from patch. (Closes: #728103) 265 | * debian/conf/sites-available/default: 266 | + Changed ssl_protocols and ssl_ciphers. (Closes: 730142) 267 | * debian/nginx-common.preinst: 268 | + Modify permissions of /var/log/nginx. (Closes: #701112) 269 | * debian/rules: 270 | + Added spdy support to nginx-full. (Closes: #730432) 271 | 272 | [ Christos Trochalakis ] 273 | * debian/nginx-doc,docs, debian/nginx-common.NEWS: 274 | + Ship NEWS with nginx-common instead of nginx-doc. 275 | * debian/conf/proxy_params: 276 | + Host header should be passed unmodified to the proxied server. 277 | + Pass X-Forwarded-Proto header to the proxied server. 278 | * debian/control: 279 | + Fix nginx-naxsi-ui Depends and Conflicts lines. 280 | 281 | [ Neutron Soutmun ] 282 | * debian/patches/guard-use-of-deprecated-openssl-definition.patch: 283 | + Fix FTBFS against the recent libssl-dev. (Closes: #733107) 284 | 285 | [ Kartik Mistry ] 286 | * debian/control: 287 | + Updated to Standards-Version 3.9.5 288 | * debian/watch, debian/upstream-signing-key.pgp: 289 | + Use upstream PGP signature to verify by watch file. 290 | 291 | -- Kartik Mistry Fri, 27 Dec 2013 21:16:01 +0530 292 | 293 | nginx (1.4.4-1) unstable; urgency=low 294 | 295 | [ Christos Trochalakis ] 296 | * New upstream release. (Closes: #730012) 297 | * debian/nginx-*.postinst: 298 | + Wait for the new master to write its pid file before sending QUIT to the 299 | old master. This solves an issue with systemd and the upgrade mechanism. 300 | Systemd receives the SIGCHLD from the old master but it can't see the new 301 | pid because the new master has not written it yet. As a result, it kills 302 | everything inside the cgroup, including the new master. 303 | * debian/modules/ngx-fancyindex: 304 | + Upgrade Fancy Index module to v0.3.3 (Closes: #728721) 305 | * debian/control: 306 | + Remove Upload module from nginx-extras description (Closes: #729003) 307 | 308 | [ Michael Lustfield ] 309 | * debian/control: 310 | + Added spdy to package description (Closes: #728038) 311 | * debian/nginx-common.nginx.init: 312 | + Showing better start/stop messages. Thanks Pim van den Berg. 313 | (Closes: #728103) 314 | 315 | -- Michael Lustfield Thu, 21 Nov 2013 19:25:50 +0530 316 | 317 | nginx (1.4.3-2) unstable; urgency=low 318 | 319 | [ Kartik Mistry ] 320 | * Renamed debian/nginx-common.service to debian/nginx-common.nginx.service so 321 | it is installed properly for systemd. Thanks to Christos Trochalakis. 322 | * Set debian/compat to 9 and updated debhelper dependency. 323 | 324 | [ Christos Trochalakis ] 325 | * debian/rules, debian/nginx-common.dirs, 326 | debian/debian-common.nginx.logrotate: 327 | + Switch to dh_installlogrotate. 328 | * debian/rules: 329 | + *-stamp files are deleted by dh_clean. 330 | + Remove unused mime-types target. 331 | + Remove not needed config.sub and config.guess targets. 332 | * debian/nginx-common.dirs: 333 | + Don't ship an empty /run dir. 334 | * debian/nginx-{light,full,extras}.lintian-overrides: 335 | + Override false lintian spelling error warning. 336 | 337 | -- Kartik Mistry Wed, 16 Oct 2013 14:58:11 +0530 338 | 339 | nginx (1.4.3-1) unstable; urgency=low 340 | 341 | [ Cyril Lavier ] 342 | * debian/nginx-naxsi-ui.postinst, debian/nginx-naxsi-ui.preinst: 343 | + Added missing arguments to have clean postinst/preinst scripts. 344 | * debian/conf/fastcgi_params: 345 | + Defined fastcgi param HTTPS the same as upstream default. 346 | (Closes: #712989) 347 | 348 | [ Michael Lustfield ] 349 | * conf/sites-available/default: 350 | + Removed /doc/ section per bug #715804. 351 | 352 | [ Christos Trochalakis ] 353 | * New upstream release. (Closes: #722640) 354 | * debian/nginx-common.nginx.init: 355 | + Better pidfile extraction from nginx.conf. We now accept multiple 356 | spaces and tabs as a field separator. 357 | * debian/modules/nginx-auth-pam: 358 | + Fixed upstream bug. (Closes: #721702) 359 | * debian/watch: 360 | + Only check for stable releases. 361 | * debian/conf/sites-available/default: 362 | + Correctly fallback to 404 when the requested file is missing. 363 | (Closes: #724232) 364 | * debian/logrotate: 365 | + Gracefully handle empty pidfile in logrotate script. 366 | (Closes: #696797) 367 | 368 | [ Kartik Mistry ] 369 | * Switch to dh-systemd (Closes: #713853) 370 | 371 | -- Kartik Mistry Thu, 10 Oct 2013 17:28:56 +0530 372 | 373 | nginx (1.4.1-3) unstable; urgency=low 374 | 375 | [ Kartik Mistry ] 376 | * debian/control: 377 | + Changed libgd2-dev build-dep to libgd2-dev|libgd2-noxpm-dev allow 378 | backporting (Closes: #711505) 379 | 380 | [ Cyril Lavier ] 381 | * debian/nginx-naxsi-ui.preinst 382 | + Added argument "install" to the preinst script. (Closes: #711590) 383 | 384 | -- Kartik Mistry Sun, 09 Jun 2013 13:07:52 +0530 385 | 386 | nginx (1.4.1-2) unstable; urgency=medium 387 | 388 | [ Kartik Mistry] 389 | * Urgency set to medium due to Security and RC bugs. 390 | * debian/conf/sites-available/default: 391 | + Fixed typo in listen ipv6only=on (Closes: #707684) 392 | 393 | [ Cyril Lavier ] 394 | * debian/control: 395 | + Replaced the build-dep libgd2-noxpm-dev to libgd2-dev as part of 396 | the libgd2-{xpm,noxpm}-dev -> libgd2-dev transition. 397 | * debian/nginx-naxsi-ui.preinst, debian/nginx-naxsi-ui.postinst, 398 | debian/conf/naxsi-ui.conf.1.4.1: 399 | + Added preinst script and renamed the new config file to avoid 400 | prompting the user. (Closes: #707291) 401 | * debian/rules: 402 | + Made "debian/rules binary" enough to build binary package. 403 | (Closes: #708522) 404 | 405 | -- Kartik Mistry Thu, 06 Jun 2013 12:55:23 +0530 406 | 407 | nginx (1.4.1-1) unstable; urgency=low 408 | 409 | * New upstream release: 410 | + Fixes arbitrary code execution (CVE-2013-2028). 411 | * Uploaded to unstable. 412 | * debian/control: 413 | + Updated Standards-Version to 3.9.4 414 | 415 | -- Kartik Mistry Tue, 07 May 2013 19:53:46 +0530 416 | 417 | nginx (1.4.0-2) experimental; urgency=low 418 | 419 | [ Ondřej Surý ] 420 | * debian/modules/: 421 | + Updated nginx-echo, nginx-cache-purge and naxsi modules. 422 | + Removed useless .gitignore, .gitmodules files. 423 | 424 | [ Kartik Mistry ] 425 | * debian/modules/nginx-upload: 426 | + This module no longer works with 1.3.x and above. Removed as of now. 427 | * debian/modules/ngx-fancyindex: 428 | + Added Fancy Indexes module (Closes: #704210) 429 | * debian/copyright: 430 | + Fixed path for modules in Files: field. 431 | + Updated copyright for debian/* 432 | * debian/rules: 433 | + Enabled spdy module (Closes: #706195). 434 | * debian/control: 435 | + Suggests: fcgiwrap (Closes: #701508). 436 | 437 | [ Cyril Lavier ] 438 | * debian/conf/naxsi-ui.conf: 439 | + Added configuration file for nginx-naxsi-ui using SQLite 440 | (Closes: #699678). 441 | * debian/nginx-naxsi-ui.config, debian/nginx-naxsi-ui.postinst, 442 | debian/nginx-naxsi-ui.postrm, debian/nginx-naxsi-ui.prerm, 443 | debian/nginx-naxsi-ui.templates: 444 | + Removed these files as they are not necessary anymore with the 445 | database engine switching from MySQL to SQLite. 446 | * debian/control: 447 | + Removed dependencies against MySQL. 448 | * debian/rules, debian/modules/ngx_http_substitutions_filter_module, 449 | debian/README.Modules-versions: 450 | + Added http_substitutions_filter module. (Closes: #706456) 451 | 452 | -- Kartik Mistry Wed, 01 May 2013 10:48:43 +0530 453 | 454 | nginx (1.4.0-1) experimental; urgency=low 455 | 456 | [ Kartik Mistry ] 457 | * New upstream release (Closes: #706127). 458 | * debian/rules, debian/modules/: 459 | + Removed chunkin-nginx-module as it no longer supported for nginx 1.3.9+ 460 | + Updated nginx-lua module to 0.8.0 461 | + Patched nginx-upload module as described in modules/README file. 462 | * Refreshed debian/patches/perl-use-dpkg-buildflags.patch 463 | * debian/logrotate: 464 | + Set default log to keep for 52 weeks instead of 52 days. Thanks to 465 | RjY for patch (Closes: #696440) 466 | * debian/rules: 467 | + Added cache purge module to nginx-extras. 468 | * debian/control: 469 | + Suggests: nginx-docs. Thanks to colliar for 470 | reporting bug (Closes: #702923) 471 | * debian/copyright: 472 | + Updated copyright year. 473 | + Fixed broken license text. 474 | 475 | [ Michael Lustfield ] 476 | * debian/conf/sites-available/default: 477 | + Added ipv6_only=on to default server block. (Closes: #700857) 478 | + Added default_server to ipv4 default server block. Now matches ipv6. 479 | * debian/rules: 480 | + Removed obsolete --with-md5 and --with-sha1 481 | 482 | -- Kartik Mistry Thu, 25 Apr 2013 12:51:45 +0530 483 | 484 | nginx (1.2.6-1) unstable; urgency=low 485 | 486 | [ Kartik Mistry ] 487 | * New upstream release. 488 | * debian/nginx-common.nginx.init: 489 | + Used log_*_msg instead of echo for better init messages. 490 | + Added patch to check start-stop-daemon exit status, Thanks to 491 | Sergey B Kirpichev (Closes: #695374). 492 | * debian/po/ja.po: 493 | + Added new Japanese translation. Thanks to victory 494 | (Closes: #692481). 495 | * debian/po/pt_BR.po: 496 | + Added new Brazilian Portuguese translation. Thanks to 497 | Adriano Rafael Gomes (Closes: #692481). 498 | 499 | [ Cyril Lavier ] 500 | * debian/rules 501 | + Added RealIP module in nginx-naxsi (Closes: #693302). 502 | * debian/modules/nginx-cache-purge/ 503 | + Updated nginx-cache-purge module with the 2.0 version. 504 | * debian/modules/nginx-lua/ 505 | + Updated nginx-lua module with the 0.7.8 version. 506 | * debian/modules/nginx-echo/ 507 | + Updated the nginx-echo module with the 0.41 version. 508 | * debian/modules/headers-more-nginx-module/ 509 | + Updated the Headers-more module with the 0.19 version. 510 | * debian/modules/README.Modules-versions 511 | + Updated the current version of modules following the updates. 512 | 513 | [ Michael Lustfield ] 514 | * debian/conf/sites-available/default 515 | + Uncommented listen lines to make server block default. 516 | 517 | -- Kartik Mistry Tue, 18 Dec 2012 10:29:18 +0530 518 | 519 | nginx (1.2.4-2) unstable; urgency=low 520 | 521 | * debian/conf/nginx.conf: 522 | + Fixed pid path to /run/nginx.pid in config. 523 | * debian/po/*.po, debian/nginx-naxsi-ui.templates, debian/po/templates.pot: 524 | + Fixed ^M characters in template file. Thanks to Christian Perrier 525 | for help (Closes: #692191, #692335) 526 | 527 | -- Kartik Mistry Mon, 05 Nov 2012 13:05:34 +0530 528 | 529 | nginx (1.2.4-1) unstable; urgency=low 530 | 531 | [ Michael Lustfield ] 532 | * debian/nginx-common.nginx.init 533 | + Added --retry to start-stop-daemon. (Closes: #682360) 534 | + Added $named to Required-Start/Stop. (Closes: #679879) 535 | + Added some other modifications after testing. (LP: #1033856) 536 | * debian/rules: 537 | + Added -DFORTIFY_SOURCE=2 -fstack-protector to build flags. 538 | (Closes: #680712) 539 | * debian/nginx-common.install: 540 | + Moved default docs to /usr/share/nginx/html. (Closes: #1031515) 541 | * debian/rules: 542 | + Set prefix to /usr/share/nginx. 543 | * debian/po/fr.po 544 | + Updated French translation file. (Closes: #679601) 545 | * debian/logrotate: 546 | + Removed semicolon after an fi statement. (Closes: #683870) 547 | * debian/copyright: 548 | + Removed trailing slash from File: fields. 549 | * Changed /var/run to /run in multiple files. (LP: #1050516) 550 | * debian/nginx-common.dirs: 551 | + Added /run to .dirs to avoid conflicts with backports. (LP: #1072641) 552 | * debian/nginx-*.postinst: 553 | + Added sites-enabled/available directory checks. (Closes: #688410) 554 | - Thanks Andreas Marschke 555 | + Moved the symlink creation to nginx-common. 556 | * Updated debconf templates. 557 | * conf/sites-available/default: 558 | + Updated root to point at /usr/share/nginx/html instead of www. 559 | 560 | [ Kartik Mistry ] 561 | * Acknowledged NMUs (Closes: #681758, #681381) 562 | * New upstream release (Closes: #683704) 563 | * debian/po/*.po: 564 | + Removed ^M characters from headers. 565 | + Fixed all files with recent unneeded template change. 566 | 567 | -- Kartik Mistry Tue, 30 Oct 2012 10:10:34 +0530 568 | 569 | nginx (1.2.1-2.2) unstable; urgency=low 570 | 571 | * Non-maintainer upload. 572 | * Fix "removes files that were installed by another package": 573 | don't remove directories that are owned by (and removed from) nginx-common 574 | from nginx-extras.postrm. This seems to have been the idea in commit e30a854 575 | ("Moved configuration purging to nginx-common.") except that it was added 576 | in nginx-common.postrm without being removed in nginx-extras.postrm. 577 | Remove nginx-extras.postrm since it's empty after this change. 578 | (Closes: #681758) 579 | 580 | -- gregor herrmann Sat, 04 Aug 2012 18:13:10 +0200 581 | 582 | nginx (1.2.1-2.1) unstable; urgency=low 583 | 584 | * Non-maintainer upload to deal with the goal of 100% translated 585 | debconf templates for 7 languages in wheezy. 586 | * Drop nasty ^M characters from the templates file. They break 587 | debconf-updatepo and therefore translations. Closes: #681381 588 | * As a consequence, fix translations as some of them had been 589 | "updated" in the meantime wrt broken templates 590 | 591 | -- Christian Perrier Thu, 12 Jul 2012 21:23:57 +0200 592 | 593 | nginx (1.2.1-2) unstable; urgency=medium 594 | 595 | [Cyril Lavier] 596 | * Urgency set to medium, security bug in naxsi module, fix via upstream. 597 | * debian/modules/naxsi: 598 | + Updated naxsi module to version 0.46-1 fixing the following security 599 | issue : potential file disclosure in nx_extract. 600 | 601 | -- Cyril Lavier Wed, 27 Jun 2012 13:52:03 +0200 602 | 603 | nginx (1.2.1-1) unstable; urgency=medium 604 | 605 | [Kartik Mistry] 606 | * Urgency set to medium, RC bug fix. 607 | * New upstream release (Closes: #677396) 608 | * debian/nginx.1: 609 | + Updated with description taken from debian/control. 610 | * debian/po/cs.po: 611 | + Added Czech translation of PO debconf template. 612 | (Closes: #673120, #678659) 613 | * debian/po/da.po: 614 | + Added Danish translation of PO debconf template. 615 | (Closes: #674461, #677806) 616 | * debian/po/it.po: 617 | + Added Italian translation of PO debconf template. (Closes: #679185) 618 | * debian/po/nl.po: 619 | + Added Dutch translation of PO debconf template. (Closes: #675314) 620 | * debian/po/pl.po: 621 | + Added Polish translation of PO debconf template. (Closes: #678156) 622 | * debian/po/pt.po: 623 | + Added Portuguese translation of PO debconf template. 624 | (Closes: #674609, #679149) 625 | * debian/po/sk.po: 626 | + Added Slovak translation of PO debconf template. (Closes: #677282) 627 | * debian/po/sv.po: 628 | + Added Swedish translation of PO debconf template. 629 | (Closes: #675107, #677032) 630 | * debian/copyright: 631 | + Removed duplicate Copyright fields. 632 | * debian/modules/nginx-lua: 633 | + Updated to latest upstream git tag 0.5.0rc29-6446ee71b8, Fix for worker 634 | process crashes (Closes: #674928) 635 | * debian/nginx-naxsi-ui.templates, debian/po/templates.pot: 636 | + Updated debconf template after review from l10n-english team. 637 | (Closes: #675237) 638 | + Do not add empty line. 639 | * debian/po/*.po: 640 | + Refreshed after template update. 641 | 642 | [Cyril Lavier] 643 | * debian/rules: 644 | + Added status module to nginx-naxsi. (Closes: #672998) 645 | * debian/control: 646 | + Updated nginx-naxsi module list. 647 | + Updated nginx-full module list. (Closes: #677128) 648 | * debian/po/de.po: 649 | + Added German translation of PO debconf template. 650 | (Closes: #673861, #677790) 651 | * debian/po/ru.po: 652 | + Added Russian translation of PO debconf template. (Closes: #674188) 653 | * debian/po/es.po: 654 | + Added Spanish translation of PO debconf template. (Closes: #678915) 655 | * debian/po/gl.po: 656 | + Added Galician translation of PO debconf template. (Closes: #678910) 657 | * debian/nginx-naxsi-ui.postrm, debian/nginx-naxsi-ui.prerm: 658 | + Added postrm and prerm scripts for nginx-naxsi-ui. (Closes: #673787) 659 | 660 | [Michael Lustfield] 661 | * debian/nginx-common.preinst: 662 | + Copied install stuff to upgrade in case statement. (LP: #1014506) 663 | * debian/rules 664 | + Added --with-pcre-jit to build. (LP: #915344) 665 | * debian/conf/sites-available/default: 666 | + Changed default try_files example. (LP: #969207) 667 | * debian/nginx-*.postrm: 668 | + Changed a few things so files are only purged on purge. (Closes: #678060) 669 | - Thanks Jeroen Dekkers 670 | 671 | -- Kartik Mistry Wed, 27 Jun 2012 09:24:50 +0530 672 | 673 | nginx (1.2.0-1) unstable; urgency=low 674 | 675 | [Cyril Lavier] 676 | * New upstream release. (Closes: #670306) 677 | + 1.2.x is stable release now. 678 | * debian/modules/chunkin-nginx-module: 679 | + Updated chunkin-nginx-module to v0.23rc2-3-g85eca98. 680 | * debian/modules/headers-more-module: 681 | + Updated headers-more-module to v0.17rc1-4-g33a82ed. 682 | * debian/modules/nginx-development-kit: 683 | + Updated nginx-development-kit to v0.2.17-7-g24202b4. 684 | * debian/modules/nginx-echo: 685 | + Updated nginx-echo to v0.38rc2-7-g080c0a1. 686 | * debian/modules/nginx-lua: 687 | + Updated nginx-lua to v0.5.0rc25-5-g8d28785. 688 | * debian/modules/nginx-upstream-fair: 689 | + Updated nginx-upstream-fair to a18b409. 690 | * debian/modules/nginx-upload-progress: 691 | + Updated nginx-upload-progress to v0.9.0-0-ga788dea. 692 | * debian/modules/naxsi: 693 | + Updated naxsi to 0.46 694 | * debian/modules/README.Modules-versions: 695 | + Updated versions and URLs for modules. 696 | * debian/naxsi-ui-extract, debian/naxsi-ui-intercept, 697 | debian/nginx-naxsi-ui.*, debian/naxsi-ui-extract.1, 698 | debian/naxsi-ui-intercept.1, debian/rules: 699 | + Added nginx-naxsi-ui package containing the learning daemon 700 | and the WebUI. 701 | * debian/nginx-common.nginx.default, debian/nginx-common.nginx.init: 702 | + Renamed files to be compliant with the nginx-naxsi-ui package. 703 | * debian/po: 704 | + Added needed files for using po-debconf. 705 | + Added French translation. 706 | * debian/control: 707 | + Applied the modifications given after the review by Justin Rye. 708 | 709 | [Michael Lustfield] 710 | * debian/conf/uwsgi_params: 711 | + Added UWSGI_SCHEME to uwsgi_params. (Closes: #664878) 712 | * debian/conf/sites-available/default: 713 | + Added allow directive for ipv6 localhost. (Closes: #664271) 714 | 715 | [Kartik Mistry] 716 | * debian/control: 717 | + wrap-and-sort. 718 | * debian/copyright: 719 | + Added missing copyrights, minor formatting fixes. 720 | * debian/nginx-common.nginx.init: 721 | + Added ulimit for restarts, Thanks to Daniel Roschka 722 | for patch. (Closes: #673580) 723 | * debian/conf/sites-available/default: 724 | + Added patch to fix deprecated "listen" directive, Thanks to 725 | Guillaume Plessis for patch. (Closes: #672632) 726 | 727 | -- Kartik Mistry Mon, 14 May 2012 11:15:00 +0530 728 | 729 | nginx (1.1.19-1) unstable; urgency=high 730 | 731 | [Cyril Lavier] 732 | * New upstream release. 733 | + Fixed a buffer overflow in the ngx_http_mp4_module. See: CVE-2012-2089 734 | for more details. 735 | * debian/copyright: 736 | + Updated licenses. 737 | * debian/nginx-extras.postinst, debian/nginx-full.postinst, 738 | debian/nginx-light.postinst, debian/nginx-naxsi.postinst: 739 | + Removing the debug markers. (Closes: #667894) 740 | * debian/control, debian/rules, debian/copyright, 741 | debian/modules/nginx-dav-ext-module: 742 | + Added nginx-dav-ext-module in full and extras. 743 | * debian/modules/naxsi: 744 | + Updated naxsi to the SVN snapshot (r280) to fix the licence issue with 745 | OpenSSL. 746 | 747 | [Kartik Mistry] 748 | * Misc cleanups in debian/control, debian/copyright. 749 | 750 | -- Cyril Lavier Fri, 13 Apr 2012 16:58:59 +0530 751 | 752 | nginx (1.1.18-1) unstable; urgency=low 753 | 754 | [Cyril Lavier] 755 | * New upstream release. 756 | * New binaries introduced: nginx-naxsi, nginx-naxsi-dbg. 757 | * debian/modules/nginx-cache-purge: 758 | + Added nginx cache purge 1.5 to nginx-naxsi. 759 | * debian/rules, debian/control, debian/nginx-naxsi.dirs, 760 | debian/nginx-naxsi.install, debian/nginx-naxsi.postinst, 761 | debian/nginx-naxsi.postrm, debian/nginx-naxsi.prerm, 762 | debian/modules/naxsi, debian/conf/naxsi_core.rules, 763 | debian/modules/README.Modules-versions, debian/conf/nginx.conf: 764 | + Added nginx-naxsi flavour. 765 | + Added naxsi 0.44 to nginx-naxsi. 766 | 767 | -- Cyril Lavier Thu, 29 Mar 2012 22:43:07 +0530 768 | 769 | nginx (1.1.17-2) unstable; urgency=high 770 | 771 | [Cyril Lavier] 772 | * debian/control: 773 | + Added build dependency to dpkg-dev (>= 1.15.7). (Closes: #664212) 774 | * debian/patches/perl-use-dpkg-buildflags.patch: 775 | + Added patch to harden flags for perl module (Thanks to Simon Ruderich 776 | for the patch). (Closes: #664090) 777 | 778 | [Kartik Mistry] 779 | * Set urgency due to fix for security and RC bugs with 1.17.1-1 upload. 780 | 781 | -- Cyril Lavier Sun, 18 Mar 2012 09:31:19 +0530 782 | 783 | nginx (1.1.17-1) unstable; urgency=medium 784 | 785 | [Kartik Mistry] 786 | * New upstream release. (Closes: #664137) 787 | + Fixed malformed HTTP responses. See: CVE-2012-1180 for more details. 788 | * Set urgency to medium due to security issue. 789 | 790 | [Cyril Lavier] 791 | * debian/rules: 792 | + Set NUMJOBS to 1 if no value is given 793 | + Added Auth PAM module to nginx-extras 794 | + Enable hardened flags for perl module (Thanks to Simon Ruderich for 795 | the patch) (Closes: #664090). 796 | * debian/conf/sites-available/default: 797 | + Added the fastcgi_pass for php5-fpm. (Closes: #662997) 798 | * debian/nginx-common.postrm, debian/rules, debian/nginx-common.postinst, 799 | debian/nginx-common.prerm, debian/nginx-common.service: 800 | + Added the systemd support. Thanks to Michael Stapelberg for the patch. 801 | (Closes: #662799) 802 | 803 | -- Kartik Mistry Fri, 16 Mar 2012 10:27:38 +0530 804 | 805 | nginx (1.1.16-1) unstable; urgency=low 806 | 807 | [Cyril Lavier] 808 | * Modified the parallel build to avoid random FTBFS in Ubuntu. 809 | * New upstream release. 810 | * debian/modules: 811 | + Updated nginx-upload-progress to 0.8.3-2-g03cbf1f. 812 | * debian/control: 813 | + Added myself as uploader. 814 | + Added libpam0g-dev to Build-Depends. 815 | + Use wrap-and-sort to wrap control file fields. 816 | 817 | [Michael Lustfield] 818 | * debian/nginx-common.postinst: 819 | + Changed postinst to not change permissions on all log files. 820 | (Closes: #658492) 821 | * debian/rules: 822 | + Added Auth PAM module at debian/modules/nginx-auth-pam. (Closes: #660408) 823 | 824 | [Kartik Mistry] 825 | * debian/control: 826 | + Added conflict between -dbg packages as seen by Lintian. 827 | + Updated Standards-Version to 3.9.3 828 | * debian/copyright: 829 | + Updated for copyright-format 1.0 830 | + Updated upstream copyright year and details. 831 | * debian/rules: 832 | + Moved nginx-auth-pam module to nginx-full package. 833 | 834 | -- Kartik Mistry Sun, 04 Mar 2012 10:31:21 +0530 835 | 836 | nginx (1.1.14-1) unstable; urgency=low 837 | 838 | [Cyril Lavier] 839 | * New upstream release. 840 | * debian/rules: 841 | + Resolved the lintian errors "unstripped-binary-or-object" with a 842 | cleaner correction (Thanks to Steven Chamberlain for the patch). 843 | + Added a check on the parallel building to force NUMJOBS to 1 if 844 | the value 0 is given. 845 | * debian/modules: 846 | + Updated nginx-lua module to version 0.4.1. 847 | 848 | [Kartik Mistry] 849 | * debian/rules, debian/control, debian/copyright, 850 | debian/modules/nginx-upload-module: 851 | + Added Upload module to nginx-extras, updated long description and 852 | copyright. (Closes: #654593) 853 | * debian/modules/README.modules: 854 | + Added Homepage information for some modules. 855 | * debian/rules: 856 | + Enable hardened build flags, Thanks to Moritz Muehlenhoff for patch. 857 | (Closes: #658186) 858 | 859 | -- Kartik Mistry Wed, 01 Feb 2012 17:50:05 +0530 860 | 861 | nginx (1.1.12-1) unstable; urgency=low 862 | 863 | [Kartik Mistry] 864 | * debian/control: 865 | + Set myself as Maintainer, Jose Parrella as Uploaders with approval from 866 | team. 867 | * debian/copyright: 868 | + Fixed DEP5 URL. 869 | + Updated debian/* copyright. 870 | * debian/modules: 871 | + Updated nginx-lua module to version 0.3.1rc43 872 | 873 | [Cyril Lavier] 874 | * New upstream release. 875 | * debian/conf/sites-available/default: 876 | + Added a / in the alias directive. (Closes: #653160) 877 | * debian/rules: 878 | + Added necessary lines for parallel building. 879 | 880 | -- Kartik Mistry Sun, 01 Jan 2012 17:21:02 +0530 881 | 882 | nginx (1.1.11-1) unstable; urgency=low 883 | 884 | [Kartik Mistry] 885 | * New upstream release. 886 | * debian/control: 887 | + Set priority to extra for nginx-light and nginx-extras binaries 888 | (Policy: Section 2.5) 889 | * debian/patches/607418-ipv6-addresses.diff: 890 | + Removed. Merged upstream with 1.1.9 release. 891 | * debian/copyright: 892 | + Updated upstream copyright year, updated Michael's email address, misc 893 | changes for format. 894 | 895 | [Michael Lustfield] 896 | * debian/conf/fastcgi_params: 897 | + Changed $server_https to $https per new feature in 1.1.11. 898 | * debian/conf/nginx.conf: 899 | + Removed map for $server_https as it's no longer needed. 900 | 901 | -- Kartik Mistry Wed, 14 Dec 2011 09:45:40 +0530 902 | 903 | nginx (1.1.8-2) unstable; urgency=low 904 | 905 | * debian/modules/chunkin-nginx-module: 906 | + Reinclude HttpChunkin Module with new upstream version (closes: #638814) 907 | * debian/control: 908 | + Add myself to uploaders list. 909 | 910 | -- Dmitry E. Oboukhov Thu, 24 Nov 2011 14:16:50 +0530 911 | 912 | nginx (1.1.8-1) unstable; urgency=low 913 | 914 | [Kartik Mistry] 915 | * New upstream release. 916 | * debian/modules/chunkin-nginx-module: 917 | + Removed as of now, as it breaks with Perl 5.14 (Closes: #649061) 918 | 919 | [Michael Lustfield] 920 | * debian/control: 921 | + Added Map module to nginx-light modules list. 922 | * debian/rules: 923 | + Removed --without-http_map_module form nginx-light. 924 | * debian/nginx-common.install: 925 | + Changed ufw profile installation (LP: #825349). 926 | - debian/ufw.profile -> debian/ufw/nginx. 927 | * debian/nginx-common.preinst: 928 | + Cleanup of moved nginx profile. 929 | * debian/conf/nginx.conf: 930 | + Added a default map for $server_https (on|off). 931 | * debian/conf/fastcgi_params: 932 | + Pass HTTPS so $_SERVER['HTTPS'] is set (LP: #857831). 933 | * debian/conf/mime.types: 934 | + Added json type (LP: #883440). 935 | * debian/conf/sites-available/default: 936 | + Added notes about PHP (Closes: #642995). 937 | + Changed location /doc from root to alias. 938 | + Changed location /doc to /doc/ for people that don't bother reading or 939 | learning anything about Nginx configuration files (LP: #840358). 940 | 941 | -- Kartik Mistry Fri, 18 Nov 2011 23:44:00 +0530 942 | 943 | nginx (1.1.4-2) unstable; urgency=low 944 | 945 | [Kartik Mistry] 946 | * debian/modules: 947 | + Updated nginx-upload-progress module, Thanks to upstream for fixing issue 948 | that FTBFS nginx on kFreeBSD-* archs. 949 | + Updated nginx-lua module to latest upstream. 950 | 951 | -- Kartik Mistry Mon, 26 Sep 2011 10:17:04 +0530 952 | 953 | nginx (1.1.4-1) unstable; urgency=low 954 | 955 | [Kartik Mistry] 956 | * New upstream release. 957 | * debian/rules: 958 | + Added 'HTTPStubStatus' module in nginx-light also (Closes: #639661). 959 | + Added 'HTTP MP4' module in nginx-extras. (Closes: #642022). 960 | * Add new modules, Thanks to Dmitry E. Oboukhov : 961 | + NginxHttpHeadersMore Module (closes: #638820). 962 | + HttpChunkin Module (closes: #638814). 963 | * Renamed debian/modules/versions to debian/modules/README.modules-version, 964 | added missing homepage and version information. 965 | 966 | -- Kartik Mistry Sun, 25 Sep 2011 13:44:48 +0530 967 | 968 | nginx (1.1.2-1) unstable; urgency=low 969 | 970 | [ Kartik Mistry ] 971 | * New upstream release 972 | * debian/control: 973 | + Added missing 'http-push' module in long description of nginx-extras. 974 | (Closes: #638924) 975 | + Removed 'File AIO' module from description, which we don't provide. 976 | (Closes: #639360) 977 | + Added 'HTTP Sub Module' in long description of nginx-extras, nginx-full. 978 | + Updated Breaks/Replaces fields. 979 | 980 | [ Michael Lustfield ] 981 | * debian/copyright: 982 | + Updated email address for Michael Lustfield 983 | * debian/control: 984 | + Updated email address for Michael Lustfield 985 | + Updated Breaks on nginx-common to address conflicting versions 986 | 987 | -- Kartik Mistry Wed, 07 Sep 2011 12:15:36 +0530 988 | 989 | nginx (1.1.0-1) unstable; urgency=low 990 | 991 | [ Kartik Mistry ] 992 | * New upstream release 993 | * debian/control: 994 | + Added 'Upload Progress' module in long description of nginx-extras 995 | (Closes: #635313) 996 | * debian/rules, debian/modules: 997 | + Removed deprecated module: nginx-secure-download 998 | * debian/modules: 999 | + Updated nginx-lua module to version: v0.2.1rc2 1000 | + Updated nginx-echo module to version: v0.37rc1 1001 | 1002 | -- Kartik Mistry Tue, 02 Aug 2011 20:06:43 +0530 1003 | 1004 | nginx (1.0.5-1) unstable; urgency=low 1005 | 1006 | * New upstream release 1007 | * debian/control: 1008 | + nginx Depends on either nginx-full or nginx-light, Thanks to 1009 | Hans van Kranenburg (Closes: #633879) 1010 | * debian/copyright: 1011 | + Updated to latest DEP-5 specification 1012 | + Added some missing copyrights for modules 1013 | + Updated copyright years 1014 | 1015 | -- Kartik Mistry Wed, 20 Jul 2011 10:16:45 +0530 1016 | 1017 | nginx (1.0.4-1) unstable; urgency=low 1018 | 1019 | * New upstream release 1020 | * debian/*.lintian-overrides, debian/rules: 1021 | + Removed unused lintian for missing manpages 1022 | 1023 | -- Kartik Mistry Wed, 01 Jun 2011 19:12:25 +0530 1024 | 1025 | nginx (1.0.1-1) unstable; urgency=low 1026 | 1027 | * New upstream release 1028 | * debian/rules: 1029 | + Removed if surrounding copy of man/ as it is required for builds. 1030 | + Added nginx-upload-progress to nginx-extras. (Closes: #618306) 1031 | + Added nginx-secure-downloads to nginx-extras. (Closes: #622268) 1032 | + Added --prefix to configure command. (Closes: #619482) 1033 | * debian/modules: 1034 | + Added nginx-upload-progress/*. 1035 | + Added nginx-secure-download/*. 1036 | + Updated nginx-lua/*. 1037 | + Updated versions. 1038 | * debian/control: 1039 | + Added libmhash-dev build dependency. 1040 | + Updated Standards-Version to 3.9.1. 1041 | 1042 | -- Michael Lustfield Mon, 09 May 2011 00:36:54 +0530 1043 | 1044 | nginx (1.0.0-2) unstable; urgency=low 1045 | 1046 | * debian/rules: 1047 | + Removed --with-file-aio support. Fixed FTBFS on kFreeBSD-* arch 1048 | (Closes: #621882) 1049 | 1050 | -- Kartik Mistry Sat, 16 Apr 2011 13:47:58 +0530 1051 | 1052 | nginx (1.0.0-1) unstable; urgency=low 1053 | 1054 | [Kartik Mistry] 1055 | * New upstream release: 1056 | + Removed debian/patches/609343-log-time-iso8601.diff, merged upstream. 1057 | * debian/rules: 1058 | + Fixed: FTBFS on sparc64, detects sparc64 as sparc. Thanks to 1059 | Aurelien Jarno (Closes: #617924) 1060 | * debian/watch: 1061 | + Updated for 1.x.x release 1062 | 1063 | [Michael Lustfield] 1064 | * debian/rules: 1065 | + Added Echo module back to nginx-full. (LP: #735622) 1066 | + Moved nginx-push-0.96 to nginx-http-push. 1067 | * debian/modules: 1068 | + Updated nginx-development-kit. 1069 | + Updated nginx-echo. 1070 | + Updated nginx-http-push. 1071 | + Updated nginx-lua. 1072 | + Updated nginx-upstream-fair. 1073 | + Added versions to track module versions. 1074 | * debian/conf/fastcgi_params: 1075 | + Changed $document_root$fastcgi_script_name to $request_filename. 1076 | 1077 | -- Kartik Mistry Thu, 14 Apr 2011 10:41:08 +0530 1078 | 1079 | nginx (0.8.54-4) unstable; urgency=low 1080 | 1081 | [Micheal Lustfield] 1082 | * debian/nginx-{full,light,extras}.default: 1083 | + Added comment about alternative to ULIMIT. 1084 | * debian/nginx-{full,light,extras}.init.d: 1085 | + Added quotes around a test variable. (Closes: #610946, LP: #699736) 1086 | * debian/patches/609343-log-time-iso8601.diff: 1087 | + Added patch to add $time_iso8601 variable to logs. (Closes: #609343) 1088 | * Clean up old logrotate files. (Closes: #608983, Closes: #610289) 1089 | + Added Files: 1090 | - debian/nginx-common.preinst 1091 | + Modified Files: 1092 | - debian/rules 1093 | + Moved debian/nginx-common.logrotate to debian/logrotate. 1094 | * Added common files to nginx-common package. (Closes: #610290) 1095 | + Removed Files: 1096 | - debian/nginx-full.dirs 1097 | - debian/nginx-light.dirs 1098 | - debian/nginx-full.install 1099 | - debian/nginx-light.install 1100 | - debian/nginx-extras.install 1101 | - debian/nginx.* 1102 | + Added Files: 1103 | - debian/nginx-common.default 1104 | - debian/nginx-common.dirs 1105 | - debian/nginx-common.init.d 1106 | - debian/nginx-common.install 1107 | - debian/nginx-common.manpages 1108 | - debian/logrotate 1109 | + Modified Files: 1110 | - debian/nginx-extras.dirs 1111 | - debian/control 1112 | - debian/rules 1113 | * debian/nginx-*.install: (Closes: #609797) 1114 | + Removed NEWS.Debian from nginx-{full,light,extras}.install. 1115 | + Added NEWS.Debian to nginx-common.install. 1116 | * nginx-common.postinst: 1117 | + Enforce /var/log/nginx mode and user:group. (Closes: #610983) 1118 | + Enforce /var/log/nginx/*.log mode and user:group. (Closes: #612832) 1119 | * debian/rules: 1120 | + Added --with-file-aio to nginx-extras. (Closes: #613175) 1121 | + Removed split clients and user id modules from nginx-light. 1122 | * debian/conf/sites-available/default: 1123 | + Fixed a minor typo ( s/Quickstart/QuickStart/ ). (Closes: #613355) 1124 | * debian/conf/mime.types: 1125 | + Changed xml type to application/xhtml+xml. (Closes: #613851) 1126 | * debian/help/docs/fcgiwrap: 1127 | + Removed Ubuntu specific line in docs. (Closes: #614987) 1128 | * debian/conf/sites-available/default: 1129 | + Fixed a pointer to a file. (Closes: #614980) 1130 | 1131 | [Kartik Mistry] 1132 | * debian/*.lintian-overrides: 1133 | + Add Lintian overrides for nginx man page. We've manpage in nginx-common 1134 | binary 1135 | 1136 | -- Michael Lustfield Thu, 03 Mar 2011 23:39:07 +0530 1137 | 1138 | nginx (0.8.54-3) unstable; urgency=low 1139 | 1140 | * debian/control: 1141 | + Added Breaks: and Replaces: to nginx packages. (Closes: #609254) 1142 | * debian/rules: 1143 | + Adding SSL support to nginx-light. (Closes: #609134) 1144 | + Adding HTTP Addition module to nginx-full and nginx-extras. (Closes: #609411) 1145 | + Added HTTP Push module to nginx-extras. (LP: #694456) 1146 | 1147 | -- Michael Lustfield Tue, 11 Jan 2011 05:27:39 -0600 1148 | 1149 | nginx (0.8.54-2) unstable; urgency=low 1150 | 1151 | * Do not install nginx.8 man page in debug packages (Closes: #608633) 1152 | 1153 | -- Kartik Mistry Sun, 02 Jan 2011 18:46:03 +0530 1154 | 1155 | nginx (0.8.54-1) unstable; urgency=low 1156 | 1157 | [ Michael Lustfield ] 1158 | * Added ipv6 patch. (Closes: #607418) 1159 | + Edited files: 1160 | - src/http/ngx_http_request.c 1161 | * Added ulmit patches. (Closes: #606094) 1162 | + Added files: 1163 | - debian/nginx-full.default 1164 | - debian/nginx-light.default 1165 | - debian/nginx-extras.default 1166 | + Edited files: 1167 | - debian/nginx-full.init.d 1168 | - debian/nginx-light.init.d 1169 | - debian/nginx-extras.init.d 1170 | * Added perl module to nginx-extras. (Closes: #598461) 1171 | + debian/rules: 1172 | - Added --with-http_perl_module to nginx-extras. 1173 | + debian/control: 1174 | - Added libperl-dev build dependency. 1175 | + debian/nginx-extras.install: 1176 | - Added perl install files 1177 | + debian/nginx-extras.dirs: 1178 | - Added directory to install perl files. 1179 | * debian/rules: 1180 | + Added ifeq to handle nginx.8 (man page) if it exists in the source. 1181 | * debian/control: 1182 | + Added descriptions to make clear the differences between nginx packages. 1183 | * Removed patches: 1184 | + debian/patches/nginx-echo.diff 1185 | - Put source into debian/patches/. 1186 | + debian/patches/nginx-upstream-fair.diff 1187 | - Put source into debian/patches/. 1188 | + debian/patches/dlopen.diff 1189 | - Patch no longer relevant. 1190 | * Added modules: 1191 | + debian/modules/nginx-development-kit 1192 | + debian/modules/nginx-upstream-fair 1193 | + debian/modules/nginx-echo 1194 | + debian/modules/nginx-lua 1195 | * Split Nginx into multiple variations of the package. 1196 | + Added files for nginx-full: 1197 | - debian/nginx-full.install 1198 | - debian/nginx-full.dirs 1199 | - debian/nginx-full.logrotate 1200 | - debian/nginx-full.init.d 1201 | - debian/nginx-full.postinst 1202 | - debian/nginx-full.prerm 1203 | - debian/nginx-full.postrm 1204 | + Added files for nginx-light: 1205 | - debian/nginx-light.install 1206 | - debian/nginx-light.dirs 1207 | - debian/nginx-light.logrotate 1208 | - debian/nginx-light.init.d 1209 | - debian/nginx-light.postinst 1210 | - debian/nginx-light.prerm 1211 | - debian/nginx-light.postrm 1212 | + Added files for nginx-extras: 1213 | - debian/nginx-extras.install 1214 | - debian/nginx-extras.dirs 1215 | - debian/nginx-extras.logrotate 1216 | - debian/nginx-extras.init.d 1217 | - debian/nginx-extras.postinst 1218 | - debian/nginx-extras.prerm 1219 | - debian/nginx-extras.postrm 1220 | + Removed files for nginx: 1221 | - debian/nginx.install 1222 | - debian/nginx.dirs 1223 | - debian/nginx.logrotate 1224 | - debian/init.d 1225 | - debian/postinst 1226 | - debian/prerm 1227 | - debian/postrm 1228 | + Updated debian/rules: 1229 | - Modified rules to create extra packages. 1230 | + Updated debian/control: 1231 | - Added packages for nginx-{full,light,extras}. 1232 | - Added packages for nginx-{full,light,extras}-dbg. 1233 | - Changed nginx to a dummy package selecting nginx-full. 1234 | 1235 | [Kartik Mistry] 1236 | * debian/control: 1237 | + Added doc section for nginx-doc 1238 | + Wrapped some long descriptions, updated short descriptions 1239 | + Added perl:Depends for nginx-extras 1240 | * debian/rules: 1241 | + Fixed dh_installchangelogs, dh_compress 1242 | 1243 | -- Michael Lustfield Thu, 30 Dec 2010 14:15:26 +0530 1244 | 1245 | nginx (0.8.53-2) unstable; urgency=low 1246 | 1247 | [Kartik Mistry] 1248 | * debian/conf/mime.types: 1249 | + Added html5 codecs support (Closes: #605212) 1250 | * debian/conf/fastcgi_params: 1251 | + Fixed typo (Closes: #605582) 1252 | 1253 | [Michael Lustfield] 1254 | * debian/conf/nginx.conf: 1255 | + Reduced worker_connections to 768 (Closes: #605529) 1256 | * Add an nginx site management script to nginx-doc. (Closes: #593580) 1257 | + debian/help/examples/nginx_modsite: Added. 1258 | * debian/nginx.logrotate: 1259 | + Added prerotate chunk for awstats. (Closes: #590098) 1260 | * debian/copyright: 1261 | + Added Michael Lustfield 1262 | * Created nginx-doc: 1263 | + Added 'Package: nginx-doc' section to debian/control 1264 | + Moved debian/nginx.examples -> debian/nginx-doc.examples 1265 | + Moved debian/nginx.docs -> debian/nginx-doc.docs 1266 | 1267 | -- Kartik Mistry Mon, 06 Dec 2010 11:26:22 +0530 1268 | 1269 | nginx (0.8.53-1) unstable; urgency=low 1270 | 1271 | [Kartik Mistry] 1272 | * debian/control: 1273 | + Added Michael Lustfield as co-maintainer 1274 | * nginx.conf: 1275 | + No need to use regex in gzip_disable for msie6, Thanks to António P. P. 1276 | Almeida (Closes: #592147) 1277 | * conf/sites-available/default: 1278 | + Fixed typo for "include fastcgi", Thanks to Mostafa Ghadamyari 1279 | (Closes: #593142, #593143) 1280 | * debian/patches/fix_reloading_ipv6.diff: 1281 | + Removed, merged upstream 1282 | * debian/init.d: 1283 | + Added fix to control nginx by user in a simple way by setting DAEMON 1284 | variable to an invalid name in /etc/default/nginx. Patch by Toni Mueller 1285 | (Closes: #594598) 1286 | * debian/NEWS.Debian: 1287 | + Updated news for 0.8.x as stable branch 1288 | 1289 | [Michael Lustfield] 1290 | * New upstream release (Closes: #602970) 1291 | + 0.8.x branch is declared stable by upstream now 1292 | * Add a UFW profile set: 1293 | + debian/nginx.ufw.profile: Added. 1294 | + debian/control: nginx: Suggests ufw. 1295 | + debian/dirs: Add 'etc/ufw/applications.d' 1296 | + debian/rules: Add install rule for the nginx UFW profile. 1297 | * Moved debian/dirs to debian/nginx.dirs 1298 | * Added types_hash_max_size to nginx.conf 1299 | * Install simple default index.html file (Closes: #581416) 1300 | + debian/dirs: Add 'usr/share/nginx/www'. 1301 | + debian/nginx.install: Add 'html/* usr/share/nginx/www'. 1302 | * debian/patches/nginx-echo.diff: 1303 | + Added Echo module 1304 | * Added files for nginx.docs 1305 | - /usr/share/doc/nginx/ 1306 | + debian/help/docs/fcgiwrap 1307 | + debian/help/docs/php 1308 | + debian/help/docs/support-irc 1309 | + debian/help/docs/upstream 1310 | * Added files for nginx.examples 1311 | - /usr/share/doc/nginx/examples/ 1312 | + debian/help/docs/drupal 1313 | + debian/help/docs/http 1314 | + debian/help/docs/mail 1315 | + debian/help/docs/mailman 1316 | + debian/help/docs/nginx.conf 1317 | + debian/help/docs/virtual_hosts 1318 | + debian/help/docs/wordpress 1319 | * debian/conf/: 1320 | + Removed excess spaces 1321 | + Added tabs where appropriate 1322 | + Added SCRIPT_FILENAME to fastcgi_params 1323 | 1324 | -- Kartik Mistry Sat, 27 Nov 2010 21:04:02 +0530 1325 | 1326 | nginx (0.7.67-3) unstable; urgency=low 1327 | 1328 | * debian/rules: 1329 | + Readded the configure option --with-mail_ssl_module, Thanks to Roland 1330 | Rosenfeld (Closes: #590815) 1331 | * debian/control: 1332 | + Updated Standards-Version to 3.9.1 (no changes needed) 1333 | 1334 | -- Kartik Mistry Thu, 29 Jul 2010 21:41:52 +0530 1335 | 1336 | nginx (0.7.67-2) unstable; urgency=low 1337 | 1338 | * debian/conf/sites-available/default: 1339 | + Removed reference to SSLv2 protocol (Closes: #589139) 1340 | * debian/control: 1341 | + Updated Standards-Version to 3.9.0 1342 | * debian/copyright: 1343 | + Don't point to BSD license file, included exact upstream version of 1344 | license text 1345 | + Added missing copyright owner for contrib/ scripts 1346 | + debian/* license is same as upstream now as discussed with co-maintainers 1347 | 1348 | -- Kartik Mistry Mon, 19 Jul 2010 10:36:32 +0530 1349 | 1350 | nginx (0.7.67-1) unstable; urgency=low 1351 | 1352 | * New upstream release 1353 | 1354 | -- Kartik Mistry Wed, 16 Jun 2010 01:26:51 +0530 1355 | 1356 | nginx (0.7.65-7) unstable; urgency=low 1357 | 1358 | [Kartik Mistry] 1359 | * debian/rules: 1360 | + Enabled HTTPSubModule module in configure (Closes: #584828) 1361 | + Arranged configure options in better manner 1362 | 1363 | -- Kartik Mistry Mon, 07 Jun 2010 14:33:24 +0530 1364 | 1365 | nginx (0.7.65-6) unstable; urgency=low 1366 | 1367 | [Kartik Mistry] 1368 | * debian/README.Debian: 1369 | + Fixed typo and somewhat better wordings 1370 | * debian/conf/mime.types: 1371 | + Added entry to support 7zip files (Closes: #580423) 1372 | * debian/init.d: 1373 | + Do not print config testing info until an error found, Thanks to Ubuntu 1374 | bug 568293 1375 | * debian/copyright: 1376 | + Updated as per DEP-5 specification 1377 | 1378 | -- Kartik Mistry Sat, 22 May 2010 01:41:33 +0530 1379 | 1380 | nginx (0.7.65-5) unstable; urgency=low 1381 | 1382 | [Kartik Mistry] 1383 | * debian/patches/fix_reloading_ipv6.diff: 1384 | + Added patch to fix reloading with IPv6 addresses, Thanks to 1385 | Matthias-Christian Ott for patch (Closes: #577456) 1386 | 1387 | -- Kartik Mistry Wed, 14 Apr 2010 11:36:48 +0530 1388 | 1389 | nginx (0.7.65-4) unstable; urgency=low 1390 | 1391 | [Kartik Mistry] 1392 | * debian/conf/sites-available/default: 1393 | + Really listen for both IPv4 and IPv6 addresses. Thanks to Nikolaus 1394 | Schulz for notice (Closes: #574983) 1395 | * debian/control, debian/rules: 1396 | + Added GeoIP support, Thanks to Caetano Carezzato 1397 | (Closes: #575280) 1398 | * debian/conf/mime.types: 1399 | + Added svg entry to mime.types, Jeremy Lal 1400 | (Closes: #575155) 1401 | 1402 | -- Kartik Mistry Thu, 25 Mar 2010 00:21:50 +0530 1403 | 1404 | nginx (0.7.65-3) unstable; urgency=medium 1405 | 1406 | [Kartik Mistry] 1407 | * Urgency set to medium due to Release Goal 1408 | * debian/conf/sites-available/default: 1409 | + Listen for both IPv4 and IPv6 addresses by default (Closes: #574983) 1410 | 1411 | -- Kartik Mistry Tue, 23 Mar 2010 10:30:18 +0530 1412 | 1413 | nginx (0.7.65-2) unstable; urgency=low 1414 | 1415 | * debian/README.Debian: 1416 | + Added explanation about not installing files in /var/www/ 1417 | (Closes: #572513) 1418 | * debian/rules: 1419 | + Readded realip module support (Closes: #507419) 1420 | 1421 | -- Kartik Mistry Sat, 06 Mar 2010 13:14:48 +0530 1422 | 1423 | nginx (0.7.65-1) unstable; urgency=low 1424 | 1425 | [Kartik Mistry] 1426 | * New upstream release 1427 | * debian/init.d: 1428 | + $local_fs $remote_fs $network $syslog is what we need in Required-Start 1429 | and Required-Stop (Closes: #568238) 1430 | * debian/copyright: 1431 | + Updated package copyright year 1432 | + Updated license text to make same as upstream license 1433 | 1434 | -- Kartik Mistry Fri, 05 Feb 2010 11:20:28 +0530 1435 | 1436 | nginx (0.7.64-3) unstable; urgency=low 1437 | 1438 | [Kartik Mistry] 1439 | * debian/conf/sites-available/default: 1440 | + Added patch to fix default virtual host, Thanks to Thomas Venieris 1441 | (Closes: #564726) 1442 | * debian/init.d: 1443 | + Added dependency on $remote_fs in Required-Start and Required-Stop 1444 | (Closes: #566862) 1445 | * Converted package to use 3.0 (quilt) source format 1446 | * Updated to Standards-Version 3.8.4 1447 | 1448 | -- Kartik Mistry Mon, 01 Feb 2010 23:44:21 +0530 1449 | 1450 | nginx (0.7.64-2) unstable; urgency=low 1451 | 1452 | [Kartik Mistry] 1453 | * debian/rules: 1454 | + Used dh_prep instead of dh_clean -k 1455 | * debian/control: 1456 | + Added ${misc:Depends} in Depends 1457 | * Added patch for adding debug package, Thanks to Matthew Palmer 1458 | (Closes: #563339) 1459 | * debian/copyright: 1460 | + Added missing copyright owners for Debian package and fixed year and 1461 | licence doesn't point to versionless symlink 1462 | 1463 | [Fabio Tranchitella] 1464 | * debian/init.d: 1465 | + Added patch from Wouter de Bie to add $DAEMON_OPTS in 1466 | test_nginx_config() 1467 | 1468 | -- Kartik Mistry Sat, 09 Jan 2010 11:15:59 +0530 1469 | 1470 | nginx (0.7.64-1) unstable; urgency=medium 1471 | 1472 | [Kartik Mistry] 1473 | * Urgency set to medium due to security issue 1474 | * New upstream release (Closes: #557602) 1475 | + fixes SSL renegotiation vuln CVE-2009-3555 (Closes: #557873) 1476 | * debian/nginx.1: 1477 | + Corrected homepage entry (Closes: #556617) 1478 | + Minor whitespace and empty line cleanups, added SEE ALSO section. Used 1479 | .TP instead of .br, Added missing options, and this should 1480 | (Closes: #556616) 1481 | * debian/copyright: 1482 | + Used © instead of deprecated (C) symbol 1483 | + Formatted some texts 1484 | * debian/control: 1485 | + Added myself as uploader 1486 | + Wrapped and rearranged Build-Depends for better readability 1487 | * debian/patches/dlopen.dpatch: 1488 | + Fixed patch name in comment 1489 | + Added missing DP comment from changelog 1490 | * debian/rules: 1491 | + Minor fixes related to formatting of file and whitespaces 1492 | * debian/watch: 1493 | + Removed comments out of it 1494 | 1495 | -- Kartik Mistry Fri, 27 Nov 2009 11:10:18 +0530 1496 | 1497 | nginx (0.7.63-1) unstable; urgency=low 1498 | 1499 | * New upstream release. 1500 | 1501 | -- Fabio Tranchitella Sun, 08 Nov 2009 09:53:46 +0100 1502 | 1503 | nginx (0.7.62-4) unstable; urgency=low 1504 | 1505 | * debian/conf/nginx.conf: commented out the mail proxy example. 1506 | (Closes: #551682) 1507 | * debian/init.d: do not redirect the output of nginx -t. 1508 | (Closes: #551683) 1509 | 1510 | -- Fabio Tranchitella Thu, 22 Oct 2009 19:50:05 +0200 1511 | 1512 | nginx (0.7.62-3) unstable; urgency=low 1513 | 1514 | * debian/rules: fix the FTBFS on sparc. 1515 | 1516 | -- Fabio Tranchitella Fri, 16 Oct 2009 06:39:22 +0000 1517 | 1518 | nginx (0.7.62-2) unstable; urgency=low 1519 | 1520 | * debian/rules: added --with-mail and --with-mail_ssl_module. 1521 | * debian/patches/nginx-upstream-fair.dpatch: added support for the 1522 | nginx-upstream-fair module. (Closes: #521447) 1523 | * debian/patches/dlopen.dpatch: applied patch to remove the unnecesssary link 1524 | to libdl. (Closes: #540599) 1525 | 1526 | -- Fabio Tranchitella Thu, 15 Oct 2009 18:32:00 +0000 1527 | 1528 | nginx (0.7.62-1) unstable; urgency=low 1529 | 1530 | * New upstream release. 1531 | * debian/rules: added --with-ipv6. (Closes: #547249) 1532 | 1533 | -- Fabio Tranchitella Sun, 27 Sep 2009 22:25:16 +0200 1534 | 1535 | nginx (0.7.61-2) unstable; urgency=low 1536 | 1537 | * debian/control: bumped Standards-Version to 3.8.3, no changes needed. 1538 | * debian/init.d: added status action. (Closes: #541228) 1539 | * debian/rules: 1540 | - added -with-http_gzip_static_module. (Closes: #541229) 1541 | - use the switch --with-cc-opt="-m32 -mcpu=ultrasparc" on sparc. 1542 | (Closes: #543571) 1543 | 1544 | -- Fabio Tranchitella Sat, 29 Aug 2009 17:03:44 +0200 1545 | 1546 | nginx (0.7.61-1) unstable; urgency=low 1547 | 1548 | * New upstream version: 1549 | *) Bugfix: nginx could not be built --without-http-cache; the bug had 1550 | appeared in 0.7.60. 1551 | *) Bugfix: a segmentation fault occurred in worker process, if a 1552 | backend 401 error was intercepted and the backend did not set the 1553 | "WWW-Authenticate" response header line. 1554 | Thanks to Eugene Mychlo. 1555 | *) Feature: the "keepalive_requests" directive. 1556 | *) Bugfix: in open_file_cache and proxy/fastcgi cache interaction on 1557 | start up. 1558 | *) Bugfix: open_file_cache might cache open file descriptors too long. 1559 | *) Bugfix: XLST filter did not work in subrequests. 1560 | * Fix "gzip_disable in default conf for old IE", adding ignore rules for 1561 | certain MSIE versions in the default configuration (Closes: #540025) 1562 | * Fix "init.d: Config test before allowing a restart" adding a function 1563 | and calling it before reloading, restarting and starting (Closes: #539778) 1564 | * Drops path for pidof call in postinst script. 1565 | 1566 | -- Jose Parrella Wed, 05 Aug 2009 14:00:11 -0500 1567 | 1568 | nginx (0.7.59-1) unstable; urgency=low 1569 | 1570 | * New upstream release, first in Debian for the 0.7 branch. Among other 1571 | issues, it also fixes the problem with wildcard dns names used with SSL. 1572 | (Closes: #515904) 1573 | * debian/watch: updated. 1574 | * debian/postinst: fixed a bashism. (Closes: #507913) 1575 | * debian/conf/nginx.conf: removed default_type. (Closes: #509390) 1576 | * debian/control: updated Standards-Version to 3.8.1, no changes needed. 1577 | * debian/NEWS.Debian: documented the issues with 1578 | server_names_hash_bucket_size. (Closes: #524785) 1579 | 1580 | -- Fabio Tranchitella Sun, 31 May 2009 18:38:56 +0200 1581 | 1582 | nginx (0.7.14-1) experimental; urgency=low 1583 | 1584 | * New upstream release. 1585 | * Adding configtest to the init.d script (Closes: #496279) 1586 | * postinst now calls the builtin kill, so tweaks on the specific signal 1587 | calls were needed. 1588 | * Default HTML files are no longer installed. 1589 | * The default configuration file no longer requires a 50x file under 1590 | /var/www. 1591 | 1592 | -- Jose Parrella Tue, 02 Sep 2008 20:48:58 -0430 1593 | 1594 | nginx (0.6.34-2) unstable; urgency=low 1595 | 1596 | * Added support for realip module. (Closes: #507419) 1597 | 1598 | -- Fabio Tranchitella Sat, 06 Dec 2008 10:34:01 +0100 1599 | 1600 | nginx (0.6.34-1) unstable; urgency=low 1601 | 1602 | * New upstream release. 1603 | * debian/rules: removed the --with-debug configure switch. (Closes: #500891) 1604 | 1605 | -- Fabio Tranchitella Sun, 30 Nov 2008 11:37:13 +0100 1606 | 1607 | nginx (0.6.32-3) unstable; urgency=low 1608 | 1609 | * debian/control: build again on all the architectures, but use the switch 1610 | --with-cc-opt="-m32 -mcpu=ultrasparc" on sparch. (Closes: #479185) 1611 | 1612 | -- Fabio Tranchitella Thu, 25 Sep 2008 17:14:27 +0200 1613 | 1614 | nginx (0.6.32-2) unstable; urgency=low 1615 | 1616 | * debian/control: disabled support for sparc. (Closes: #479185) 1617 | 1618 | -- Fabio Tranchitella Sat, 20 Sep 2008 11:48:48 +0200 1619 | 1620 | nginx (0.6.32-1) unstable; urgency=low 1621 | 1622 | * New upstream release. 1623 | 1624 | -- Fabio Tranchitella Fri, 18 Jul 2008 09:15:58 +0200 1625 | 1626 | nginx (0.6.31-2) unstable; urgency=low 1627 | 1628 | * debian/control: removed httpd-cgi, nginx doesn't support executing 1629 | external programs. (Closes: #482332) 1630 | 1631 | -- Fabio Tranchitella Thu, 22 May 2008 08:18:52 +0200 1632 | 1633 | nginx (0.6.31-1) unstable; urgency=low 1634 | 1635 | * New upstream release. 1636 | 1637 | -- Fabio Tranchitella Mon, 12 May 2008 22:34:55 +0200 1638 | 1639 | nginx (0.6.30-2) unstable; urgency=low 1640 | 1641 | * Upload into unstable. 1642 | 1643 | -- Fabio Tranchitella Mon, 12 May 2008 14:24:53 +0200 1644 | 1645 | nginx (0.6.30-1) experimental; urgency=low 1646 | 1647 | * New upstream release. 1648 | * Sync with the unstable packages. 1649 | * debian/conf/nginx.conf: add support for a conf.d directory. 1650 | (Closes: #476952) 1651 | 1652 | -- Fabio Tranchitella Fri, 02 May 2008 09:32:46 +0200 1653 | 1654 | nginx (0.5.35-3) unstable; urgency=low 1655 | 1656 | * debian/conf/sites-available/default: adding support for /doc and /images 1657 | namespaces (Closes: #474519) 1658 | 1659 | -- Jose Parrella Mon, 07 Apr 2008 13:22:32 -0430 1660 | 1661 | nginx (0.5.35-2) unstable; urgency=low 1662 | 1663 | * debian/init.d: do not break if start-stop-daemon exits with an error. 1664 | (Closes: #464453) 1665 | 1666 | -- Fabio Tranchitella Sun, 10 Feb 2008 17:57:57 +0100 1667 | 1668 | nginx (0.5.35-1) unstable; urgency=low 1669 | 1670 | * New upstream release. 1671 | 1672 | -- Fabio Tranchitella Wed, 09 Jan 2008 07:58:56 +0100 1673 | 1674 | nginx (0.5.34-1) unstable; urgency=low 1675 | 1676 | * New upstream release. 1677 | * debian/control: added Homepage, Vcs-Svn, Vcs-Browser fields; updated 1678 | Standard-Versions to 3.7.3. 1679 | 1680 | -- Fabio Tranchitella Mon, 24 Dec 2007 12:26:27 +0100 1681 | 1682 | nginx (0.5.33-1) unstable; urgency=low 1683 | 1684 | * New stable upstream release (Closes: #451173) 1685 | * nginx now provides httpd, httpd-cgi virtual packages 1686 | (Closes: #439468, #452025) 1687 | * sites-enabled/default link is now provided only on fresh 1688 | installations (Closes: #432961) 1689 | * Updated code for online upgrading of nginx (Closes: #445246) 1690 | * Reviewed maintainer scripts for correct behaviour on updates 1691 | (Closes: #452787, #435965) 1692 | * Removed debian/nginx.links and debian/preinst. 1693 | * Changing Maintainer address to bureado@debian.org. 1694 | * Welcoming Fabio Tranchitella as an nginx 1695 | uploader for Debian. Thanks for your patches. 1696 | 1697 | -- Jose Parrella Sat, 08 Dec 2007 11:27:54 -0400 1698 | 1699 | nginx (0.5.30-1) unstable; urgency=low 1700 | 1701 | * New stable upstream release. 1702 | * Adding mime.types (and other upstream conffiles) to the package 1703 | since it was lost on 0.5.26 (Closes: #435964) 1704 | 1705 | -- Jose Parrella Sat, 04 Aug 2007 10:39:40 -0400 1706 | 1707 | nginx (0.5.26-1) unstable; urgency=low 1708 | 1709 | * New stable upstream release. 1710 | * Updating init.d usage message. 1711 | * Installing logrotate script (Closes: #397978) 1712 | 1713 | -- Jose Parrella Sun, 17 Jun 2007 20:43:35 +0100 1714 | 1715 | nginx (0.5.18-1) unstable; urgency=low 1716 | 1717 | * New upstream version (Closes: #420063) 1718 | * Adding DAV support (Closes: #415678) 1719 | * Adding support for sites-[available|enabled]/ (Closes: #419912) 1720 | 1721 | -- Jose Parrella Thu, 19 Apr 2007 21:50:37 -0400 1722 | 1723 | nginx (0.5.13-1) unstable; urgency=low 1724 | 1725 | * Adding FLV support. (Closes: #411105) 1726 | * Adding SSL support. 1727 | 1728 | -- Jose Parrella Mon, 19 Feb 2007 10:30:07 -0400 1729 | 1730 | nginx (0.5.12-2) unstable; urgency=low 1731 | 1732 | * Patching src/core/ngx_shmtx.h in order to solve FTBFS problems in 1733 | non-x86 archs (Thanks to Igor Sysoev) (Closes: #410884) 1734 | 1735 | -- Jose Parrella Wed, 14 Feb 2007 13:32:01 -0400 1736 | 1737 | nginx (0.5.12-1) unstable; urgency=low 1738 | 1739 | * New upstream version fixes FTBFS problems in non-x86 archs 1740 | (Closes: #409878) 1741 | 1742 | -- Jose Parrella Mon, 12 Feb 2007 19:37:07 -0400 1743 | 1744 | nginx (0.5.11-1) unstable; urgency=low 1745 | 1746 | * New upstream version. (Closes: #405983) 1747 | 1748 | -- Jose Parrella Sun, 5 Feb 2007 19:35:56 -0400 1749 | 1750 | nginx (0.4.13-2) unstable; urgency=low 1751 | 1752 | * Fixed default installation paths for www/ files, avoiding the 1753 | default installation of index.html in /var/www (Closes: #400103) 1754 | * Alexey Besciokov provided new postinst and prerm 1755 | scripts with the ability to reload the master binary (Closes: #398009) 1756 | 1757 | -- Jose Parrella Fri, 24 Nov 2006 07:12:46 -0400 1758 | 1759 | nginx (0.4.13-1) unstable; urgency=low 1760 | 1761 | * New upstream version 1762 | * Fixed default configuration file which made nginx to fail at 1763 | installation and purge. 1764 | 1765 | -- Jose Parrella Thu, 16 Nov 2006 22:44:33 -0400 1766 | 1767 | nginx (0.4.12-1) unstable; urgency=low 1768 | 1769 | * New upstream version (Closes: #397969) 1770 | * nginx will now compile with debugging and status support 1771 | (Closes: #397967) 1772 | * Added configuration reload support in the init.d script 1773 | (Closes: #397980) 1774 | * Added logrotate script (Closes: #397978) 1775 | * Added debian/upstream.pl as a brief helper for new 1776 | upstream version packaging. 1777 | * Thanks to Alexey Besciokov for 1778 | suggestions, bug reports and patches. 1779 | 1780 | -- Jose Parrella Sun, 12 Nov 2006 18:31:24 -0400 1781 | 1782 | nginx (0.4.2-1) unstable; urgency=low 1783 | 1784 | * Initial release (Closes: #386151) 1785 | * Tweaked the configuration file and the path handling for Debian. 1786 | 1787 | -- Jose Parrella Thu, 14 Sep 2006 11:40:20 -0400 1788 | 1789 | -------------------------------------------------------------------------------- /nginx/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /nginx/debian/conf/fastcgi.conf: -------------------------------------------------------------------------------- 1 | 2 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 3 | fastcgi_param QUERY_STRING $query_string; 4 | fastcgi_param REQUEST_METHOD $request_method; 5 | fastcgi_param CONTENT_TYPE $content_type; 6 | fastcgi_param CONTENT_LENGTH $content_length; 7 | 8 | fastcgi_param SCRIPT_NAME $fastcgi_script_name; 9 | fastcgi_param REQUEST_URI $request_uri; 10 | fastcgi_param DOCUMENT_URI $document_uri; 11 | fastcgi_param DOCUMENT_ROOT $document_root; 12 | fastcgi_param SERVER_PROTOCOL $server_protocol; 13 | fastcgi_param HTTPS $https if_not_empty; 14 | 15 | fastcgi_param GATEWAY_INTERFACE CGI/1.1; 16 | fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; 17 | 18 | fastcgi_param REMOTE_ADDR $remote_addr; 19 | fastcgi_param REMOTE_PORT $remote_port; 20 | fastcgi_param SERVER_ADDR $server_addr; 21 | fastcgi_param SERVER_PORT $server_port; 22 | fastcgi_param SERVER_NAME $server_name; 23 | 24 | # PHP only, required if PHP was built with --enable-force-cgi-redirect 25 | fastcgi_param REDIRECT_STATUS 200; 26 | -------------------------------------------------------------------------------- /nginx/debian/conf/fastcgi_params: -------------------------------------------------------------------------------- 1 | 2 | fastcgi_param QUERY_STRING $query_string; 3 | fastcgi_param REQUEST_METHOD $request_method; 4 | fastcgi_param CONTENT_TYPE $content_type; 5 | fastcgi_param CONTENT_LENGTH $content_length; 6 | 7 | fastcgi_param SCRIPT_FILENAME $request_filename; 8 | fastcgi_param SCRIPT_NAME $fastcgi_script_name; 9 | fastcgi_param REQUEST_URI $request_uri; 10 | fastcgi_param DOCUMENT_URI $document_uri; 11 | fastcgi_param DOCUMENT_ROOT $document_root; 12 | fastcgi_param SERVER_PROTOCOL $server_protocol; 13 | fastcgi_param HTTPS $https if_not_empty; 14 | 15 | fastcgi_param GATEWAY_INTERFACE CGI/1.1; 16 | fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; 17 | 18 | fastcgi_param REMOTE_ADDR $remote_addr; 19 | fastcgi_param REMOTE_PORT $remote_port; 20 | fastcgi_param SERVER_ADDR $server_addr; 21 | fastcgi_param SERVER_PORT $server_port; 22 | fastcgi_param SERVER_NAME $server_name; 23 | 24 | # PHP only, required if PHP was built with --enable-force-cgi-redirect 25 | fastcgi_param REDIRECT_STATUS 200; 26 | 27 | # To fix CGI application vulnerability - https://httpoxy.org 28 | fastcgi_param HTTP_PROXY ""; 29 | -------------------------------------------------------------------------------- /nginx/debian/conf/koi-utf: -------------------------------------------------------------------------------- 1 | 2 | # This map is not a full koi8-r <> utf8 map: it does not contain 3 | # box-drawing and some other characters. Besides this map contains 4 | # several koi8-u and Byelorussian letters which are not in koi8-r. 5 | # If you need a full and standard map, use contrib/unicode2nginx/koi-utf 6 | # map instead. 7 | 8 | charset_map koi8-r utf-8 { 9 | 10 | 80 E282AC ; # euro 11 | 12 | 95 E280A2 ; # bullet 13 | 14 | 9A C2A0 ; #   15 | 16 | 9E C2B7 ; # · 17 | 18 | A3 D191 ; # small yo 19 | A4 D194 ; # small Ukrainian ye 20 | 21 | A6 D196 ; # small Ukrainian i 22 | A7 D197 ; # small Ukrainian yi 23 | 24 | AD D291 ; # small Ukrainian soft g 25 | AE D19E ; # small Byelorussian short u 26 | 27 | B0 C2B0 ; # ° 28 | 29 | B3 D081 ; # capital YO 30 | B4 D084 ; # capital Ukrainian YE 31 | 32 | B6 D086 ; # capital Ukrainian I 33 | B7 D087 ; # capital Ukrainian YI 34 | 35 | B9 E28496 ; # numero sign 36 | 37 | BD D290 ; # capital Ukrainian soft G 38 | BE D18E ; # capital Byelorussian short U 39 | 40 | BF C2A9 ; # (C) 41 | 42 | C0 D18E ; # small yu 43 | C1 D0B0 ; # small a 44 | C2 D0B1 ; # small b 45 | C3 D186 ; # small ts 46 | C4 D0B4 ; # small d 47 | C5 D0B5 ; # small ye 48 | C6 D184 ; # small f 49 | C7 D0B3 ; # small g 50 | C8 D185 ; # small kh 51 | C9 D0B8 ; # small i 52 | CA D0B9 ; # small j 53 | CB D0BA ; # small k 54 | CC D0BB ; # small l 55 | CD D0BC ; # small m 56 | CE D0BD ; # small n 57 | CF D0BE ; # small o 58 | 59 | D0 D0BF ; # small p 60 | D1 D18F ; # small ya 61 | D2 D180 ; # small r 62 | D3 D181 ; # small s 63 | D4 D182 ; # small t 64 | D5 D183 ; # small u 65 | D6 D0B6 ; # small zh 66 | D7 D0B2 ; # small v 67 | D8 D18C ; # small soft sign 68 | D9 D18B ; # small y 69 | DA D0B7 ; # small z 70 | DB D188 ; # small sh 71 | DC D18D ; # small e 72 | DD D189 ; # small shch 73 | DE D187 ; # small ch 74 | DF D18A ; # small hard sign 75 | 76 | E0 D0AE ; # capital YU 77 | E1 D090 ; # capital A 78 | E2 D091 ; # capital B 79 | E3 D0A6 ; # capital TS 80 | E4 D094 ; # capital D 81 | E5 D095 ; # capital YE 82 | E6 D0A4 ; # capital F 83 | E7 D093 ; # capital G 84 | E8 D0A5 ; # capital KH 85 | E9 D098 ; # capital I 86 | EA D099 ; # capital J 87 | EB D09A ; # capital K 88 | EC D09B ; # capital L 89 | ED D09C ; # capital M 90 | EE D09D ; # capital N 91 | EF D09E ; # capital O 92 | 93 | F0 D09F ; # capital P 94 | F1 D0AF ; # capital YA 95 | F2 D0A0 ; # capital R 96 | F3 D0A1 ; # capital S 97 | F4 D0A2 ; # capital T 98 | F5 D0A3 ; # capital U 99 | F6 D096 ; # capital ZH 100 | F7 D092 ; # capital V 101 | F8 D0AC ; # capital soft sign 102 | F9 D0AB ; # capital Y 103 | FA D097 ; # capital Z 104 | FB D0A8 ; # capital SH 105 | FC D0AD ; # capital E 106 | FD D0A9 ; # capital SHCH 107 | FE D0A7 ; # capital CH 108 | FF D0AA ; # capital hard sign 109 | } 110 | -------------------------------------------------------------------------------- /nginx/debian/conf/koi-win: -------------------------------------------------------------------------------- 1 | 2 | charset_map koi8-r windows-1251 { 3 | 4 | 80 88 ; # euro 5 | 6 | 95 95 ; # bullet 7 | 8 | 9A A0 ; #   9 | 10 | 9E B7 ; # · 11 | 12 | A3 B8 ; # small yo 13 | A4 BA ; # small Ukrainian ye 14 | 15 | A6 B3 ; # small Ukrainian i 16 | A7 BF ; # small Ukrainian yi 17 | 18 | AD B4 ; # small Ukrainian soft g 19 | AE A2 ; # small Byelorussian short u 20 | 21 | B0 B0 ; # ° 22 | 23 | B3 A8 ; # capital YO 24 | B4 AA ; # capital Ukrainian YE 25 | 26 | B6 B2 ; # capital Ukrainian I 27 | B7 AF ; # capital Ukrainian YI 28 | 29 | B9 B9 ; # numero sign 30 | 31 | BD A5 ; # capital Ukrainian soft G 32 | BE A1 ; # capital Byelorussian short U 33 | 34 | BF A9 ; # (C) 35 | 36 | C0 FE ; # small yu 37 | C1 E0 ; # small a 38 | C2 E1 ; # small b 39 | C3 F6 ; # small ts 40 | C4 E4 ; # small d 41 | C5 E5 ; # small ye 42 | C6 F4 ; # small f 43 | C7 E3 ; # small g 44 | C8 F5 ; # small kh 45 | C9 E8 ; # small i 46 | CA E9 ; # small j 47 | CB EA ; # small k 48 | CC EB ; # small l 49 | CD EC ; # small m 50 | CE ED ; # small n 51 | CF EE ; # small o 52 | 53 | D0 EF ; # small p 54 | D1 FF ; # small ya 55 | D2 F0 ; # small r 56 | D3 F1 ; # small s 57 | D4 F2 ; # small t 58 | D5 F3 ; # small u 59 | D6 E6 ; # small zh 60 | D7 E2 ; # small v 61 | D8 FC ; # small soft sign 62 | D9 FB ; # small y 63 | DA E7 ; # small z 64 | DB F8 ; # small sh 65 | DC FD ; # small e 66 | DD F9 ; # small shch 67 | DE F7 ; # small ch 68 | DF FA ; # small hard sign 69 | 70 | E0 DE ; # capital YU 71 | E1 C0 ; # capital A 72 | E2 C1 ; # capital B 73 | E3 D6 ; # capital TS 74 | E4 C4 ; # capital D 75 | E5 C5 ; # capital YE 76 | E6 D4 ; # capital F 77 | E7 C3 ; # capital G 78 | E8 D5 ; # capital KH 79 | E9 C8 ; # capital I 80 | EA C9 ; # capital J 81 | EB CA ; # capital K 82 | EC CB ; # capital L 83 | ED CC ; # capital M 84 | EE CD ; # capital N 85 | EF CE ; # capital O 86 | 87 | F0 CF ; # capital P 88 | F1 DF ; # capital YA 89 | F2 D0 ; # capital R 90 | F3 D1 ; # capital S 91 | F4 D2 ; # capital T 92 | F5 D3 ; # capital U 93 | F6 C6 ; # capital ZH 94 | F7 C2 ; # capital V 95 | F8 DC ; # capital soft sign 96 | F9 DB ; # capital Y 97 | FA C7 ; # capital Z 98 | FB D8 ; # capital SH 99 | FC DD ; # capital E 100 | FD D9 ; # capital SHCH 101 | FE D7 ; # capital CH 102 | FF DA ; # capital hard sign 103 | } 104 | -------------------------------------------------------------------------------- /nginx/debian/conf/mime.types: -------------------------------------------------------------------------------- 1 | 2 | types { 3 | text/html html htm shtml; 4 | text/css css; 5 | text/xml xml; 6 | image/gif gif; 7 | image/jpeg jpeg jpg; 8 | application/javascript js; 9 | application/atom+xml atom; 10 | application/rss+xml rss; 11 | 12 | text/mathml mml; 13 | text/plain txt; 14 | text/vnd.sun.j2me.app-descriptor jad; 15 | text/vnd.wap.wml wml; 16 | text/x-component htc; 17 | 18 | image/png png; 19 | image/tiff tif tiff; 20 | image/vnd.wap.wbmp wbmp; 21 | image/x-icon ico; 22 | image/x-jng jng; 23 | image/x-ms-bmp bmp; 24 | image/svg+xml svg svgz; 25 | image/webp webp; 26 | 27 | application/font-woff woff; 28 | application/java-archive jar war ear; 29 | application/json json; 30 | application/mac-binhex40 hqx; 31 | application/msword doc; 32 | application/pdf pdf; 33 | application/postscript ps eps ai; 34 | application/rtf rtf; 35 | application/vnd.apple.mpegurl m3u8; 36 | application/vnd.ms-excel xls; 37 | application/vnd.ms-fontobject eot; 38 | application/vnd.ms-powerpoint ppt; 39 | application/vnd.wap.wmlc wmlc; 40 | application/vnd.google-earth.kml+xml kml; 41 | application/vnd.google-earth.kmz kmz; 42 | application/x-7z-compressed 7z; 43 | application/x-cocoa cco; 44 | application/x-java-archive-diff jardiff; 45 | application/x-java-jnlp-file jnlp; 46 | application/x-makeself run; 47 | application/x-perl pl pm; 48 | application/x-pilot prc pdb; 49 | application/x-rar-compressed rar; 50 | application/x-redhat-package-manager rpm; 51 | application/x-sea sea; 52 | application/x-shockwave-flash swf; 53 | application/x-stuffit sit; 54 | application/x-tcl tcl tk; 55 | application/x-x509-ca-cert der pem crt; 56 | application/x-xpinstall xpi; 57 | application/xhtml+xml xhtml; 58 | application/xspf+xml xspf; 59 | application/zip zip; 60 | 61 | application/octet-stream bin exe dll; 62 | application/octet-stream deb; 63 | application/octet-stream dmg; 64 | application/octet-stream iso img; 65 | application/octet-stream msi msp msm; 66 | 67 | application/vnd.openxmlformats-officedocument.wordprocessingml.document docx; 68 | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx; 69 | application/vnd.openxmlformats-officedocument.presentationml.presentation pptx; 70 | 71 | audio/midi mid midi kar; 72 | audio/mpeg mp3; 73 | audio/ogg ogg; 74 | audio/x-m4a m4a; 75 | audio/x-realaudio ra; 76 | 77 | video/3gpp 3gpp 3gp; 78 | video/mp2t ts; 79 | video/mp4 mp4; 80 | video/mpeg mpeg mpg; 81 | video/quicktime mov; 82 | video/webm webm; 83 | video/x-flv flv; 84 | video/x-m4v m4v; 85 | video/x-mng mng; 86 | video/x-ms-asf asx asf; 87 | video/x-ms-wmv wmv; 88 | video/x-msvideo avi; 89 | } 90 | -------------------------------------------------------------------------------- /nginx/debian/conf/nginx.conf: -------------------------------------------------------------------------------- 1 | user www-data; 2 | worker_processes auto; 3 | worker_rlimit_nofile 100000; 4 | pid /run/nginx.pid; 5 | 6 | events { 7 | worker_connections 4096; 8 | multi_accept on; 9 | } 10 | 11 | http { 12 | ## 13 | # EasyEngine Settings 14 | ## 15 | 16 | sendfile on; 17 | tcp_nopush on; 18 | tcp_nodelay on; 19 | keepalive_timeout 30; 20 | types_hash_max_size 2048; 21 | 22 | server_tokens off; 23 | reset_timedout_connection on; 24 | # add_header X-Powered-By "EasyEngine"; 25 | add_header rt-Fastcgi-Cache $upstream_cache_status; 26 | 27 | # Limit Request 28 | limit_req_status 403; 29 | limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s; 30 | 31 | # Proxy Settings 32 | # set_real_ip_from proxy-server-ip; 33 | # real_ip_header X-Forwarded-For; 34 | 35 | fastcgi_read_timeout 300; 36 | client_max_body_size 100m; 37 | 38 | ## 39 | # SSL Settings 40 | ## 41 | 42 | ssl_session_cache shared:SSL:20m; 43 | ssl_session_timeout 10m; 44 | ssl_prefer_server_ciphers on; 45 | ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHADHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:ECDHE-RSA-DES-CBC3-SHA:ECDHE-ECDSA-DES-CBC3-SHA:AES128-GCM-SA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!ECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA; 46 | ssl_protocols TLSv1 TLSv1.1 TLSv1.2; 47 | 48 | ## 49 | # Basic Settings 50 | ## 51 | # server_names_hash_bucket_size 64; 52 | # server_name_in_redirect off; 53 | 54 | include /etc/nginx/mime.types; 55 | default_type application/octet-stream; 56 | 57 | ## 58 | # Logging Settings 59 | ## 60 | 61 | access_log /var/log/nginx/access.log; 62 | error_log /var/log/nginx/error.log; 63 | 64 | # Log format Settings 65 | log_format rt_cache '$remote_addr $upstream_response_time $upstream_cache_status [$time_local] ' 66 | '$http_host "$request" $status $body_bytes_sent ' 67 | '"$http_referer" "$http_user_agent"'; 68 | 69 | ## 70 | # Gzip Settings 71 | ## 72 | 73 | gzip on; 74 | gzip_disable "msie6"; 75 | 76 | gzip_vary on; 77 | gzip_proxied any; 78 | gzip_comp_level 6; 79 | gzip_buffers 16 8k; 80 | gzip_http_version 1.1; 81 | gzip_types 82 | application/atom+xml 83 | application/javascript 84 | application/json 85 | application/rss+xml 86 | application/vnd.ms-fontobject 87 | application/x-font-ttf 88 | application/x-web-app-manifest+json 89 | application/xhtml+xml 90 | application/xml 91 | font/opentype 92 | image/svg+xml 93 | image/x-icon 94 | text/css 95 | text/plain 96 | text/x-component 97 | text/xml 98 | text/javascript; 99 | 100 | ## 101 | # Virtual Host Configs 102 | ## 103 | 104 | include /etc/nginx/conf.d/*.conf; 105 | include /etc/nginx/sites-enabled/*; 106 | } 107 | 108 | 109 | #mail { 110 | # # See sample authentication script at: 111 | # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript 112 | # 113 | # # auth_http localhost/auth.php; 114 | # # pop3_capabilities "TOP" "USER"; 115 | # # imap_capabilities "IMAP4rev1" "UIDPLUS"; 116 | # 117 | # server { 118 | # listen localhost:110; 119 | # protocol pop3; 120 | # proxy on; 121 | # } 122 | # 123 | # server { 124 | # listen localhost:143; 125 | # protocol imap; 126 | # proxy on; 127 | # } 128 | #} 129 | -------------------------------------------------------------------------------- /nginx/debian/conf/proxy_params: -------------------------------------------------------------------------------- 1 | proxy_set_header Host $http_host; 2 | proxy_set_header X-Real-IP $remote_addr; 3 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 4 | proxy_set_header X-Forwarded-Proto $scheme; 5 | -------------------------------------------------------------------------------- /nginx/debian/conf/scgi_params: -------------------------------------------------------------------------------- 1 | 2 | scgi_param REQUEST_METHOD $request_method; 3 | scgi_param REQUEST_URI $request_uri; 4 | scgi_param QUERY_STRING $query_string; 5 | scgi_param CONTENT_TYPE $content_type; 6 | 7 | scgi_param DOCUMENT_URI $document_uri; 8 | scgi_param DOCUMENT_ROOT $document_root; 9 | scgi_param SCGI 1; 10 | scgi_param SERVER_PROTOCOL $server_protocol; 11 | scgi_param HTTPS $https if_not_empty; 12 | 13 | scgi_param REMOTE_ADDR $remote_addr; 14 | scgi_param REMOTE_PORT $remote_port; 15 | scgi_param SERVER_PORT $server_port; 16 | scgi_param SERVER_NAME $server_name; 17 | -------------------------------------------------------------------------------- /nginx/debian/conf/sites-available/default: -------------------------------------------------------------------------------- 1 | ## 2 | # You should look at the following URL's in order to grasp a solid understanding 3 | # of Nginx configuration files in order to fully unleash the power of Nginx. 4 | # http://wiki.nginx.org/Pitfalls 5 | # http://wiki.nginx.org/QuickStart 6 | # http://wiki.nginx.org/Configuration 7 | # 8 | # Generally, you will want to move this file somewhere, and start with a clean 9 | # file but keep this around for reference. Or just disable in sites-enabled. 10 | # 11 | # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples. 12 | ## 13 | 14 | # Default server configuration 15 | # 16 | server { 17 | listen 80 default_server; 18 | listen [::]:80 default_server; 19 | 20 | # SSL configuration 21 | # 22 | # listen 443 ssl default_server; 23 | # listen [::]:443 ssl default_server; 24 | # 25 | # Self signed certs generated by the ssl-cert package 26 | # Don't use them in a production server! 27 | # include snippets/snakeoil.conf; 28 | # 29 | # ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # don’t use SSLv3 ref: POODLE 30 | # ssl_ciphers HIGH:!aNULL:!MD5; 31 | # ssl_prefer_server_ciphers on; 32 | 33 | root /var/www/html; 34 | 35 | # Add index.php to the list if you are using PHP 36 | index index.html index.htm index.nginx-debian.html; 37 | 38 | server_name _; 39 | 40 | location / { 41 | # First attempt to serve request as file, then 42 | # as directory, then fall back to displaying a 404. 43 | try_files $uri $uri/ =404; 44 | } 45 | 46 | # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 47 | # 48 | #location ~ \.php$ { 49 | # include snippets/fastcgi-php.conf; 50 | # 51 | # # With php5-cgi alone: 52 | # fastcgi_pass 127.0.0.1:9000; 53 | # # With php5-fpm: 54 | # fastcgi_pass unix:/var/run/php5-fpm.sock; 55 | #} 56 | 57 | # deny access to .htaccess files, if Apache's document root 58 | # concurs with nginx's one 59 | # 60 | #location ~ /\.ht { 61 | # deny all; 62 | #} 63 | } 64 | 65 | 66 | # Virtual Host configuration for example.com 67 | # 68 | # You can move that to a different file under sites-available/ and symlink that 69 | # to sites-enabled/ to enable it. 70 | # 71 | #server { 72 | # listen 80; 73 | # listen [::]:80; 74 | # 75 | # server_name example.com; 76 | # 77 | # root /var/www/example.com; 78 | # index index.html; 79 | # 80 | # location / { 81 | # try_files $uri $uri/ =404; 82 | # } 83 | #} 84 | -------------------------------------------------------------------------------- /nginx/debian/conf/snippets/fastcgi-php.conf: -------------------------------------------------------------------------------- 1 | # regex to split $uri to $fastcgi_script_name and $fastcgi_path 2 | fastcgi_split_path_info ^(.+\.php)(/.+)$; 3 | 4 | # Check that the PHP script exists before passing it 5 | try_files $fastcgi_script_name =404; 6 | 7 | # Bypass the fact that try_files resets $fastcgi_path_info 8 | # see: http://trac.nginx.org/nginx/ticket/321 9 | set $path_info $fastcgi_path_info; 10 | fastcgi_param PATH_INFO $path_info; 11 | 12 | fastcgi_index index.php; 13 | include fastcgi.conf; 14 | -------------------------------------------------------------------------------- /nginx/debian/conf/snippets/snakeoil.conf: -------------------------------------------------------------------------------- 1 | # Self signed certificates generated by the ssl-cert package 2 | # Don't use them in a production server! 3 | 4 | ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem; 5 | ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key; 6 | -------------------------------------------------------------------------------- /nginx/debian/conf/uwsgi_params: -------------------------------------------------------------------------------- 1 | 2 | uwsgi_param QUERY_STRING $query_string; 3 | uwsgi_param REQUEST_METHOD $request_method; 4 | uwsgi_param CONTENT_TYPE $content_type; 5 | uwsgi_param CONTENT_LENGTH $content_length; 6 | 7 | uwsgi_param REQUEST_URI $request_uri; 8 | uwsgi_param PATH_INFO $document_uri; 9 | uwsgi_param DOCUMENT_ROOT $document_root; 10 | uwsgi_param SERVER_PROTOCOL $server_protocol; 11 | uwsgi_param HTTPS $https if_not_empty; 12 | 13 | uwsgi_param REMOTE_ADDR $remote_addr; 14 | uwsgi_param REMOTE_PORT $remote_port; 15 | uwsgi_param SERVER_PORT $server_port; 16 | uwsgi_param SERVER_NAME $server_name; 17 | -------------------------------------------------------------------------------- /nginx/debian/conf/win-utf: -------------------------------------------------------------------------------- 1 | # This map is not a full windows-1251 <> utf8 map: it does not 2 | # contain Serbian and Macedonian letters. If you need a full map, 3 | # use contrib/unicode2nginx/win-utf map instead. 4 | 5 | charset_map windows-1251 utf-8 { 6 | 7 | 82 E2809A; # single low-9 quotation mark 8 | 9 | 84 E2809E; # double low-9 quotation mark 10 | 85 E280A6; # ellipsis 11 | 86 E280A0; # dagger 12 | 87 E280A1; # double dagger 13 | 88 E282AC; # euro 14 | 89 E280B0; # per mille 15 | 16 | 91 E28098; # left single quotation mark 17 | 92 E28099; # right single quotation mark 18 | 93 E2809C; # left double quotation mark 19 | 94 E2809D; # right double quotation mark 20 | 95 E280A2; # bullet 21 | 96 E28093; # en dash 22 | 97 E28094; # em dash 23 | 24 | 99 E284A2; # trade mark sign 25 | 26 | A0 C2A0; #   27 | A1 D18E; # capital Byelorussian short U 28 | A2 D19E; # small Byelorussian short u 29 | 30 | A4 C2A4; # currency sign 31 | A5 D290; # capital Ukrainian soft G 32 | A6 C2A6; # borken bar 33 | A7 C2A7; # section sign 34 | A8 D081; # capital YO 35 | A9 C2A9; # (C) 36 | AA D084; # capital Ukrainian YE 37 | AB C2AB; # left-pointing double angle quotation mark 38 | AC C2AC; # not sign 39 | AD C2AD; # soft hypen 40 | AE C2AE; # (R) 41 | AF D087; # capital Ukrainian YI 42 | 43 | B0 C2B0; # ° 44 | B1 C2B1; # plus-minus sign 45 | B2 D086; # capital Ukrainian I 46 | B3 D196; # small Ukrainian i 47 | B4 D291; # small Ukrainian soft g 48 | B5 C2B5; # micro sign 49 | B6 C2B6; # pilcrow sign 50 | B7 C2B7; # · 51 | B8 D191; # small yo 52 | B9 E28496; # numero sign 53 | BA D194; # small Ukrainian ye 54 | BB C2BB; # right-pointing double angle quotation mark 55 | 56 | BF D197; # small Ukrainian yi 57 | 58 | C0 D090; # capital A 59 | C1 D091; # capital B 60 | C2 D092; # capital V 61 | C3 D093; # capital G 62 | C4 D094; # capital D 63 | C5 D095; # capital YE 64 | C6 D096; # capital ZH 65 | C7 D097; # capital Z 66 | C8 D098; # capital I 67 | C9 D099; # capital J 68 | CA D09A; # capital K 69 | CB D09B; # capital L 70 | CC D09C; # capital M 71 | CD D09D; # capital N 72 | CE D09E; # capital O 73 | CF D09F; # capital P 74 | 75 | D0 D0A0; # capital R 76 | D1 D0A1; # capital S 77 | D2 D0A2; # capital T 78 | D3 D0A3; # capital U 79 | D4 D0A4; # capital F 80 | D5 D0A5; # capital KH 81 | D6 D0A6; # capital TS 82 | D7 D0A7; # capital CH 83 | D8 D0A8; # capital SH 84 | D9 D0A9; # capital SHCH 85 | DA D0AA; # capital hard sign 86 | DB D0AB; # capital Y 87 | DC D0AC; # capital soft sign 88 | DD D0AD; # capital E 89 | DE D0AE; # capital YU 90 | DF D0AF; # capital YA 91 | 92 | E0 D0B0; # small a 93 | E1 D0B1; # small b 94 | E2 D0B2; # small v 95 | E3 D0B3; # small g 96 | E4 D0B4; # small d 97 | E5 D0B5; # small ye 98 | E6 D0B6; # small zh 99 | E7 D0B7; # small z 100 | E8 D0B8; # small i 101 | E9 D0B9; # small j 102 | EA D0BA; # small k 103 | EB D0BB; # small l 104 | EC D0BC; # small m 105 | ED D0BD; # small n 106 | EE D0BE; # small o 107 | EF D0BF; # small p 108 | 109 | F0 D180; # small r 110 | F1 D181; # small s 111 | F2 D182; # small t 112 | F3 D183; # small u 113 | F4 D184; # small f 114 | F5 D185; # small kh 115 | F6 D186; # small ts 116 | F7 D187; # small ch 117 | F8 D188; # small sh 118 | F9 D189; # small shch 119 | FA D18A; # small hard sign 120 | FB D18B; # small y 121 | FC D18C; # small soft sign 122 | FD D18D; # small e 123 | FE D18E; # small yu 124 | FF D18F; # small ya 125 | } 126 | -------------------------------------------------------------------------------- /nginx/debian/control: -------------------------------------------------------------------------------- 1 | Source: nginx 2 | Section: httpd 3 | Priority: optional 4 | Maintainer: Mriyam Tamuli 5 | Build-Depends: autotools-dev, 6 | debhelper (>= 9), 7 | dh-systemd (>= 1.5), 8 | dpkg-dev (>= 1.15.5), 9 | libexpat-dev, 10 | libgd-dev, 11 | libgeoip-dev, 12 | liblua5.1-0-dev | libluajit-5.1-2, 13 | libmhash-dev, 14 | libpam0g-dev, 15 | libpcre3-dev, 16 | libperl-dev, 17 | libssl-dev, 18 | libxslt1-dev, 19 | po-debconf, 20 | zlib1g-dev 21 | Standards-Version: 3.9.7 22 | Homepage: http://nginx.net 23 | Vcs-Git: git://anonscm.debian.org/collab-maint/nginx.git 24 | Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/nginx.git;a=summary 25 | XS-Testsuite: autopkgtest 26 | 27 | Package: nginx 28 | Architecture: all 29 | Depends: nginx-full (>= ${source:Version}) | 30 | nginx-light (>= ${source:Version}) | 31 | nginx-extras (>= ${source:Version}) , 32 | nginx-full (<< ${source:Version}.1~) | 33 | nginx-light (<< ${source:Version}.1~) | 34 | nginx-extras (<< ${source:Version}.1~) , 35 | ${misc:Depends} 36 | Description: small, powerful, scalable web/proxy server 37 | Nginx ("engine X") is a high-performance web and reverse proxy server 38 | created by Igor Sysoev. It can be used both as a standalone web server 39 | and as a proxy to reduce the load on back-end HTTP or mail servers. 40 | . 41 | This is a dependency package to install either nginx-full (by default) or 42 | nginx-light. 43 | 44 | Package: nginx-doc 45 | Architecture: all 46 | Section: doc 47 | Depends: lsb-base (>= 3.2-14), ${misc:Depends} 48 | Description: small, powerful, scalable web/proxy server - documentation 49 | Nginx ("engine X") is a high-performance web and reverse proxy server 50 | created by Igor Sysoev. It can be used both as a standalone web server 51 | and as a proxy to reduce the load on back-end HTTP or mail servers. 52 | . 53 | This package provides extra documentation to help unleash the power of Nginx. 54 | 55 | Package: nginx-common 56 | Architecture: all 57 | Depends: lsb-base (>= 3.2-14), ${misc:Depends} 58 | Replaces: nginx (<< 0.8.54-4), 59 | nginx-extras (<< 0.8.54-4), 60 | nginx-full (<< 0.8.54-4), 61 | nginx-light (<< 0.8.54-4), 62 | nginx-custom (<< 0.8.54-4) 63 | Breaks: nginx (<< 0.8.54-4), 64 | nginx-extras (<< 0.8.54-4), 65 | nginx-full (<< 0.8.54-4), 66 | nginx-light (<< 0.8.54-4), 67 | nginx-custom (<< 0.8.54-4) 68 | Suggests: fcgiwrap, nginx-doc, ssl-cert 69 | Description: small, powerful, scalable web/proxy server - common files 70 | Nginx ("engine X") is a high-performance web and reverse proxy server 71 | created by Igor Sysoev. It can be used both as a standalone web server 72 | and as a proxy to reduce the load on back-end HTTP or mail servers. 73 | . 74 | This package contains base configuration files used by all versions of 75 | nginx. 76 | 77 | Package: nginx-full 78 | Architecture: any 79 | Depends: nginx-common (= ${source:Version}), ${misc:Depends}, ${shlibs:Depends} 80 | Breaks: nginx (<< 1.4.5-1) 81 | Provides: httpd, httpd-cgi, nginx 82 | Conflicts: nginx-light, nginx-extras, nginx-custom 83 | Suggests: nginx-doc (= ${source:Version}) 84 | Description: nginx web/proxy server (standard version) 85 | Nginx ("engine X") is a high-performance web and reverse proxy server 86 | created by Igor Sysoev. It can be used both as a standalone web server 87 | and as a proxy to reduce the load on back-end HTTP or mail servers. 88 | . 89 | This package provides a version of nginx with the complete set of 90 | standard modules included (but omitting some of those included in 91 | nginx-extra). 92 | . 93 | STANDARD HTTP MODULES: Core, Access, Auth Basic, Auto Index, Browser, 94 | Charset, Empty GIF, FastCGI, Geo, Gzip, Headers, Index, Limit Requests, 95 | Limit Zone, Log, Map, Memcached, Proxy, Referer, Rewrite, SCGI, 96 | Split Clients, SSI, Upstream, User ID, UWSGI. 97 | . 98 | OPTIONAL HTTP MODULES: Addition, Auth Request, Debug, GeoIP, Gzip 99 | Precompression, HTTP Sub, Image Filter, IPv6, Real IP, Spdy, SSL, Stub Status, 100 | Substitution, WebDAV, XSLT. 101 | . 102 | MAIL MODULES: Mail Core, IMAP, POP3, SMTP, SSL. 103 | . 104 | THIRD PARTY MODULES: Auth PAM, DAV Ext, Echo, HTTP Substitution Filter, 105 | Upstream Fair Queue. 106 | 107 | Package: nginx-full-dbg 108 | Architecture: any 109 | Section: debug 110 | Priority: extra 111 | Depends: nginx-full (= ${binary:Version}), ${misc:Depends} 112 | Conflicts: nginx-light-dbg, nginx-extras-dbg, nginx-custom-dbg 113 | Description: nginx web/proxy server (standard version) - debugging symbols 114 | Nginx ("engine X") is a high-performance web and reverse proxy server 115 | created by Igor Sysoev. It can be used both as a standalone web server 116 | and as a proxy to reduce the load on back-end HTTP or mail servers. 117 | . 118 | This package provides debugging symbols for nginx-full, to assist in debugging 119 | issues that you may find. It should not be required for normal operation. 120 | 121 | Package: nginx-light 122 | Architecture: any 123 | Priority: extra 124 | Depends: nginx-common (= ${source:Version}), ${misc:Depends}, ${shlibs:Depends} 125 | Breaks: nginx (<< 1.4.5-1) 126 | Provides: httpd, httpd-cgi, nginx 127 | Conflicts: nginx-full, nginx-extras, nginx-custom 128 | Suggests: nginx-doc (= ${source:Version}) 129 | Description: nginx web/proxy server (basic version) 130 | Nginx ("engine X") is a high-performance web and reverse proxy server 131 | created by Igor Sysoev. It can be used both as a standalone web server 132 | and as a proxy to reduce the load on back-end HTTP or mail servers. 133 | . 134 | This package provides a very light version of nginx with only the 135 | minimal set of features and modules. 136 | . 137 | STANDARD HTTP MODULES: Core, Access, Auth Basic, Auto Index, Charset, 138 | Empty GIF, FastCGI, Gzip, Headers, Index, Log, Map, Proxy, Rewrite, Upstream. 139 | . 140 | OPTIONAL HTTP MODULES: Auth Request, Debug, Gzip Precompression, IPv6, Real 141 | Ip, SSL, Stub Status. 142 | . 143 | THIRD PARTY MODULES: Echo. 144 | 145 | Package: nginx-light-dbg 146 | Architecture: any 147 | Section: debug 148 | Priority: extra 149 | Depends: nginx-light (= ${binary:Version}), ${misc:Depends} 150 | Conflicts: nginx-full-dbg, nginx-extras-dbg, nginx-custom-dbg 151 | Description: nginx web/proxy server (basic version) - debugging symbols 152 | Nginx ("engine X") is a high-performance web and reverse proxy server 153 | created by Igor Sysoev. It can be used both as a standalone web server 154 | and as a proxy to reduce the load on back-end HTTP or mail servers. 155 | . 156 | This package provides debugging symbols for nginx-light, to assist in 157 | debugging issues that you may find. It should not be required for normal 158 | operation. 159 | 160 | Package: nginx-extras 161 | Architecture: any 162 | Priority: extra 163 | Depends: nginx-common (= ${source:Version}), 164 | ${misc:Depends}, 165 | ${perl:Depends}, 166 | ${shlibs:Depends} 167 | Breaks: nginx (<< 1.4.5-1) 168 | Provides: httpd, httpd-cgi, nginx 169 | Conflicts: nginx-full, nginx-light, nginx-custom 170 | Suggests: nginx-doc (= ${source:Version}) 171 | Description: nginx web/proxy server (extended version) 172 | Nginx ("engine X") is a high-performance web and reverse proxy server 173 | created by Igor Sysoev. It can be used both as a standalone web server 174 | and as a proxy to reduce the load on back-end HTTP or mail servers. 175 | . 176 | This package provides a version of nginx with the standard modules, plus 177 | extra features and modules such as the Perl module, which allows the 178 | addition of Perl in configuration files. 179 | . 180 | STANDARD HTTP MODULES: Core, Access, Auth Basic, Auto Index, Browser, 181 | Charset, Empty GIF, FastCGI, Geo, Gzip, Headers, Index, Limit Requests, 182 | Limit Zone, Log, Map, Memcached, Proxy, Referer, Rewrite, SCGI, 183 | Split Clients, SSI, Upstream, User ID, UWSGI. 184 | . 185 | OPTIONAL HTTP MODULES: Addition, Auth Request, Debug, Embedded Perl, FLV, 186 | GeoIP, Gzip Precompression, Image Filter, IPv6, MP4, Random Index, Real IP, 187 | Secure Link, Spdy, SSL, Stub Status, Substitution, WebDAV, XSLT. 188 | . 189 | MAIL MODULES: Mail Core, IMAP, POP3, SMTP, SSL. 190 | . 191 | THIRD PARTY MODULES: Auth PAM, Chunkin, DAV Ext, Echo, Embedded Lua, 192 | Fancy Index, HttpHeadersMore, HTTP Substitution Filter, http push, 193 | Nginx Development Kit, Upload Progress, Upstream Fair Queue. 194 | 195 | Package: nginx-extras-dbg 196 | Architecture: any 197 | Section: debug 198 | Priority: extra 199 | Depends: nginx-extras (= ${binary:Version}), ${misc:Depends} 200 | Conflicts: nginx-full-dbg, nginx-light-dbg, nginx-custom-dbg 201 | Description: nginx web/proxy server (extended version) - debugging symbols 202 | Nginx ("engine X") is a high-performance web and reverse proxy server 203 | created by Igor Sysoev. It can be used both as a standalone web server 204 | and as a proxy to reduce the load on back-end HTTP or mail servers. 205 | . 206 | This package provides debugging symbols for nginx-extras, to assist in 207 | debugging issues that you may find. It should not be required for normal 208 | operation. 209 | 210 | Package: nginx-custom 211 | Architecture: any 212 | Depends: nginx-common (= ${source:Version}), ${misc:Depends}, ${shlibs:Depends} 213 | Breaks: nginx (<< 1.4.5-1) 214 | Provides: httpd, httpd-cgi, nginx 215 | Conflicts: nginx-full, nginx-light, nginx-extras 216 | Suggests: nginx-doc (= ${source:Version}) 217 | Description: nginx web/proxy server with custom setup 218 | Nginx ("engine X") is a high-performance web and reverse proxy server 219 | created by Igor Sysoev. It can be used both as a standalone web server 220 | and as a proxy to reduce the load on back-end HTTP servers. 221 | . 222 | This package provides a version of nginx with the complete set of 223 | standard modules. 224 | . 225 | STANDARD HTTP MODULES: Core, Access, Auth Basic, Auto Index, Browser, 226 | Charset, Empty GIF, FastCGI, Geo, Gzip, Headers, Index, Limit Requests, 227 | Limit Zone, Log, Map, Memcached, Proxy, Referer, Rewrite, SCGI, 228 | Split Clients, SSI, Upstream, User ID, UWSGI. 229 | . 230 | OPTIONAL HTTP MODULES: Addition, Auth Request, Debug, GeoIP, Gzip 231 | Precompression, HTTP Sub, Image Filter, IPv6, Real IP, Spdy, SSL, Stub Status, 232 | Substitution, WebDAV, XSLT. 233 | . 234 | THIRD PARTY MODULES: Auth PAM, DAV Ext, Echo, HTTP Substitution Filter, 235 | Upstream Fair Queue, Headers More, Cache Purge. 236 | 237 | Package: nginx-custom-dbg 238 | Architecture: any 239 | Section: debug 240 | Priority: extra 241 | Depends: nginx-custom (= ${binary:Version}), ${misc:Depends} 242 | Conflicts: nginx-full-dbg, nginx-light-dbg, nginx-extras-dbg 243 | Description: nginx web/proxy server (standard version) - debugging symbols 244 | Nginx ("engine X") is a high-performance web and reverse proxy server 245 | created by Igor Sysoev. It can be used both as a standalone web server 246 | and as a proxy to reduce the load on back-end HTTP server. 247 | . 248 | This package provides debugging symbols for nginx-custom, to assist in debugging 249 | issues that you may find. It should not be required for normal operation. 250 | 251 | Package: nginx-ee 252 | Architecture: any 253 | Depends: nginx-common (= ${source:Version}), ${misc:Depends}, ${shlibs:Depends} 254 | Breaks: nginx (<< 1.4.5-1) 255 | Provides: httpd, httpd-cgi, nginx 256 | Conflicts: nginx-full, nginx-light, nginx-extras 257 | Suggests: nginx-doc (= ${source:Version}) 258 | Description: nginx web/proxy server with custom setup 259 | Nginx ("engine X") is a high-performance web and reverse proxy server 260 | created by Igor Sysoev. It can be used both as a standalone web server 261 | and as a proxy to reduce the load on back-end HTTP servers. 262 | . 263 | This package provides a version of nginx with the complete set of 264 | standard modules. 265 | . 266 | STANDARD HTTP MODULES: Core, Access, Auth Basic, Auto Index, Browser, 267 | Charset, Empty GIF, FastCGI, Geo, Gzip, Headers, Index, Limit Requests, 268 | Limit Zone, Log, Map, Memcached, Proxy, Referer, Rewrite, SCGI, 269 | Split Clients, SSI, Upstream, User ID, UWSGI. 270 | . 271 | OPTIONAL HTTP MODULES: Addition, Auth Request, Debug, GeoIP, Gzip 272 | Precompression, HTTP Sub, Image Filter, IPv6, Real IP, Spdy, SSL, Stub Status, 273 | Substitution, WebDAV, XSLT. 274 | . 275 | THIRD PARTY MODULES: Auth PAM, DAV Ext, Echo, HTTP Substitution Filter, 276 | Upstream Fair Queue, Headers More, Cache Purge. 277 | 278 | Package: nginx-ee-dbg 279 | Architecture: any 280 | Section: debug 281 | Priority: extra 282 | Depends: nginx-ee (= ${binary:Version}), ${misc:Depends} 283 | Conflicts: nginx-full-dbg, nginx-light-dbg, nginx-extras-dbg 284 | Description: nginx web/proxy server (standard version) - debugging symbols 285 | Nginx ("engine X") is a high-performance web and reverse proxy server 286 | created by Igor Sysoev. It can be used both as a standalone web server 287 | and as a proxy to reduce the load on back-end HTTP server. 288 | . 289 | This package provides debugging symbols for nginx-custom, to assist in debugging 290 | issues that you may find. It should not be required for normal operation. 291 | -------------------------------------------------------------------------------- /nginx/debian/copyright: -------------------------------------------------------------------------------- 1 | Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ 2 | Upstream-Name: nginx 3 | Source: http://nginx.org/en/download.html 4 | 5 | Files: * 6 | Copyright: 2002-2014 Igor Sysoev 7 | 2011-2014 Nginx, Inc. 8 | Maxim Dounin 9 | Valentin V. Bartenev 10 | License: BSD-2-clause 11 | 12 | Files: src/core/ngx_murmurhash.c 13 | Copyright: Copyright (C) Austin Appleby 14 | License: BSD-2-clause 15 | 16 | Files: src/core/ngx_proxy_protocol.h 17 | src/core/ngx_proxy_protocol.c 18 | Copyright: Copyright (C) Roman Arutyunyan 19 | Copyright (C) Nginx, Inc. 20 | License: BSD-2-clause 21 | 22 | Files: src/http/modules/ngx_http_scgi_module.c 23 | src/http/modules/ngx_http_uwsgi_module.c 24 | Copyright: Copyright (C) Igor Sysoev 25 | Copyright (C) Nginx, Inc. 26 | Copyright (C) Manlio Perillo (manlio.perillo@gmail.com) 27 | License: BSD-2-clause 28 | 29 | Files: contrib/geo2nginx.pl 30 | Copyright: 2005, Andrei Nigmatulin 31 | License: BSD-2-clause 32 | 33 | Files: debian/modules/headers-more-nginx-module/* 34 | Copyright: Copyright (c) 2009-2014, Yichun "agentzh" Zhang (章亦春) , CloudFlare Inc. 35 | Copyright (c) 2010-2013, Bernd Dorn 36 | Copyright (c) Igor Sysoev 37 | License: BSD-2-clause 38 | 39 | Files: debian/modules/nginx-development-kit/* 40 | Copyright: Marcus Clyne 41 | License: BSD-3-clause 42 | 43 | Files: debian/modules/nginx-development-kit/src/hash/md5.h 44 | debian/modules/nginx-development-kit/src/hash/sha.h 45 | Copyright: Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 46 | License: BSD-4-clause 47 | 48 | Files: debian/modules/nginx-auth-pam/* 49 | Copyright: 2008-2013, Sergio Talens Oliag 50 | License: BSD-2-clause 51 | 52 | Files: debian/modules/nginx-echo/* 53 | Copyright: Copyright (c) 2009-2014, Yichun "agentzh" Zhang 54 | License: BSD-2-clause 55 | 56 | Files: debian/modules/nginx-lua/* 57 | Copyright: Copyright (C) 2009-2014, by Xiaozhe Wang (chaoslawful) . 58 | Copyright (C) 2009-2014, by Yichun "agentzh" Zhang (章亦春) , CloudFlare Inc. 59 | License: BSD-2-clause 60 | 61 | Files: debian/modules/nginx-upstream-fair/* 62 | Copyright: Copyright (c) 2007 Grzegorz Nosek 63 | Igor Sysoev 64 | License: BSD-2-clause 65 | 66 | Files: debian/modules/nginx-http-push/* 67 | Copyright: Copyright (c) 2009 Leo Ponomarev 68 | License: Expat 69 | 70 | Files: debian/modules/nginx-upload-progress/* 71 | Copyright: Brice Figureau 72 | 2002-2007, Igor Sysoev 73 | License: BSD-2-clause 74 | 75 | Files: debian/modules/nginx-cache-purge/* 76 | Copyright: 2009-2012, FRiCKLE , 77 | 2009-2012, Piotr Sikora 78 | License: BSD-2-clause 79 | 80 | Files: debian/modules/nginx-dav-ext-module/* 81 | Copyright: Arutyunyan Roman 82 | License: BSD-2-clause 83 | 84 | Files: debian/modules/ngx-fancyindex/* 85 | Copyright: Copyright (c) Adrian Perez 86 | License: BSD-2-clause 87 | 88 | Files: debian/* 89 | Copyright: 2007-2009, Fabio Tranchitella 90 | 2008, Jose Parrella 91 | 2009-2014, Kartik Mistry 92 | 2010-2014, Michael Lustfield 93 | 2011 Dmitry E. Oboukhov 94 | 2011-2013, Cyril Lavier 95 | 2013-2014, Christos Trochalakis 96 | License: BSD-2-clause 97 | 98 | License: BSD-2-clause 99 | All rights reserved. 100 | . 101 | Redistribution and use in source and binary forms, with or without 102 | modification, are permitted provided that the following conditions are 103 | met: 104 | . 105 | 1. Redistributions of source code must retain the above copyright 106 | notice, this list of conditions and the following disclaimer. 107 | 2. Redistributions in binary form must reproduce the above copyright 108 | notice, this list of conditions and the following disclaimer in the 109 | documentation and/or other materials provided with the distribution. 110 | . 111 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 112 | IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 113 | TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 114 | PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 115 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 116 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 117 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 118 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 119 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 120 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 121 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 122 | 123 | License: BSD-3-clause 124 | All rights reserved. 125 | . 126 | Redistribution and use in source and binary forms, with or without 127 | modification, are permitted provided that the following conditions are 128 | met: 129 | 1. Redistributions of source code must retain the above copyright 130 | notice, this list of conditions and the following disclaimer. 131 | 2. Redistributions in binary form must reproduce the above copyright 132 | notice, this list of conditions and the following disclaimer in the 133 | documentation and/or other materials provided with the distribution. 134 | 3. Neither the name of the University nor the names of its contributors 135 | may be used to endorse or promote products derived from this 136 | software without specific prior written permission. 137 | . 138 | THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 139 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 140 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 141 | PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS 142 | BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 143 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 144 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 145 | BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 146 | WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 147 | OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 148 | ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 149 | 150 | License: BSD-4-clause 151 | Redistribution and use in source and binary forms, with or without 152 | modification, are permitted provided that the following conditions 153 | are met: 154 | 1. Redistributions of source code must retain the above copyright 155 | notice, this list of conditions and the following disclaimer. 156 | 2. Redistributions in binary form must reproduce the above copyright 157 | notice, this list of conditions and the following disclaimer in the 158 | documentation and/or other materials provided with the distribution. 159 | 4. Neither the name of the University nor the names of its contributors 160 | may be used to endorse or promote products derived from this software 161 | without specific prior written permission. 162 | . 163 | THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 164 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 165 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 166 | ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 167 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 168 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 169 | OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 170 | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 171 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 172 | OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 173 | SUCH DAMAGE. 174 | 175 | License: Expat 176 | Permission is hereby granted, free of charge, to any person obtaining a copy 177 | of this software and associated documentation files (the "Software"), to 178 | deal in the Software without restriction, including without limitation the 179 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 180 | sell copies of the Software, and to permit persons to whom the Software is 181 | furnished to do so, subject to the following conditions: 182 | . 183 | The above copyright notice and this permission notice shall be included in 184 | all copies or substantial portions of the Software. 185 | . 186 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 187 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 188 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 189 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 190 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 191 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 192 | IN THE SOFTWARE. 193 | -------------------------------------------------------------------------------- /nginx/debian/gbp.conf: -------------------------------------------------------------------------------- 1 | [DEFAULT] 2 | pristine-tar = True 3 | 4 | -------------------------------------------------------------------------------- /nginx/debian/help/docs/fcgiwrap: -------------------------------------------------------------------------------- 1 | ## 2 | # File: 3 | # fcgiwrap 4 | # Description: 5 | # The fcgiwrap tool allows a user to quickly and painlessly setup a socket 6 | # to handle CGI requests. This is useful for Python, Perl, etc. 7 | ## 8 | 9 | The easy way: 10 | apt-get install fcgiwrap 11 | 12 | The less-easy way: 13 | If your distribution does not provide it, the Nginx wiki describes the steps. 14 | http://wiki.nginx.org/Fcgiwrap 15 | -------------------------------------------------------------------------------- /nginx/debian/help/docs/php: -------------------------------------------------------------------------------- 1 | ## 2 | # File: 3 | # php 4 | # Description: 5 | # This file is meant to help users get a basic understanding of a PHP stack 6 | # with Nginx as the web server. 7 | ## 8 | 9 | # Note: This is not a configuration sample and comment lines will be userd differently. 10 | 11 | 12 | == PHP Options == 13 | 14 | There are a number of options that can be used to provide PHP. The two most 15 | common methods are php-cgi and php-fpm. The php-fpm option is relatively new 16 | and is not yet a standard option. This package is stable however and is moving 17 | toward being a standard option in distribution repositories. 18 | 19 | == PHP-FPM == 20 | 21 | The php-fpm option is considerably harder to debug. However, the hardest issues 22 | to debug should be solved by including that fastcgi_params file provided by 23 | this package. It should at a minimum remove all silent errors. 24 | 25 | # sudo apt-get install php5-fpm 26 | 27 | If you do not have php5-fpm available, you will want to add the repository for 28 | the package. https://launchpad.net/~nginx/+archive/php5 29 | 30 | In php5-fpm, you will want to edit the php pool. 31 | Edit /etc/php5/fpm/pool.d/www.conf 32 | 33 | The listen directive is the most important piece in this file. It is suggested 34 | to listen to a local unix socket. This listen directive will be used in your 35 | nginx configuration. 36 | Example: listen = /tmp/phpfpm.socket 37 | 38 | The rest of this file can be tweaked to your liking. 39 | 40 | == PHP-CGI == 41 | 42 | The simplest and easiest method to run PHP is to use php-cgi. It does not offer 43 | the ability to monitor and restart processes that hang or die however. 44 | 45 | # sudo apt-get install php5-cgi 46 | 47 | To make php5-cgio work, you will need to create an init script. 48 | 49 | ===== FILE: /etc/init.d/phpcgi ===== 50 | #!/bin/bash 51 | # 52 | ### BEGIN INIT INFO 53 | # Provides: php-fcgi 54 | # Required-Start: $local_fs $remote_fs $network $syslog 55 | # Required-Stop: $local_fs $remote_fs $network $syslog 56 | # Default-Start: 2 3 4 5 57 | # Default-Stop: 0 1 6 58 | # Short-Description: starts php-cgi processes 59 | # Description: starts php-cgi using start-stop-daemon for each user 60 | ### END INIT INFO 61 | 62 | # Number of PHP processes to be able to handle connections. 63 | CHILD=10 64 | # Maximum number of requests each child should handle before being regenerated 65 | MAX_REQS=750 66 | 67 | start() { 68 | start-stop-daemon --quiet --start --background --chuid "www-data" \ 69 | --exec /usr/bin/env \ 70 | -- - USER="www-data" \ 71 | PATH=/usr/bin PHP_FCGI_CHILDREN=$CHILD PHP_FCGI_MAX_REQUESTS=$MAX_REQS \ 72 | php-cgi -b /tmp/phpcgi.socket & 73 | } 74 | 75 | stop() { 76 | killall -w php-cgi 77 | rm /tmp/phpcgi.socket 78 | sync 79 | sleep 1 80 | } 81 | 82 | case "$1" in 83 | start) start;; 84 | stop) stop;; 85 | restart) stop; start;; 86 | *) echo "Usage: php-fastcgi {start|stop|restart} [user]"; exit 1;; 87 | esac 88 | ===== END FILE ===== 89 | 90 | # Make file executable 91 | chmod +x /etc/init.d/phpcgi 92 | 93 | # Add file to startup 94 | update-rc.d phpcgi defaults 95 | 96 | == Using PHP in Nginx == 97 | 98 | In order to use the sockets you created (/tmp/phpfpm.socket or /tmp/phpcgi.socket) 99 | you will need to add a php block to your Nignx configuration. 100 | 101 | # This block adds a little security. 102 | # See /usr/share/doc/nginx/examples/drupal for context 103 | location ~ \..*/.*\.php$ { 104 | return 403; 105 | } 106 | 107 | # This is basic PHP block that can be used to handle all PHP requests. 108 | # See /usr/share/doc/nginx/examples/drupal for context 109 | location ~ \.php$ { 110 | fastcgi_split_path_info ^(.+\.php)(/.+)$; 111 | include fastcgi_params; 112 | # Intercepting errors will cause PHP errors to appear in Nginx logs 113 | fastcgi_intercept_errors on; 114 | fastcgi_pass unix:/tmp/phpcgi.socket; 115 | } 116 | 117 | # The above example will use php5-cgi which is bound to /tmp/phpcgi.socket. 118 | # If you choose to use php5-fpm the example above will bind to /tmp/phpcgi.socket 119 | # instead and this should be used for fastcgi_pass instead. 120 | -------------------------------------------------------------------------------- /nginx/debian/help/docs/support-irc: -------------------------------------------------------------------------------- 1 | ## 2 | # File: 3 | # support-irc 4 | # Description: 5 | # This file explains how to get support on IRC. 6 | ## 7 | 8 | Nginx has a moderately active IRC channel on Freenode. 9 | 10 | You can get there by: 11 | * Client 12 | Using an IRC Client and pointing it to: 13 | #nginx on irc.freenode.net 14 | * Browser 15 | Opening a web browser and pointing it to: 16 | http://webchat.freenode.net?channels=nginx 17 | 18 | Common sense is expected to be followed: 19 | * Code of Conduct 20 | http://www.ubuntu.com/community/conduct 21 | * IRC Etiquette 22 | http://www.ircbeginner.com/ircinfo/etiquette.html 23 | * Patience 24 | If somebody doesn't answer you right away, then wait. 25 | Even active IRC users have to run off sometimes. 26 | 27 | If you need more help with IRC The Linux Documentation Project has more information: 28 | http://tldp.org/HOWTO/IRC/beginners.html 29 | -------------------------------------------------------------------------------- /nginx/debian/help/docs/upstream: -------------------------------------------------------------------------------- 1 | ## 2 | # File: 3 | # upstream 4 | # Description: 5 | # This file describes how to use upstream blocks. 6 | ## 7 | 8 | An upstream block allows you to set a list of upstream locations for both 9 | proxy_pass and fastcgi_pass directives. 10 | 11 | Examples of upstream blocks: 12 | 13 | # PHP listening on the same server 14 | upstream php { 15 | # ip_hash ensures the same backend is used for client reconnects. 16 | ip_hash; 17 | # This assumes we have multiple PHP listeners on different known ports. 18 | server 127.0.0.1:9000; 19 | server 127.0.0.1:9001; 20 | server 127.0.0.1:9002; 21 | server 127.0.0.1:9003; 22 | # In addition to listening on ports, we can listen to unix sockets. 23 | server unix:/tmp/php-cgi.socket; 24 | } 25 | 26 | # Multiple backend Apache instances on separate servers 27 | upstream apache { 28 | # Adding a weight alters the chance the upstream server will be used. 29 | server apache1.domain.com weight 5; 30 | server apache2.domain.com; 31 | server apache3.domain.com; 32 | # Adding 'down' keeps the upstream from being used. Useful for downtime management. 33 | server apache4.domain.com down; 34 | server apache5.domain.com; 35 | } 36 | 37 | Using an upstream location: 38 | 39 | # Passing PHP to upstream 40 | location ~ \.php$ { 41 | fastcgi_split_path_info ^(.+\.php)(/.+)$; 42 | include fastcgi_params; 43 | fastcgi_pass php; 44 | } 45 | 46 | # Passing all requests for /cgi-bin/* to Apache upstreams. 47 | location /cgi-bin { 48 | proxy_pass apache; 49 | } 50 | 51 | For more information see http://wiki.nginx.org/HttpUpstreamModule 52 | -------------------------------------------------------------------------------- /nginx/debian/help/examples/drupal: -------------------------------------------------------------------------------- 1 | ## 2 | # File: 3 | # drupal 4 | # Description: 5 | # This file is meant to offer a very detailed set of instructions and best 6 | # practices for deploying a Drupal website with Nginx. This file should be 7 | # almost drop-in if the user is able to understand the three lines that 8 | # need to be changed. 9 | ## 10 | 11 | server { 12 | 13 | # This is the URI of your website. You can specify multiple sites to be 14 | # served by the same Drupal installation. 15 | server_name domain.com www.domain.com .example.net; 16 | 17 | # This is the root of the Drupal directory. 18 | # Note that Drupal 6, Drupal 7, and Pressflow are interchangeable 19 | root /var/www/drupal6; 20 | 21 | # In some cases a favicon does not exist but this is not something you 22 | # normally need to worry about. It's also a microscopic image and will 23 | # just clutter the logs. 24 | location = /favicon.ico { 25 | log_not_found off; 26 | access_log off; 27 | } 28 | 29 | # This is for the robots.txt file used by search engines. 30 | location = /robots.txt { 31 | # If you have one, you want to allow them access to it. 32 | allow all; 33 | # If you don't have one, you don't want to fill your logs with 34 | # not found errors. 35 | log_not_found off; 36 | access_log off; 37 | } 38 | 39 | # This matters if you use drush because drush copies backups of modules 40 | # to this directory. In the event personal information wound up in the 41 | # module, you want to know outside users can't access it. 42 | location = /backup { 43 | deny all; 44 | } 45 | 46 | # Very rarely should these ever be accessed outside of your lan 47 | # The above location for robots.txt is an exact match and will override 48 | # this location block. 49 | location ~* \.(txt|log)$ { 50 | allow 192.168.0.0/16; 51 | deny all; 52 | } 53 | 54 | # This location block protects against a known attack. It happens if 55 | # the attacker uploads a non-php file and attempts to run it as a 56 | # php file on the server. 57 | location ~ \..*/.*\.php$ { 58 | return 403; 59 | } 60 | 61 | # This is our primary location block. The try_files directive will 62 | # attempt to serve the data in the order listed. First try the exact 63 | # request (such as an image or text file). If it doesn't exist, see if 64 | # the directory exists. If not, then we move to the rewrite which is 65 | # used for the front-end controller pattern. 66 | location / { 67 | try_files $uri $uri/ @rewrite; 68 | } 69 | 70 | # This will rewrite our request from domain.com/node/1/ to domain.com/index.php?q=node/1 71 | # This could be done in try_files without a rewrite however, the GlobalRedirect 72 | # module enforces no slash (/) at the end of URL's. This rewrite removes that 73 | # so no infinite redirect loop is reached. 74 | location @rewrite { 75 | rewrite ^/(.*)$ /index.php?q=$1; 76 | } 77 | 78 | # If a PHP file is served, this block will handle the request. This block 79 | # works on the assumption you are using php-cgi listening on /tmp/phpcgi.socket. 80 | # Please see the php example (usr/share/doc/nginx/exmaples/php) for more 81 | # information about setting up PHP. 82 | # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini 83 | location ~ \.php$ { 84 | fastcgi_split_path_info ^(.+\.php)(/.+)$; 85 | include fastcgi_params; 86 | # Intercepting errors will cause PHP errors to appear in Nginx logs 87 | fastcgi_intercept_errors on; 88 | fastcgi_pass unix:/tmp/phpcgi.socket; 89 | } 90 | 91 | # The ImageCache module builds an image 'on the fly' which means that 92 | # if it doesn't exist, it needs to be created. Nginx is king of static 93 | # so there's no point in letting PHP decide if it needs to be servered 94 | # from an existing file. 95 | # If the image can't be served directly, it's assumed that it doesn't 96 | # exist and is passed off to PHP via our previous rewrite to let PHP 97 | # create and serve the image. 98 | # Notice that try_files does not have $uri/ in it. This is because an 99 | # image should never be a directory. So there's no point in wasting a 100 | # stat to serve it that way. 101 | location ~ ^/sites/.*/files/imagecache/ { 102 | try_files $uri @rewrite; 103 | } 104 | 105 | # As mentioned above, Nignx is king of static. If we're serving a static 106 | # file that ends with one of the following extensions, it is best to set 107 | # a very high expires time. This will generate fewer requests for the 108 | # file. These requests will be logged if found, but not if they don't 109 | # exist. 110 | location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { 111 | expires max; 112 | log_not_found off; 113 | } 114 | } 115 | -------------------------------------------------------------------------------- /nginx/debian/help/examples/http: -------------------------------------------------------------------------------- 1 | ## 2 | # File: 3 | # http 4 | # Description: 5 | # This file is meant to deliver a basic understanding of the http block. 6 | ## 7 | 8 | # All web configuration should be inside of the http block. 9 | # Most settings here are pretty self explanatory. 10 | # See http://wiki.nginx.org/HttpCoreModule for details. 11 | http { 12 | 13 | ## 14 | # Basic Settings 15 | ## 16 | 17 | sendfile on; 18 | tcp_nopush on; 19 | tcp_nodelay on; 20 | keepalive_timeout 65; 21 | # server_tokens off; 22 | 23 | # server_names_hash_bucket_size 64; 24 | # server_name_in_redirect off; 25 | 26 | include /etc/nginx/mime.types; 27 | default_type application/octet-stream; 28 | 29 | ## 30 | # Logging Settings 31 | ## 32 | 33 | access_log /var/log/nginx/access.log; 34 | error_log /var/log/nginx/error.log; 35 | 36 | ## 37 | # Gzip Settings 38 | ## 39 | 40 | gzip on; 41 | gzip_disable "msie6"; 42 | 43 | # gzip_vary on; 44 | # gzip_proxied any; 45 | # gzip_comp_level 6; 46 | # gzip_buffers 16 8k; 47 | # gzip_http_version 1.1; 48 | # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; 49 | 50 | ## 51 | # Virtual Host Configs 52 | # These lines will include: 53 | # any files in /etc/nginx/sites-enabled/ 54 | # and any in /etc/nginx/conf.d/ ending with .conf 55 | ## 56 | 57 | include /etc/nginx/conf.d/*.conf; 58 | include /etc/nginx/sites-enabled/*; 59 | } 60 | -------------------------------------------------------------------------------- /nginx/debian/help/examples/mail: -------------------------------------------------------------------------------- 1 | ## 2 | # File: 3 | # mail 4 | # Description: 5 | # Provides a basic example of a mail proxy. 6 | ## 7 | 8 | # All mail proxy configuration should be inside of the mail block. 9 | # Most settings here are pretty self explanatory. 10 | # See http://wiki.nginx.org/MailCoreModule 11 | mail { 12 | # See sample authentication script at: 13 | # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript 14 | 15 | # auth_http localhost/auth.php; 16 | # pop3_capabilities "TOP" "USER"; 17 | # imap_capabilities "IMAP4rev1" "UIDPLUS"; 18 | 19 | server { 20 | listen localhost:110; 21 | protocol pop3; 22 | proxy on; 23 | } 24 | 25 | server { 26 | listen localhost:143; 27 | protocol imap; 28 | proxy on; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /nginx/debian/help/examples/mailman: -------------------------------------------------------------------------------- 1 | ## 2 | # File: 3 | # mailman 4 | # Description: 5 | # This file explains how to install MailMan and offers a nearly drop-in 6 | # model if MailMan was installed from Debian/Ubuntu repositories. 7 | ## 8 | 9 | server { 10 | 11 | # This is the URI of your website. You can specify multiple sites to be 12 | # served by the same Drupal installation. 13 | server_name lists.DOMAIN.TLD; 14 | 15 | # This is the default MailMan root directory. 16 | root /usr/lib/cgi-bin; 17 | 18 | # If the request is exactly the server_name, then we need to redirect 19 | # the browser to the listinfo page. Notice the = for an exact match. 20 | location = / { 21 | rewrite ^ /mailman/listinfo permanent; 22 | } 23 | 24 | # Any requests need to be rewritten to /mailman/. 25 | # This happens only if no other location block matches. 26 | location / { 27 | rewrite ^ /mailman$uri; 28 | } 29 | 30 | # If /mailmain/ was part of the request, then we need to let python 31 | # handle the request. 32 | location /mailman/ { 33 | fastcgi_split_path_info (^/mailman/[^/]*)(.*)$; 34 | include fastcgi_params; 35 | fastcgi_param GATEWAY_INTERFACE CGI/1.1; 36 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 37 | fastcgi_param PATH_INFO $fastcgi_path_info; 38 | fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; 39 | # fcgiwrap was used to create this socket. 40 | # See /usr/share/doc/nginx-doc/fcgiwrap 41 | fastcgi_pass unix:/tmp/cgi.socket; 42 | } 43 | 44 | # If a request was made for an image, we need to change the directory 45 | # that is beeing looked at. Nothing else is needed because the images 46 | # are static content. 47 | location /images/mailman { 48 | alias /var/lib/mailman/icons; 49 | } 50 | 51 | # If a request for /pipermail was made, we are still only dealing with 52 | # static content. The archives are at a different location and we need 53 | # to point at it. Because these are public, there's no issue in letting 54 | # them be browsed; autoindex is turned on to allow browsing. 55 | location /pipermail { 56 | alias /var/lib/mailman/archives/public; 57 | autoindex on; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /nginx/debian/help/examples/nginx.conf: -------------------------------------------------------------------------------- 1 | ## 2 | # File: 3 | # nginx.conf 4 | # Description: 5 | # Provides a very basic description of the use of nginx.conf. 6 | ## 7 | 8 | # For more options with more detailed descriptions: 9 | # See http://wiki.nginx.org/CoreModule 10 | 11 | # Sets user/group of worker processes. If group is not specified, group is assumed 12 | # to be the same as user. Syntax: user user [group] 13 | user www-data; 14 | 15 | # nginx has the ability to use more than one worker process 16 | worker_processes 4; 17 | 18 | # The pid-file. It can be used for the kill-command to send signals to nginx. 19 | # Example: To reload the config: kill -HUP `cat /var/log/nginx.pid` 20 | pid /var/run/nginx.pid; 21 | 22 | # See http://wiki.nginx.org/HttpEventsModule 23 | events { 24 | worker_connections 1024; 25 | # multi_accept on; 26 | } 27 | 28 | # See /usr/share/doc/nginx/examples/http 29 | http { 30 | } 31 | 32 | # See /usr/share/doc/nginx/examples/mail 33 | mail { 34 | } 35 | -------------------------------------------------------------------------------- /nginx/debian/help/examples/nginx_modsite: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ## 4 | # File: 5 | # nginx_modsite 6 | # Description: 7 | # Provides a basic script to automate enabling and disabling websites found 8 | # in the default configuration directories: 9 | # /etc/nginx/sites-available and /etc/nginx/sites-enabled 10 | # For easy access to this script, copy it into the directory: 11 | # /usr/local/sbin 12 | # Run this script without any arguments or with -h or --help to see a basic 13 | # help dialog displaying all options. 14 | ## 15 | 16 | # Copyright (C) 2010 Michael Lustfield 17 | 18 | # Redistribution and use in source and binary forms, with or without 19 | # modification, are permitted provided that the following conditions 20 | # are met: 21 | # 1. Redistributions of source code must retain the above copyright 22 | # notice, this list of conditions and the following disclaimer. 23 | # 2. Redistributions in binary form must reproduce the above copyright 24 | # notice, this list of conditions and the following disclaimer in the 25 | # documentation and/or other materials provided with the distribution. 26 | # 27 | # THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND 28 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 29 | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 30 | # ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 31 | # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 32 | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 33 | # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 | # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 | # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 | # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 | # SUCH DAMAGE. 38 | 39 | ## 40 | # Default Settings 41 | ## 42 | 43 | NGINX_CONF_FILE="$(awk -F= -v RS=' ' '/conf-path/ {print $2}' <<< $(nginx -V 2>&1))" 44 | NGINX_CONF_DIR="${NGINX_CONF_FILE%/*}" 45 | NGINX_SITES_AVAILABLE="$NGINX_CONF_DIR/sites-available" 46 | NGINX_SITES_ENABLED="$NGINX_CONF_DIR/sites-enabled" 47 | SELECTED_SITE="$2" 48 | 49 | ## 50 | # Script Functions 51 | ## 52 | 53 | ngx_enable_site() { 54 | [[ ! "$SELECTED_SITE" ]] && 55 | ngx_select_site "not_enabled" 56 | 57 | [[ ! -e "$NGINX_SITES_AVAILABLE/$SELECTED_SITE" ]] && 58 | ngx_error "Site does not appear to exist." 59 | [[ -e "$NGINX_SITES_ENABLED/$SELECTED_SITE" ]] && 60 | ngx_error "Site appears to already be enabled" 61 | 62 | ln -sf "$NGINX_SITES_AVAILABLE/$SELECTED_SITE" -T "$NGINX_SITES_ENABLED/$SELECTED_SITE" 63 | ngx_reload 64 | } 65 | 66 | ngx_disable_site() { 67 | [[ ! "$SELECTED_SITE" ]] && 68 | ngx_select_site "is_enabled" 69 | 70 | [[ ! -e "$NGINX_SITES_AVAILABLE/$SELECTED_SITE" ]] && 71 | ngx_error "Site does not appear to be \'available\'. - Not Removing" 72 | [[ ! -e "$NGINX_SITES_ENABLED/$SELECTED_SITE" ]] && 73 | ngx_error "Site does not appear to be enabled." 74 | 75 | rm -f "$NGINX_SITES_ENABLED/$SELECTED_SITE" 76 | ngx_reload 77 | } 78 | 79 | ngx_list_site() { 80 | echo "Available sites:" 81 | ngx_sites "available" 82 | echo "Enabled Sites" 83 | ngx_sites "enabled" 84 | } 85 | 86 | ## 87 | # Helper Functions 88 | ## 89 | 90 | ngx_select_site() { 91 | sites_avail=($NGINX_SITES_AVAILABLE/*) 92 | sa="${sites_avail[@]##*/}" 93 | sites_en=($NGINX_SITES_ENABLED/*) 94 | se="${sites_en[@]##*/}" 95 | 96 | case "$1" in 97 | not_enabled) sites=$(comm -13 <(printf "%s\n" $se) <(printf "%s\n" $sa));; 98 | is_enabled) sites=$(comm -12 <(printf "%s\n" $se) <(printf "%s\n" $sa));; 99 | esac 100 | 101 | ngx_prompt "$sites" 102 | } 103 | 104 | ngx_prompt() { 105 | sites=($1) 106 | i=0 107 | 108 | echo "SELECT A WEBSITE:" 109 | for site in ${sites[@]}; do 110 | echo -e "$i:\t${sites[$i]}" 111 | ((i++)) 112 | done 113 | 114 | read -p "Enter number for website: " i 115 | SELECTED_SITE="${sites[$i]}" 116 | } 117 | 118 | ngx_sites() { 119 | case "$1" in 120 | available) dir="$NGINX_SITES_AVAILABLE";; 121 | enabled) dir="$NGINX_SITES_ENABLED";; 122 | esac 123 | 124 | for file in $dir/*; do 125 | echo -e "\t${file#*$dir/}" 126 | done 127 | } 128 | 129 | ngx_reload() { 130 | read -p "Would you like to reload the Nginx configuration now? (Y/n) " reload 131 | [[ "$reload" != "n" && "$reload" != "N" ]] && invoke-rc.d nginx reload 132 | } 133 | 134 | ngx_error() { 135 | echo -e "${0##*/}: ERROR: $1" 136 | [[ "$2" ]] && ngx_help 137 | exit 1 138 | } 139 | 140 | ngx_help() { 141 | echo "Usage: ${0##*/} [options]" 142 | echo "Options:" 143 | echo -e "\t<-e|--enable> \tEnable site" 144 | echo -e "\t<-d|--disable> \tDisable site" 145 | echo -e "\t<-l|--list>\t\tList sites" 146 | echo -e "\t<-h|--help>\t\tDisplay help" 147 | echo -e "\n\tIf is left out a selection of options will be presented." 148 | echo -e "\tIt is assumed you are using the default sites-enabled and" 149 | echo -e "\tsites-disabled located at $NGINX_CONF_DIR." 150 | } 151 | 152 | ## 153 | # Core Piece 154 | ## 155 | 156 | case "$1" in 157 | -e|--enable) ngx_enable_site;; 158 | -d|--disable) ngx_disable_site;; 159 | -l|--list) ngx_list_site;; 160 | -h|--help) ngx_help;; 161 | *) ngx_error "No Options Selected" 1; ngx_help;; 162 | esac 163 | -------------------------------------------------------------------------------- /nginx/debian/help/examples/virtual_hosts: -------------------------------------------------------------------------------- 1 | ## 2 | # File: 3 | # virtual_hosts 4 | # Description: 5 | # This file is meant to deliver a basic understanding of server blocks. 6 | ## 7 | 8 | ## 9 | # You should look at the following URL's in order to grasp a solid understanding 10 | # of Nginx configuration files in order to fully unleash the power of Nginx. 11 | # http://wiki.nginx.org/Pitfalls 12 | # http://wiki.nginx.org/Configuration 13 | ## 14 | 15 | ## 16 | # Every "virtual host" that you serve will need to be in its own server block. 17 | # 18 | # server { 19 | # ... 20 | # } 21 | # 22 | # After reading this file, you should understand the structure of server blocks 23 | # and be able to understand how to modify them to your needs. 24 | ## 25 | 26 | server { 27 | 28 | # The listen directive is only needed if this server block: 29 | # needs to listen for IPv6 30 | # needs to listen on another port 31 | # If you need to listen for IPv6 then both of the following lines can 32 | # be included. 33 | # DO NOT listen for both SSL and non-SSL in the same server block. 34 | #listen 80; ## listen for ipv4; this line is default and implied 35 | #listen [::]:80 default ipv6only=on; ## listen for ipv6 36 | 37 | # root specifies the document root for the requests 38 | root /usr/share/nginx/www; 39 | 40 | # index specifies the list of files (in order) to be tried in the event 41 | # no file is requested in the URI. 42 | index index.html index.htm; 43 | 44 | # Make site accessible from http://localhost/ 45 | server_name localhost; 46 | 47 | # Unless you run everything as a proxy, you will want to have a root 48 | # location block. This example controls how files are requested. 49 | location / { 50 | # First attempt to serve request as file, then as directory, 51 | # then fall back to index.html. /index.html would normally be 52 | # front end controller pattern for handling "clean url's" in 53 | # a CMS such as Drupal or Wordpress. 54 | try_files $uri $uri/ /index.html; 55 | } 56 | 57 | # This location block would server any requests for /doc as well 58 | # as anything below it. 59 | location /doc { 60 | # root changes the root directory for these requests 61 | root /usr/share; 62 | # autoindex on allows these request to display directory listings 63 | # if a directory was requested 64 | autoindex on; 65 | # We'll allow these requests for localhost 66 | allow 127.0.0.1; 67 | # Anyone outside is forbidden 68 | deny all; 69 | } 70 | 71 | # This location block would serve any requests for /images as well 72 | # as anything below it. 73 | location /images { 74 | # This is the same as /doc except we don't allow indexes 75 | root /usr/share; 76 | autoindex off; 77 | allow 127.0.0.1; 78 | deny all; 79 | } 80 | 81 | # This will serve the file 404.html in the event the request is not found. 82 | error_page 404 /404.html; 83 | 84 | # redirect server error pages to the static page /50x.html 85 | # This will hit if the server generates a 500, 502, 503, or 504 status code 86 | error_page 500 502 503 504 /50x.html; 87 | 88 | # This location block isn't actually needed because our root for the 89 | # server block is the same directory. However, this could be used to 90 | # have a central directory for all error html files. 91 | location = /50x.html { 92 | root /usr/share/nginx/www; 93 | } 94 | 95 | # proxy the PHP scripts to Apache listening on 127.0.0.1:80 96 | # If you're going to proxy to Apache, then just push the whole 97 | # request to it. You'll generally have better performance with 98 | # a dedicated php listener (fastcgi: php-cgi, php-fpm). 99 | #location ~ \.php$ { 100 | # proxy_pass http://127.0.0.1; 101 | #} 102 | 103 | # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 104 | # This is used for passing to php-cgi and php-fpm. 105 | # For more information see /usr/share/doc/nginx/examples/php 106 | location ~ \.php$ { 107 | # This is where the php socket is listening. 108 | fastcgi_pass 127.0.0.1:9000; 109 | fastcgi_index index.php; 110 | include fastcgi_params; 111 | } 112 | 113 | # deny access to .htaccess, .htpasswd, and .htgroup files 114 | location ~ /\.ht { 115 | deny all; 116 | } 117 | } 118 | 119 | 120 | # another virtual host using mix of IP-, name-, and port-based configuration 121 | server { 122 | listen 8000; 123 | listen somename:8080; 124 | server_name somename alias another.alias; 125 | root html; 126 | index index.html index.htm; 127 | 128 | location / { 129 | try_files $uri $uri/ /index.html; 130 | } 131 | } 132 | 133 | 134 | # HTTPS server 135 | server { 136 | listen 443; 137 | server_name localhost; 138 | 139 | root html; 140 | index index.html index.htm; 141 | 142 | ssl on; 143 | ssl_certificate cert.pem; 144 | ssl_certificate_key cert.key; 145 | 146 | ssl_session_timeout 5m; 147 | 148 | ssl_protocols SSLv3 TLSv1; 149 | ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES"; 150 | ssl_prefer_server_ciphers on; 151 | 152 | location / { 153 | try_files $uri $uri/ /index.html; 154 | } 155 | } 156 | -------------------------------------------------------------------------------- /nginx/debian/help/examples/wordpress: -------------------------------------------------------------------------------- 1 | ## 2 | # File: 3 | # wordpress 4 | # Description: 5 | # This file is meant to offer a basic guide to get a Wordpress site up and 6 | # running on Nginx. This file should be almost drop-in if the user is able 7 | # to understand the three lines that need to be changed. 8 | ## 9 | 10 | server { 11 | 12 | # This is the URI of your website. 13 | server_name domain.com; 14 | 15 | # This is the root of the Wordpress directory. 16 | root /var/www/wordpress; 17 | 18 | # In some cases a favicon does not exist but this is not something you 19 | # normally need to worry about. It's also a microscopic image and will 20 | # just clutter the logs. 21 | location = /favicon.ico { 22 | log_not_found off; 23 | access_log off; 24 | } 25 | 26 | # This is for the robots.txt file used by search engines. 27 | location = /robots.txt { 28 | # If you have one, you want to allow them access to it. 29 | allow all; 30 | # If you don't have one, you don't want to fill your logs with 31 | # not found errors. 32 | log_not_found off; 33 | access_log off; 34 | } 35 | 36 | # This location block protects against a known attack. It happens if 37 | # the attacker uploads a non-php file and attempts to run it as a 38 | # php file on the server. 39 | location ~ \..*/.*\.php$ { 40 | return 403; 41 | } 42 | 43 | # This is our primary location block. The try_files directive will 44 | # attempt to serve the data in the order listed. First try the exact 45 | # request (such as an image or text file). If it doesn't exist, see if 46 | # the directory exists. If not, then we move to the last options which 47 | # passes the request to /index.php with the requested query. 48 | location / { 49 | try_files $uri $uri/ /index.php?q=$uri&$args; 50 | } 51 | 52 | # If a PHP file is served, this block will handle the request. This block 53 | # works on the assumption you are using php-cgi listening on /tmp/phpcgi.socket. 54 | # Please see the php example (usr/share/doc/nginx/exmaples/php) for more 55 | # information about setting up PHP. 56 | # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini 57 | location ~ \.php$ { 58 | fastcgi_split_path_info ^(.+\.php)(/.+)$; 59 | include fastcgi_params; 60 | # Intercepting errors will cause PHP errors to appear in Nginx logs 61 | fastcgi_intercept_errors on; 62 | fastcgi_pass unix:/tmp/phpcgi.socket; 63 | } 64 | 65 | # As mentioned above, Nignx is king of static. If we're serving a static 66 | # file that ends with one of the following extensions, it is best to set 67 | # a very high expires time. This will generate fewer requests for the 68 | # file. These requests will be logged if found, but not if they don't 69 | # exist. 70 | location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { 71 | expires max; 72 | log_not_found off; 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /nginx/debian/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Welcome to nginx! 5 | 12 | 13 | 14 |

Welcome to nginx!

15 |

If you see this page, the nginx web server is successfully installed and 16 | working. Further configuration is required.

17 | 18 |

For online documentation and support please refer to 19 | nginx.org

20 | 21 |

22 | Please use the reportbug tool to report bugs in the 23 | nginx package with Debian. However, check existing 25 | bug reports before reporting a new bug. 26 |

27 | 28 |

Thank you for using nginx.

29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /nginx/debian/nginx-common.NEWS: -------------------------------------------------------------------------------- 1 | nginx-common (1.6.2-3) unstable; urgency=medium 2 | 3 | Starting with this release, we changed the default document root from 4 | /var/www to /var/www/html, so that sensitive files from other virtual hosts 5 | wich are typically put into some directory below /var/www are not exposed by 6 | the default virtual host. 7 | 8 | -- Christos Trochalakis Tue, 30 Sep 2014 17:34:58 +0300 9 | 10 | nginx-common (1.6.1-2) unstable; urgency=medium 11 | 12 | As of nginx-1.6.1-2 we have synced all configuration files with upstream and 13 | we plan to keep them in sync from now on. 14 | 15 | Unfortunately that might break existing configuration for some users. Please 16 | check the matrix below for more information: 17 | 18 | File Changes 19 | ----------------------- 20 | koi-win whitespace 21 | koi-utf whitespace 22 | mime-types whitespace, changed js/rss mime type, 23 | minor other changes & additions 24 | scgi_params whitespace, added HTTPS 25 | uwsgi_params whitespace, added HTTPS, removed UWSGI_SCHEME 26 | fastcgi_params whitespace, removed SCRIPT_FILENAME 27 | fastcgi.conf new upstream configuration file 28 | 29 | Fastcgi configuration issues 30 | ============================ 31 | 32 | nginx shipped a modified `fastcgi_params`, which declared `SCRIPT_FILENAME` 33 | fastcgi_param. This line has now been removed. From now on we are also 34 | shipping fastcgi.conf from the upstream repository, which includes a sane 35 | `SCRIPT_FILENAME` parameter value. 36 | 37 | So, if you are using fastcgi_params, you can try switching to fastcgi.conf 38 | or manually set the relevant params. 39 | 40 | You might also want to read the documentation section before proceeding. 41 | 42 | http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html 43 | section: $fastcgi_script_name variable. 44 | 45 | -- Christos Trochalakis Thu, 28 Aug 2014 14:23:42 +0300 46 | 47 | nginx-common (1.4.4-2) unstable; urgency=low 48 | 49 | Per CVE-2013-0337 (bug #701112), we are changing /var/log/nginx permissions 50 | to root:adm 750. If you have manipulated these permissions in any way, you 51 | can add a dpkg-statoverride entry and the directory will not be touched. 52 | You also have to manually set the permissions once, as dpkg doesn't do that 53 | automatically for directories. 54 | 55 | e.g. 56 | chown root:adm /var/log/nginx 57 | chmod 0755 /var/log/nginx 58 | dpkg-statoverride --add root adm 0755 /var/log/nginx 59 | 60 | -- Michael Lustfield Sun, 24 Nov 2013 15:59:52 -0600 61 | 62 | nginx (1.4.1-2) unstable; urgency=medium 63 | 64 | Started with nginx 1.4.1-2 upload, nginx-naxsi-ui switched backend from 65 | MySQL to SQLite. 66 | 67 | This was mostly caused by the future removal of MySQL support in naxsi-ui. 68 | Thus, the nginx maintainers decided to switch from MySQL to SQLite. 69 | 70 | All data contained in the MySQL database is not affected by this switch but 71 | you need to start with a clean SQLite database to ensure nginx-naxsi-ui 72 | reliability. 73 | 74 | -- Cyril Lavier Wed, 5 Jun 2013 09:45:03 +0200 75 | 76 | nginx (0.8.53-1) unstable; urgency=low 77 | 78 | As stated by upstream, the 0.7.x branch is consedered legacy and 0.8.x will 79 | be the new stable branch. For this reason, the nginx maintainers decided to 80 | upload 0.8.53 to unstable. 81 | 82 | -- Kartik Mistry Fri, 26 Nov 2010 19:42:09 +0530 83 | 84 | nginx (0.7.59-1) unstable; urgency=low 85 | 86 | As stated by upstream, the 0.6.x branch is consedered legacy and 0.7.x will 87 | be the new stable branch. For this reason, the nginx maintainers decided to 88 | upload 0.7.59 to unstable. 89 | 90 | Should you get the following error while starting nginx: 91 | 92 | could not build the server_names_hash, you should increase 93 | server_names_hash_bucket_size: 32 94 | 95 | Please add the following parameter to your nginx.conf: 96 | 97 | server_names_hash_bucket_size 100; 98 | 99 | Where 100 is the size of your server names hash bucket. For more information 100 | about this option, please read the following resources: 101 | 102 | http://wiki.nginx.org/NginxHttpCoreModule#server_names_hash_bucket_size 103 | http://thread.gmane.org/gmane.comp.web.nginx.english/820/focus=821 104 | http://thread.gmane.org/gmane.comp.web.nginx.english/985/focus=989 105 | 106 | -- Fabio Tranchitella Sun, 31 May 2009 18:30:10 +0200 107 | 108 | nginx (0.6.30-2) unstable; urgency=low 109 | 110 | As of May 4th., nginx 0.5.x branch is considered legacy and 0.6.x will 111 | be the new stable branch. The announcement was made by Igor Sysoev when 112 | releasing the last 0.5.x version, nginx 0.5.36. 113 | 114 | Debian, the universal operating system, has provided binary packages for 115 | both 0.5 and 0.6 branches in unstable and experimental, and will now offer 116 | only 0.6 packages in the unstable distribution, starting with the 117 | 0.6.30-1 package. 118 | 119 | In the future, Debian will also provide experimental packages for the 120 | next testing branch of nginx, at the moment upstream announces it. 121 | 122 | Should you have any problem with nginx in Debian, please file a bug in 123 | the Debian Bug Tracking System. 124 | 125 | -- Fabio Tranchitella Mon, 12 May 2008 14:24:53 +0200 126 | -------------------------------------------------------------------------------- /nginx/debian/nginx-common.dirs: -------------------------------------------------------------------------------- 1 | etc/nginx 2 | etc/nginx/sites-available 3 | etc/nginx/sites-enabled 4 | etc/nginx/conf.d 5 | etc/ufw/applications.d 6 | usr/share/nginx 7 | var/log/nginx 8 | var/lib/nginx 9 | var/www/html 10 | -------------------------------------------------------------------------------- /nginx/debian/nginx-common.install: -------------------------------------------------------------------------------- 1 | debian/conf/* etc/nginx 2 | debian/ufw/nginx etc/ufw/applications.d 3 | debian/index.html usr/share/nginx/html/ 4 | -------------------------------------------------------------------------------- /nginx/debian/nginx-common.lintian-overrides: -------------------------------------------------------------------------------- 1 | # /var/www/html is the default document root 2 | nginx-common: dir-or-file-in-var-www var/www/html/ 3 | -------------------------------------------------------------------------------- /nginx/debian/nginx-common.manpages: -------------------------------------------------------------------------------- 1 | debian/nginx.1 2 | -------------------------------------------------------------------------------- /nginx/debian/nginx-common.nginx.default: -------------------------------------------------------------------------------- 1 | # Note: You may want to look at the following page before setting the ULIMIT. 2 | # http://wiki.nginx.org/CoreModule#worker_rlimit_nofile 3 | # Set the ulimit variable if you need defaults to change. 4 | # Example: ULIMIT="-n 4096" 5 | #ULIMIT="-n 4096" 6 | 7 | # Define the stop schedule for nginx 8 | # see the start-stop-daemon --retry documentation for more information 9 | # 10 | #STOP_SCHEDULE="QUIT/5/TERM/5/KILL/5" 11 | -------------------------------------------------------------------------------- /nginx/debian/nginx-common.nginx.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ### BEGIN INIT INFO 4 | # Provides: nginx 5 | # Required-Start: $local_fs $remote_fs $network $syslog $named 6 | # Required-Stop: $local_fs $remote_fs $network $syslog $named 7 | # Default-Start: 2 3 4 5 8 | # Default-Stop: 0 1 6 9 | # Short-Description: starts the nginx web server 10 | # Description: starts nginx using start-stop-daemon 11 | ### END INIT INFO 12 | 13 | PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 14 | DAEMON=/usr/sbin/nginx 15 | NAME=nginx 16 | DESC=nginx 17 | 18 | # Include nginx defaults if available 19 | if [ -r /etc/default/nginx ]; then 20 | . /etc/default/nginx 21 | fi 22 | 23 | STOP_SCHEDULE="${STOP_SCHEDULE:-QUIT/5/TERM/5/KILL/5}" 24 | 25 | test -x $DAEMON || exit 0 26 | 27 | . /lib/init/vars.sh 28 | . /lib/lsb/init-functions 29 | 30 | # Try to extract nginx pidfile 31 | PID=$(cat /etc/nginx/nginx.conf | grep -Ev '^\s*#' | awk 'BEGIN { RS="[;{}]" } { if ($1 == "pid") print $2 }' | head -n1) 32 | if [ -z "$PID" ] 33 | then 34 | PID=/run/nginx.pid 35 | fi 36 | 37 | # Check if the ULIMIT is set in /etc/default/nginx 38 | if [ -n "$ULIMIT" ]; then 39 | # Set the ulimits 40 | ulimit $ULIMIT 41 | fi 42 | 43 | # 44 | # Function that starts the daemon/service 45 | # 46 | do_start() 47 | { 48 | # Return 49 | # 0 if daemon has been started 50 | # 1 if daemon was already running 51 | # 2 if daemon could not be started 52 | start-stop-daemon --start --quiet --pidfile $PID --exec $DAEMON --test > /dev/null \ 53 | || return 1 54 | start-stop-daemon --start --quiet --pidfile $PID --exec $DAEMON -- \ 55 | $DAEMON_OPTS 2>/dev/null \ 56 | || return 2 57 | } 58 | 59 | test_nginx_config() { 60 | $DAEMON -t $DAEMON_OPTS >/dev/null 2>&1 61 | } 62 | 63 | # 64 | # Function that stops the daemon/service 65 | # 66 | do_stop() 67 | { 68 | # Return 69 | # 0 if daemon has been stopped 70 | # 1 if daemon was already stopped 71 | # 2 if daemon could not be stopped 72 | # other if a failure occurred 73 | start-stop-daemon --stop --quiet --retry=$STOP_SCHEDULE --pidfile $PID --name $NAME 74 | RETVAL="$?" 75 | 76 | sleep 1 77 | return "$RETVAL" 78 | } 79 | 80 | # 81 | # Function that sends a SIGHUP to the daemon/service 82 | # 83 | do_reload() { 84 | start-stop-daemon --stop --signal HUP --quiet --pidfile $PID --name $NAME 85 | return 0 86 | } 87 | 88 | # 89 | # Rotate log files 90 | # 91 | do_rotate() { 92 | start-stop-daemon --stop --signal USR1 --quiet --pidfile $PID --name $NAME 93 | return 0 94 | } 95 | 96 | # 97 | # Online upgrade nginx executable 98 | # 99 | # "Upgrading Executable on the Fly" 100 | # http://nginx.org/en/docs/control.html 101 | # 102 | do_upgrade() { 103 | # Return 104 | # 0 if nginx has been successfully upgraded 105 | # 1 if nginx is not running 106 | # 2 if the pid files were not created on time 107 | # 3 if the old master could not be killed 108 | if start-stop-daemon --stop --signal USR2 --quiet --pidfile $PID --name $NAME; then 109 | # Wait for both old and new master to write their pid file 110 | while [ ! -s "${PID}.oldbin" ] || [ ! -s "${PID}" ]; do 111 | cnt=`expr $cnt + 1` 112 | if [ $cnt -gt 10 ]; then 113 | return 2 114 | fi 115 | sleep 1 116 | done 117 | # Everything is ready, gracefully stop the old master 118 | if start-stop-daemon --stop --signal QUIT --quiet --pidfile "${PID}.oldbin" --name $NAME; then 119 | return 0 120 | else 121 | return 3 122 | fi 123 | else 124 | return 1 125 | fi 126 | } 127 | 128 | case "$1" in 129 | start) 130 | [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" 131 | do_start 132 | case "$?" in 133 | 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 134 | 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; 135 | esac 136 | ;; 137 | stop) 138 | [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" 139 | do_stop 140 | case "$?" in 141 | 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 142 | 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; 143 | esac 144 | ;; 145 | restart) 146 | log_daemon_msg "Restarting $DESC" "$NAME" 147 | 148 | # Check configuration before stopping nginx 149 | if ! test_nginx_config; then 150 | log_end_msg 1 # Configuration error 151 | exit 0 152 | fi 153 | 154 | do_stop 155 | case "$?" in 156 | 0|1) 157 | do_start 158 | case "$?" in 159 | 0) log_end_msg 0 ;; 160 | 1) log_end_msg 1 ;; # Old process is still running 161 | *) log_end_msg 1 ;; # Failed to start 162 | esac 163 | ;; 164 | *) 165 | # Failed to stop 166 | log_end_msg 1 167 | ;; 168 | esac 169 | ;; 170 | reload|force-reload) 171 | log_daemon_msg "Reloading $DESC configuration" "$NAME" 172 | 173 | # Check configuration before reload nginx 174 | # 175 | # This is not entirely correct since the on-disk nginx binary 176 | # may differ from the in-memory one, but that's not common. 177 | # We prefer to check the configuration and return an error 178 | # to the administrator. 179 | if ! test_nginx_config; then 180 | log_end_msg 1 # Configuration error 181 | exit 0 182 | fi 183 | 184 | do_reload 185 | log_end_msg $? 186 | ;; 187 | configtest|testconfig) 188 | log_daemon_msg "Testing $DESC configuration" 189 | test_nginx_config 190 | log_end_msg $? 191 | ;; 192 | status) 193 | status_of_proc -p $PID "$DAEMON" "$NAME" && exit 0 || exit $? 194 | ;; 195 | upgrade) 196 | log_daemon_msg "Upgrading binary" "$NAME" 197 | do_upgrade 198 | log_end_msg 0 199 | ;; 200 | rotate) 201 | log_daemon_msg "Re-opening $DESC log files" "$NAME" 202 | do_rotate 203 | log_end_msg $? 204 | ;; 205 | *) 206 | echo "Usage: $NAME {start|stop|restart|reload|force-reload|status|configtest|rotate|upgrade}" >&2 207 | exit 3 208 | ;; 209 | esac 210 | 211 | : 212 | -------------------------------------------------------------------------------- /nginx/debian/nginx-common.nginx.logrotate: -------------------------------------------------------------------------------- 1 | /var/log/nginx/*.log { 2 | size 10M 3 | missingok 4 | rotate 52 5 | compress 6 | delaycompress 7 | notifempty 8 | create 0640 www-data adm 9 | sharedscripts 10 | prerotate 11 | if [ -d /etc/logrotate.d/httpd-prerotate ]; then \ 12 | run-parts /etc/logrotate.d/httpd-prerotate; \ 13 | fi \ 14 | endscript 15 | postrotate 16 | invoke-rc.d nginx rotate >/dev/null 2>&1 17 | endscript 18 | } 19 | -------------------------------------------------------------------------------- /nginx/debian/nginx-common.nginx.service: -------------------------------------------------------------------------------- 1 | # Stop dance for nginx 2 | # ======================= 3 | # 4 | # ExecStop sends SIGSTOP (graceful stop) to the nginx process. 5 | # If, after 5s (--retry QUIT/5) nginx is still running, systemd takes control 6 | # and sends SIGTERM (fast shutdown) to the main process. 7 | # After another 5s (TimeoutStopSec=5), and if nginx is alive, systemd sends 8 | # SIGKILL to all the remaining processes in the process group (KillMode=mixed). 9 | # 10 | # nginx signals reference doc: 11 | # http://nginx.org/en/docs/control.html 12 | # 13 | [Unit] 14 | Description=A high performance web server and a reverse proxy server 15 | After=network.target 16 | 17 | [Service] 18 | Type=forking 19 | PIDFile=/run/nginx.pid 20 | ExecStartPre=/usr/sbin/nginx -t -q -g 'daemon on; master_process on;' 21 | ExecStart=/usr/sbin/nginx -g 'daemon on; master_process on;' 22 | ExecReload=/usr/sbin/nginx -g 'daemon on; master_process on;' -s reload 23 | ExecStop=-/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid 24 | TimeoutStopSec=5 25 | KillMode=mixed 26 | 27 | [Install] 28 | WantedBy=multi-user.target 29 | -------------------------------------------------------------------------------- /nginx/debian/nginx-common.postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Handle naxsi removal 5 | dpkg-maintscript-helper rm_conffile \ 6 | /etc/nginx/naxsi.rules 1.6.2-2~ -- "$@" 7 | dpkg-maintscript-helper rm_conffile \ 8 | /etc/nginx/naxsi_core.rules 1.6.2-2~ -- "$@" 9 | dpkg-maintscript-helper rm_conffile \ 10 | /etc/nginx/naxsi-ui.conf.1.4.1 1.6.2-2~ -- "$@" 11 | 12 | case "$1" in 13 | configure) 14 | logdir="/var/log/nginx" 15 | # Ensure secure permissions (CVE-2013-0337) 16 | # http://bugs.debian.org/701112 17 | # 18 | # nginx uses 0755 for log files making them world readable, 19 | # we fix that by using 0750 for the log directory. 20 | # 21 | # Allow local admin to override: 22 | # e.g. dpkg-statoverride --add root adm 0755 /var/log/nginx 23 | if ! dpkg-statoverride --list "$logdir" >/dev/null; then 24 | chown www-data:adm $logdir 25 | chmod 0750 $logdir 26 | fi 27 | # If a symlink doesn't exist and can be created, then create it. 28 | if [ -z $2 ] && [ ! -e /etc/nginx/sites-enabled/default ] && 29 | [ -d /etc/nginx/sites-enabled ] && [ -d /etc/nginx/sites-available ]; then 30 | ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default 31 | fi 32 | 33 | # Create a default index page when not already present. 34 | if [ ! -e /var/www/html/index.nginx-debian.html ]; then 35 | cp /usr/share/nginx/html/index.html /var/www/html/index.nginx-debian.html 36 | fi 37 | 38 | ;; 39 | 40 | abort-upgrade|abort-remove|abort-deconfigure) 41 | ;; 42 | 43 | *) 44 | echo "postinst called with unknown argument \`$1'" >&2 45 | exit 1 46 | ;; 47 | esac 48 | 49 | #DEBHELPER# 50 | 51 | exit 0 52 | -------------------------------------------------------------------------------- /nginx/debian/nginx-common.postrm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Handle naxsi removal 5 | dpkg-maintscript-helper rm_conffile \ 6 | /etc/nginx/naxsi.rules 1.6.2-2~ -- "$@" 7 | dpkg-maintscript-helper rm_conffile \ 8 | /etc/nginx/naxsi_core.rules 1.6.2-2~ -- "$@" 9 | dpkg-maintscript-helper rm_conffile \ 10 | /etc/nginx/naxsi-ui.conf.1.4.1 1.6.2-2~ -- "$@" 11 | 12 | case "$1" in 13 | purge) 14 | rm -rf /var/lib/nginx /var/log/nginx /etc/nginx 15 | ;; 16 | 17 | upgrade|remove|failed-upgrade|abort-install|abort-upgrade|disappear) 18 | ;; 19 | 20 | *) 21 | echo "postrm called with unknown argument \`$1'" >&2 22 | exit 1 23 | ;; 24 | esac 25 | 26 | #DEBHELPER# 27 | 28 | exit 0 29 | -------------------------------------------------------------------------------- /nginx/debian/nginx-common.preinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Handle naxsi removal 5 | dpkg-maintscript-helper rm_conffile \ 6 | /etc/nginx/naxsi.rules 1.6.2-2~ -- "$@" 7 | dpkg-maintscript-helper rm_conffile \ 8 | /etc/nginx/naxsi_core.rules 1.6.2-2~ -- "$@" 9 | dpkg-maintscript-helper rm_conffile \ 10 | /etc/nginx/naxsi-ui.conf.1.4.1 1.6.2-2~ -- "$@" 11 | 12 | case "$1" in 13 | install) 14 | # If we are doing a fresh install, then these files are no longer needed. 15 | # They were around for a very short time and are best simply removed. 16 | rm -f /etc/logrotate.d/nginx-full 17 | rm -f /etc/logrotate.d/nginx-light 18 | rm -f /etc/logrotate.d/nginx-extras 19 | rm -f /etc/logrotate.d/nginx-custom 20 | rm -f /etc/logrotate.d/nginx-common 21 | ;; 22 | 23 | upgrade) 24 | # If this is an upgrade, then they might have the UFW profile in the wrong spot. 25 | if [ -d /etc/ufw/applications.d/nginx ]; then 26 | rm -f /etc/ufw/applications.d/nginx/ufw.profile 27 | rmdir /etc/ufw/applications.d/nginx 28 | fi 29 | rm -f /etc/logrotate.d/nginx-full 30 | rm -f /etc/logrotate.d/nginx-light 31 | rm -f /etc/logrotate.d/nginx-extras 32 | rm -f /etc/logrotate.d/nginx-custom 33 | rm -f /etc/logrotate.d/nginx-common 34 | ;; 35 | 36 | abort-upgrade) 37 | ;; 38 | 39 | *) 40 | echo "preinst called with unknown argument \`$1'" >&2 41 | exit 1 42 | ;; 43 | esac 44 | 45 | #DEBHELPER# 46 | 47 | exit 0 48 | -------------------------------------------------------------------------------- /nginx/debian/nginx-custom.dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | -------------------------------------------------------------------------------- /nginx/debian/nginx-custom.install: -------------------------------------------------------------------------------- 1 | debian/build-custom/objs/nginx usr/sbin 2 | -------------------------------------------------------------------------------- /nginx/debian/nginx-custom.lintian-overrides: -------------------------------------------------------------------------------- 1 | nginx-custom: spelling-error-in-binary usr/sbin/nginx tEH the 2 | -------------------------------------------------------------------------------- /nginx/debian/nginx-custom.postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | case "$1" in 5 | abort-upgrade|abort-remove|abort-deconfigure|configure) 6 | ;; 7 | 8 | *) 9 | echo "postinst called with unknown argument \`$1'" >&2 10 | exit 1 11 | ;; 12 | esac 13 | 14 | if [ -x /etc/init.d/nginx ]; then 15 | if [ -f /run/nginx.pid ] && pidof /usr/sbin/nginx >/dev/null; then 16 | NGX_PID=`cat /run/nginx.pid` 17 | if kill -s USR2 $NGX_PID 2>/dev/null; then 18 | while [ ! -s /run/nginx.pid.oldbin ] || [ ! -s /run/nginx.pid ]; do 19 | cnt=`expr $cnt + 1` 20 | if [ $cnt -gt 10 ]; then 21 | kill -s KILL $NGX_PID 22 | invoke-rc.d nginx start 23 | exit 0 24 | fi 25 | sleep 1 26 | done 27 | NGX_OLD_PID=`cat /run/nginx.pid.oldbin` 28 | kill -s QUIT $NGX_OLD_PID 29 | fi 30 | else 31 | invoke-rc.d nginx start || exit $? 32 | fi 33 | fi 34 | 35 | #DEBHELPER# 36 | 37 | exit 0 38 | -------------------------------------------------------------------------------- /nginx/debian/nginx-custom.prerm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | case "$1" in 5 | remove|remove-in-favour|deconfigure|deconfigure-in-favour) 6 | if [ -x /etc/init.d/nginx ]; then 7 | invoke-rc.d nginx stop || exit $? 8 | fi 9 | ;; 10 | 11 | upgrade|failed-upgrade) 12 | ;; 13 | 14 | *) 15 | echo "prerm called with unknown argument \`$1'" >&2 16 | exit 1 17 | ;; 18 | esac 19 | 20 | #DEBHELPER# 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /nginx/debian/nginx-doc.docs: -------------------------------------------------------------------------------- 1 | README 2 | debian/help/docs/* 3 | -------------------------------------------------------------------------------- /nginx/debian/nginx-doc.examples: -------------------------------------------------------------------------------- 1 | debian/help/examples/* 2 | -------------------------------------------------------------------------------- /nginx/debian/nginx-extras.install: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl -w 2 | 3 | use Config; 4 | 5 | my $vendorarch = substr($Config{vendorarch}, 1); 6 | print "debian/build-extras/objs/src/http/modules/perl/blib/arch/auto/nginx/* $vendorarch/auto/nginx\n"; 7 | print "debian/build-extras/objs/src/http/modules/perl/blib/lib/nginx.pm $vendorarch\n"; 8 | 9 | print "debian/build-extras/objs/nginx usr/sbin\n"; 10 | -------------------------------------------------------------------------------- /nginx/debian/nginx-extras.lintian-overrides: -------------------------------------------------------------------------------- 1 | nginx-extras: spelling-error-in-binary usr/sbin/nginx tEH the 2 | -------------------------------------------------------------------------------- /nginx/debian/nginx-extras.postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | case "$1" in 5 | abort-upgrade|abort-remove|abort-deconfigure|configure) 6 | ;; 7 | 8 | *) 9 | echo "postinst called with unknown argument \`$1'" >&2 10 | exit 1 11 | ;; 12 | esac 13 | 14 | if [ -x /etc/init.d/nginx ]; then 15 | if [ -f /run/nginx.pid ] && pidof /usr/sbin/nginx >/dev/null; then 16 | NGX_PID=`cat /run/nginx.pid` 17 | if kill -s USR2 $NGX_PID 2>/dev/null; then 18 | while [ ! -s /run/nginx.pid.oldbin ] || [ ! -s /run/nginx.pid ]; do 19 | cnt=`expr $cnt + 1` 20 | if [ $cnt -gt 10 ]; then 21 | kill -s KILL $NGX_PID 22 | invoke-rc.d nginx start 23 | exit 0 24 | fi 25 | sleep 1 26 | done 27 | NGX_OLD_PID=`cat /run/nginx.pid.oldbin` 28 | kill -s QUIT $NGX_OLD_PID 29 | fi 30 | else 31 | invoke-rc.d nginx start || exit $? 32 | fi 33 | fi 34 | 35 | #DEBHELPER# 36 | 37 | exit 0 38 | -------------------------------------------------------------------------------- /nginx/debian/nginx-extras.prerm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | case "$1" in 5 | remove|remove-in-favour|deconfigure|deconfigure-in-favour) 6 | if [ -x /etc/init.d/nginx ]; then 7 | invoke-rc.d nginx stop || exit $? 8 | fi 9 | ;; 10 | 11 | upgrade|failed-upgrade) 12 | ;; 13 | 14 | *) 15 | echo "prerm called with unknown argument \`$1'" >&2 16 | exit 1 17 | ;; 18 | esac 19 | 20 | #DEBHELPER# 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /nginx/debian/nginx-full.dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | -------------------------------------------------------------------------------- /nginx/debian/nginx-full.install: -------------------------------------------------------------------------------- 1 | debian/build-full/objs/nginx usr/sbin 2 | -------------------------------------------------------------------------------- /nginx/debian/nginx-full.lintian-overrides: -------------------------------------------------------------------------------- 1 | nginx-full: spelling-error-in-binary usr/sbin/nginx tEH the 2 | -------------------------------------------------------------------------------- /nginx/debian/nginx-full.postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | case "$1" in 5 | abort-upgrade|abort-remove|abort-deconfigure|configure) 6 | ;; 7 | 8 | *) 9 | echo "postinst called with unknown argument \`$1'" >&2 10 | exit 1 11 | ;; 12 | esac 13 | 14 | if [ -x /etc/init.d/nginx ]; then 15 | if [ -f /run/nginx.pid ] && pidof /usr/sbin/nginx >/dev/null; then 16 | NGX_PID=`cat /run/nginx.pid` 17 | if kill -s USR2 $NGX_PID 2>/dev/null; then 18 | while [ ! -s /run/nginx.pid.oldbin ] || [ ! -s /run/nginx.pid ]; do 19 | cnt=`expr $cnt + 1` 20 | if [ $cnt -gt 10 ]; then 21 | kill -s KILL $NGX_PID 22 | invoke-rc.d nginx start 23 | exit 0 24 | fi 25 | sleep 1 26 | done 27 | NGX_OLD_PID=`cat /run/nginx.pid.oldbin` 28 | kill -s QUIT $NGX_OLD_PID 29 | fi 30 | else 31 | invoke-rc.d nginx start || exit $? 32 | fi 33 | fi 34 | 35 | #DEBHELPER# 36 | 37 | exit 0 38 | -------------------------------------------------------------------------------- /nginx/debian/nginx-full.prerm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | case "$1" in 5 | remove|remove-in-favour|deconfigure|deconfigure-in-favour) 6 | if [ -x /etc/init.d/nginx ]; then 7 | invoke-rc.d nginx stop || exit $? 8 | fi 9 | ;; 10 | 11 | upgrade|failed-upgrade) 12 | ;; 13 | 14 | *) 15 | echo "prerm called with unknown argument \`$1'" >&2 16 | exit 1 17 | ;; 18 | esac 19 | 20 | #DEBHELPER# 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /nginx/debian/nginx-light.dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | -------------------------------------------------------------------------------- /nginx/debian/nginx-light.install: -------------------------------------------------------------------------------- 1 | debian/build-light/objs/nginx usr/sbin 2 | -------------------------------------------------------------------------------- /nginx/debian/nginx-light.lintian-overrides: -------------------------------------------------------------------------------- 1 | nginx-light: spelling-error-in-binary usr/sbin/nginx tEH the 2 | -------------------------------------------------------------------------------- /nginx/debian/nginx-light.postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | case "$1" in 5 | abort-upgrade|abort-remove|abort-deconfigure|configure) 6 | ;; 7 | 8 | *) 9 | echo "postinst called with unknown argument \`$1'" >&2 10 | exit 1 11 | ;; 12 | esac 13 | 14 | if [ -x /etc/init.d/nginx ]; then 15 | if [ -f /run/nginx.pid ] && pidof /usr/sbin/nginx >/dev/null; then 16 | NGX_PID=`cat /run/nginx.pid` 17 | if kill -s USR2 $NGX_PID 2>/dev/null; then 18 | while [ ! -s /run/nginx.pid.oldbin ] || [ ! -s /run/nginx.pid ]; do 19 | cnt=`expr $cnt + 1` 20 | if [ $cnt -gt 10 ]; then 21 | kill -s KILL $NGX_PID 22 | invoke-rc.d nginx start 23 | exit 0 24 | fi 25 | sleep 1 26 | done 27 | NGX_OLD_PID=`cat /run/nginx.pid.oldbin` 28 | kill -s QUIT $NGX_OLD_PID 29 | fi 30 | else 31 | invoke-rc.d nginx start || exit $? 32 | fi 33 | fi 34 | 35 | #DEBHELPER# 36 | 37 | exit 0 38 | -------------------------------------------------------------------------------- /nginx/debian/nginx-light.prerm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | case "$1" in 5 | remove|remove-in-favour|deconfigure|deconfigure-in-favour) 6 | if [ -x /etc/init.d/nginx ]; then 7 | invoke-rc.d nginx stop || exit $? 8 | fi 9 | ;; 10 | 11 | upgrade|failed-upgrade) 12 | ;; 13 | 14 | *) 15 | echo "prerm called with unknown argument \`$1'" >&2 16 | exit 1 17 | ;; 18 | esac 19 | 20 | #DEBHELPER# 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /nginx/debian/nginx.1: -------------------------------------------------------------------------------- 1 | .TH "nginx" "1" "" "" "" 2 | .SH "NAME" 3 | nginx \- small, powerful, scalable web/proxy server 4 | .SH "SYNOPSIS" 5 | \fBnginx\fR [\fIoptions\fR] <\fIconfiguration file\fR> 6 | .SH "DESCRIPTION" 7 | .PP 8 | \fBNginx\fR ("engine X") is a high\-performance web and reverse proxy server 9 | created by Igor Sysoev. It can be used both as a standalone web server and as a 10 | proxy to reduce the load on back\-end HTTP or mail servers. 11 | .SH "OPTIONS" 12 | .TP 13 | A summary of options is included below: 14 | .TP 15 | \fB\-?\fR,\fB\-h\fR 16 | Show this help. 17 | .TP 18 | \fB\-v\fR 19 | Show version and exit. 20 | .TP 21 | \fB\-V\fR 22 | Show version and configure options then exit. 23 | .TP 24 | \fB\-s\fR \fIsignal\fR 25 | Send signal to a master process: stop, quit, reopen, reload. 26 | .TP 27 | \fB\-p\fR \fIprefix\fR 28 | Set prefix path. 29 | .TP 30 | \fB\-g\fR \fIdirectives\fR 31 | Set global directives out of configuration file. 32 | .TP 33 | \fB\-c\fR <\fIconfiguration file\fR> 34 | Specifies a particular configuration file for nginx to load. 35 | .TP 36 | \fB\-t\fR 37 | Tests nginx configuration and exit. 38 | .TP 39 | .SH "SEE ALSO" 40 | Website: 41 | .TP 42 | .SH "AUTHORS" 43 | \fBnginx\fR was written by Igor Sysoev . 44 | .TP 45 | This manual page was written by Jose Parrella and 46 | Kartik Mistry , for the Debian project (but may be used 47 | by others). 48 | -------------------------------------------------------------------------------- /nginx/debian/patches/easyengine-branding.patch: -------------------------------------------------------------------------------- 1 | Index: nginx-1.14.0/src/core/nginx.h 2 | =================================================================== 3 | --- nginx-1.14.0.orig/src/core/nginx.h 4 | +++ nginx-1.14.0/src/core/nginx.h 5 | @@ -11,7 +11,7 @@ 6 | 7 | #define nginx_version 1014000 8 | #define NGINX_VERSION "1.14.0" 9 | -#define NGINX_VER "nginx/" NGINX_VERSION 10 | +#define NGINX_VER "nginx/" NGINX_VERSION " (EasyEngine)" 11 | 12 | #ifdef NGX_BUILD 13 | #define NGINX_VER_BUILD NGINX_VER " (" NGX_BUILD ")" 14 | -------------------------------------------------------------------------------- /nginx/debian/patches/perl-use-dpkg-buildflags.patch: -------------------------------------------------------------------------------- 1 | Description: Use linker flags from environment for perl (dpkg-buildflags). 2 | Necessary for hardening flags. 3 | Author: Christos Trochalakis 4 | Index: b/src/http/modules/perl/Makefile.PL 5 | =================================================================== 6 | --- a/src/http/modules/perl/Makefile.PL 7 | +++ b/src/http/modules/perl/Makefile.PL 8 | @@ -3,6 +3,7 @@ 9 | # Copyright (C) Nginx, Inc. 10 | 11 | use 5.006001; 12 | +use Config; 13 | use ExtUtils::MakeMaker; 14 | 15 | WriteMakefile( 16 | @@ -14,6 +15,9 @@ WriteMakefile( 17 | AUTHOR => 'Igor Sysoev', 18 | 19 | CCFLAGS => "$ENV{NGX_PM_CFLAGS}", 20 | + # Pass link hardening flags 21 | + # $Config{lddlflags} is the default 22 | + LDDLFLAGS => "$Config{lddlflags} $ENV{DEBIAN_NGINX_PERL_LDFLAGS}", 23 | OPTIMIZE => '-O', 24 | 25 | LDDLFLAGS => "$ENV{NGX_PM_LDFLAGS}", 26 | -------------------------------------------------------------------------------- /nginx/debian/patches/series: -------------------------------------------------------------------------------- 1 | easyengine-branding.patch 2 | perl-use-dpkg-buildflags.patch 3 | -------------------------------------------------------------------------------- /nginx/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | export DH_VERBOSE=1 3 | 4 | debian_cflags:=$(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) 5 | debian_ldflags:=$(shell dpkg-buildflags --get LDFLAGS) 6 | 7 | # export necessary perl hardenging flags 8 | # see: src/http/modules/perl/Makefile.PL 9 | DEBIAN_NGINX_PERL_LDFLAGS:= $(debian_ldflags) 10 | export DEBIAN_NGINX_PERL_LDFLAGS 11 | 12 | FLAVOURS := full light extras custom ee 13 | 14 | MODULESDIR = $(CURDIR)/debian/modules 15 | BASEDIR = $(CURDIR) 16 | $(foreach flavour,$(FLAVOURS),$(eval BUILDDIR_$(flavour) = $(CURDIR)/debian/build-$(flavour))) 17 | 18 | DEB_BUILD_ARCH ?=$(shell dpkg-architecture -qDEB_BUILD_ARCH) 19 | ifeq ($(DEB_BUILD_ARCH),sparc) 20 | debian_cflags += -m32 -mcpu=ultrasparc 21 | endif 22 | 23 | ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) 24 | NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) 25 | MAKEFLAGS += -j$(NUMJOBS) 26 | endif 27 | 28 | # configure flags 29 | common_configure_flags := \ 30 | --with-cc-opt="$(debian_cflags)" \ 31 | --with-ld-opt="$(debian_ldflags)" \ 32 | --prefix=/usr/share/nginx \ 33 | --conf-path=/etc/nginx/nginx.conf \ 34 | --http-log-path=/var/log/nginx/access.log \ 35 | --error-log-path=/var/log/nginx/error.log \ 36 | --lock-path=/var/lock/nginx.lock \ 37 | --pid-path=/run/nginx.pid \ 38 | --http-client-body-temp-path=/var/lib/nginx/body \ 39 | --http-fastcgi-temp-path=/var/lib/nginx/fastcgi \ 40 | --http-proxy-temp-path=/var/lib/nginx/proxy \ 41 | --http-scgi-temp-path=/var/lib/nginx/scgi \ 42 | --http-uwsgi-temp-path=/var/lib/nginx/uwsgi \ 43 | --with-debug \ 44 | --with-pcre-jit \ 45 | --with-http_ssl_module \ 46 | --with-http_stub_status_module \ 47 | --with-http_realip_module \ 48 | --with-http_auth_request_module 49 | 50 | light_configure_flags := \ 51 | $(common_configure_flags) \ 52 | --with-http_gzip_static_module \ 53 | --without-http_browser_module \ 54 | --without-http_geo_module \ 55 | --without-http_limit_req_module \ 56 | --without-http_limit_conn_module \ 57 | --without-http_memcached_module \ 58 | --without-http_referer_module \ 59 | --without-http_scgi_module \ 60 | --without-http_ssi_module \ 61 | --without-http_userid_module \ 62 | --without-http_uwsgi_module \ 63 | --add-module=$(MODULESDIR)/nginx-echo 64 | 65 | full_configure_flags := \ 66 | $(common_configure_flags) \ 67 | --with-http_addition_module \ 68 | --with-http_dav_module \ 69 | --with-http_geoip_module \ 70 | --with-http_gzip_static_module \ 71 | --with-http_image_filter_module \ 72 | --with-http_v2_module \ 73 | --with-http_sub_module \ 74 | --with-http_xslt_module \ 75 | --with-mail \ 76 | --with-mail_ssl_module \ 77 | --add-module=$(MODULESDIR)/nginx-auth-pam \ 78 | --add-module=$(MODULESDIR)/nginx-dav-ext-module \ 79 | --add-module=$(MODULESDIR)/nginx-echo \ 80 | --add-module=$(MODULESDIR)/nginx-upstream-fair \ 81 | --add-module=$(MODULESDIR)/ngx_http_substitutions_filter_module 82 | 83 | extras_configure_flags := \ 84 | $(common_configure_flags) \ 85 | --with-http_addition_module \ 86 | --with-http_dav_module \ 87 | --with-http_flv_module \ 88 | --with-http_geoip_module \ 89 | --with-http_gzip_static_module \ 90 | --with-http_image_filter_module \ 91 | --with-http_mp4_module \ 92 | --with-http_perl_module \ 93 | --with-http_random_index_module \ 94 | --with-http_secure_link_module \ 95 | --with-http_v2_module \ 96 | --with-http_sub_module \ 97 | --with-http_xslt_module \ 98 | --with-mail \ 99 | --with-mail_ssl_module \ 100 | --add-module=$(MODULESDIR)/headers-more-nginx-module \ 101 | --add-module=$(MODULESDIR)/nginx-auth-pam \ 102 | --add-module=$(MODULESDIR)/nginx-cache-purge \ 103 | --add-module=$(MODULESDIR)/nginx-dav-ext-module \ 104 | --add-module=$(MODULESDIR)/nginx-development-kit \ 105 | --add-module=$(MODULESDIR)/nginx-echo \ 106 | --add-module=$(MODULESDIR)/ngx-fancyindex \ 107 | --add-module=$(MODULESDIR)/nginx-lua \ 108 | --add-module=$(MODULESDIR)/nginx-upload-progress \ 109 | --add-module=$(MODULESDIR)/nginx-upstream-fair \ 110 | --add-module=$(MODULESDIR)/ngx_http_substitutions_filter_module 111 | 112 | custom_configure_flags := \ 113 | $(common_configure_flags) \ 114 | --with-http_addition_module \ 115 | --with-http_geoip_module \ 116 | --with-http_gzip_static_module \ 117 | --with-http_image_filter_module \ 118 | --with-http_v2_module \ 119 | --with-http_sub_module \ 120 | --with-http_xslt_module \ 121 | --add-module=$(MODULESDIR)/headers-more-nginx-module \ 122 | --add-module=$(MODULESDIR)/nginx-auth-pam \ 123 | --add-module=$(MODULESDIR)/nginx-cache-purge \ 124 | --add-module=$(MODULESDIR)/nginx-echo \ 125 | --add-module=$(MODULESDIR)/ngx-fancyindex \ 126 | --add-module=$(MODULESDIR)/nginx-lua \ 127 | --add-module=$(MODULESDIR)/nginx-upload-progress \ 128 | --add-module=$(MODULESDIR)/nginx-upstream-fair \ 129 | --add-module=$(MODULESDIR)/ngx_http_substitutions_filter_module \ 130 | --add-module=$(MODULESDIR)/memc-nginx-module \ 131 | --add-module=$(MODULESDIR)/srcache-nginx-module \ 132 | --add-module=$(MODULESDIR)/HttpRedisModule \ 133 | --add-module=$(MODULESDIR)/redis2-nginx-module \ 134 | --add-module=$(MODULESDIR)/ngx_devel_kit \ 135 | --add-module=$(MODULESDIR)/set-misc-nginx-module 136 | 137 | ee_configure_flags := \ 138 | $(custom_configure_flags) 139 | 140 | %: 141 | dh $@ --with systemd 142 | 143 | override_dh_auto_configure: $(foreach flavour,$(FLAVOURS),config.arch.$(flavour)) 144 | override_dh_auto_build: $(foreach flavour,$(FLAVOURS),build.arch.$(flavour)) 145 | override_dh_strip: $(foreach flavour,$(FLAVOURS),strip.arch.$(flavour)) 146 | override_dh_clean: $(foreach flavour,$(FLAVOURS),clean.$(flavour)) 147 | dh_clean 148 | 149 | override_dh_installinit: 150 | dh_installinit --no-restart-on-upgrade --no-start --name=nginx 151 | 152 | override_dh_systemd_enable: 153 | dh_systemd_enable --name=nginx 154 | 155 | override_dh_installlogrotate: 156 | dh_installlogrotate --package nginx-common --name=nginx 157 | 158 | build.arch.%: 159 | $(MAKE) -C $(BUILDDIR_$*) build 160 | 161 | strip.arch.%: 162 | dh_strip --package=nginx-$(*) --dbg-package=nginx-$(*)-dbg 163 | 164 | config.arch.%: 165 | dh_testdir 166 | mkdir -p $(BUILDDIR_$*) 167 | cp -Pa $(CURDIR)/auto $(BUILDDIR_$*)/ 168 | cp -Pa $(CURDIR)/conf $(BUILDDIR_$*)/ 169 | cp -Pa $(CURDIR)/configure $(BUILDDIR_$*)/ 170 | cp -Pa $(CURDIR)/contrib $(BUILDDIR_$*)/ 171 | cp -Pa $(CURDIR)/src $(BUILDDIR_$*)/ 172 | cp -Pa $(CURDIR)/man $(BUILDDIR_$*)/ 173 | cd $(BUILDDIR_$*) && ./configure $($*_configure_flags) 174 | 175 | clean.%: 176 | rm -rf $(BUILDDIR_$*) 177 | -------------------------------------------------------------------------------- /nginx/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /nginx/debian/source/include-binaries: -------------------------------------------------------------------------------- 1 | debian/modules/nginx-upload-progress/test/100 2 | debian/modules/ngx_pagespeed/psol.tar.gz 3 | debian/modules/naxsi/t/fuzz/mini-unknown-CT-post 4 | debian/modules/naxsi/t/fuzz/med-post-non-ascii -------------------------------------------------------------------------------- /nginx/debian/tests/control: -------------------------------------------------------------------------------- 1 | Test-Command: curl --silent --fail -o /dev/null -w "response_code: %{http_code}\n" http://127.0.0.1/ 2 | Restrictions: allow-stderr isolation-container 3 | Depends: nginx-light, curl 4 | 5 | Test-Command: curl --silent --fail -o /dev/null -w "response_code: %{http_code}\n" http://127.0.0.1/ 6 | Restrictions: allow-stderr isolation-container 7 | Depends: nginx-full, curl 8 | 9 | Test-Command: curl --silent --fail -o /dev/null -w "response_code: %{http_code}\n" http://127.0.0.1/ 10 | Restrictions: allow-stderr isolation-container 11 | Depends: nginx-extras, curl 12 | 13 | Test-Command: curl --silent --fail -o /dev/null -w "response_code: %{http_code}\n" http://127.0.0.1/ 14 | Restrictions: allow-stderr isolation-container 15 | Depends: nginx-custom, curl 16 | -------------------------------------------------------------------------------- /nginx/debian/ufw/nginx: -------------------------------------------------------------------------------- 1 | [Nginx HTTP] 2 | title=Web Server (Nginx, HTTP) 3 | description=Small, but very powerful and efficient web server 4 | ports=80/tcp 5 | 6 | [Nginx HTTPS] 7 | title=Web Server (Nginx, HTTPS) 8 | description=Small, but very powerful and efficient web server 9 | ports=443/tcp 10 | 11 | [Nginx Full] 12 | title=Web Server (Nginx, HTTP + HTTPS) 13 | description=Small, but very powerful and efficient web server 14 | ports=80,443/tcp 15 | -------------------------------------------------------------------------------- /nginx/debian/upstream/signing-key.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP PUBLIC KEY BLOCK----- 2 | 3 | mQENBE7SKu8BCADQo6x4ZQfAcPlJMLmL8zBEBUS6GyKMMMDtrTh3Yaq481HB54oR 4 | 0cpKL05Ff9upjrIzLD5TJUCzYYM9GQOhguDUP8+ZU9JpSz3yO2TvH7WBbUZ8FADf 5 | hblmmUBLNgOWgLo3W+FYhl3mz1GFS2Fvid6Tfn02L8CBAj7jxbjL1Qj/OA/WmLLc 6 | m6BMTqI7IBlYW2vyIOIHasISGiAwZfp0ucMeXXvTtt14LGa8qXVcFnJTdwbf03AS 7 | ljhYrQnKnpl3VpDAoQt8C68YCwjaNJW59hKqWB+XeIJ9CW98+EOAxLAFszSyGanp 8 | rCqPd0numj9TIddjcRkTA/ZbmCWK+xjpVBGXABEBAAG0IU1heGltIERvdW5pbiA8 9 | bWRvdW5pbkBtZG91bmluLnJ1PohGBBARAgAGBQJO01Y/AAoJEOzw6QssFyCDVyQA 10 | n3qwTZlcZgyyzWu9Cs8gJ0CXREaSAJ92QjGLT9DijTcbB+q9OS/nl16Z/IhGBBAR 11 | AgAGBQJO02JDAAoJEKk3YTmlJMU+P64AnjCKEXFelSVMtgefJk3+vpyt3QX1AKCH 12 | 9M3MbTWPeDUL+MpULlfdyfvjj4heBBARCAAGBQJRCTwgAAoJEFGFCWhsfl6CzF0B 13 | AJsQ3DJbtGcZ+0VIcM2a06RRQfBvIHqm1A/1WSYmObLGAP90lxWlNjSugvUUlqTk 14 | YEEgRTGozgixSyMWGJrNwqgMYokBOAQTAQIAIgUCTtIq7wIbAwYLCQgHAwIGFQgC 15 | CQoLBBYCAwECHgECF4AACgkQUgqZk6HAUvj+iwf/b4FS6zVzJ5T0v1vcQGD4ZzXe 16 | D5xMC4BJW414wVMU15rfX7aCdtoCYBNiApPxEd7SwiyxWRhRA9bikUq87JEgmnyV 17 | 0iYbHZvCvc1jOkx4WR7E45t1Mi29KBoPaFXA9X5adZkYcOQLDxa2Z8m6LGXnlF6N 18 | tJkxQ8APrjZsdrbDvo3HxU9muPcq49ydzhgwfLwpUs11LYkwB0An9WRPuv3jporZ 19 | /XgI6RfPMZ5NIx+FRRCjn6DnfHboY9rNF6NzrOReJRBhXCi6I+KkHHEnMoyg8XET 20 | 9lVkfHTOl81aIZqrAloX3/00TkYWyM2zO9oYpOg6eUFCX/Lw4MJZsTcT5EKVxLkB 21 | DQRO0irvAQgA0LjCc8S6oZzjiap2MjRNhRFA5BYjXZRZBdKF2VP74avt2/RELq8G 22 | W0n7JWmKn6vvrXabEGLyfkCngAhTq9tJ/K7LPx/bmlO5+jboO/1inH2BTtLiHjAX 23 | vicXZk3oaZt2Sotx5mMI3yzpFQRVqZXsi0LpUTPJEh3oS8IdYRjslQh1A7P5hfCZ 24 | wtzwb/hKm8upODe/ITUMuXeWfLuQj/uEU6wMzmfMHb+jlYMWtb+v98aJa2FODeKP 25 | mWCXLa7bliXp1SSeBOEfIgEAmjM6QGlDx5sZhr2Ss2xSPRdZ8DqD7oiRVzmstX1Y 26 | oxEzC0yXfaefC7SgM0nMnaTvYEOYJ9CH3wARAQABiQEfBBgBAgAJBQJO0irvAhsM 27 | AAoJEFIKmZOhwFL4844H/jo8icCcS6eOWvnen7lg0FcCo1fIm4wW3tEmkQdchSHE 28 | CJDq7pgTloN65pwB5tBoT47cyYNZA9eTfJVgRc74q5cexKOYrMC3KuAqWbwqXhkV 29 | s0nkWxnOIidTHSXvBZfDFA4Idwte94Thrzf8Pn8UESudTiqrWoCBXk2UyVsl03gJ 30 | blSJAeJGYPPeo+Yj6m63OWe2+/S2VTgmbPS/RObn0Aeg7yuff0n5+ytEt2KL51gO 31 | QE2uIxTCawHr12PsllPkbqPk/PagIttfEJqn9b0CrqPC3HREePb2aMJ/Ctw/76CO 32 | wn0mtXeIXLCTvBmznXfaMKllsqbsy2nCJ2P2uJjOntw= 33 | =ISka 34 | -----END PGP PUBLIC KEY BLOCK----- 35 | -------------------------------------------------------------------------------- /nginx/debian/watch: -------------------------------------------------------------------------------- 1 | version=3 2 | opts=pgpsigurlmangle=s/$/.asc/ \ 3 | http://nginx.org/download/nginx-(\d\.[02468]\.\d+)\.tar\.gz 4 | -------------------------------------------------------------------------------- /ppa.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | 4 | 5 | # Define NGINX version 6 | PACKAGE_NAME=$1 7 | NGINX_VERSION=$2 8 | EMAIL_ADDRESS=$3 9 | 10 | # Capture errors 11 | function ppa_error() 12 | { 13 | echo "[ `date` ] $(tput setaf 1)$@$(tput sgr0)" 14 | exit $2 15 | } 16 | 17 | # Echo function 18 | function ppa_lib_echo() 19 | { 20 | echo $(tput setaf 4)$@$(tput sgr0) 21 | } 22 | 23 | # Update/Install Packages 24 | ppa_lib_echo "Execute: apt-get update, please wait" 25 | sudo apt-get update || ppa_error "Unable to update packages, exit status = " $? 26 | ppa_lib_echo "Installing required packages, please wait" 27 | sudo apt-get -y install git dh-make devscripts debhelper dput gnupg-agent dh-systemd vim || ppa_error "Unable to install packages, exit status = " $? 28 | 29 | # Lets Clone Launchpad repository 30 | ppa_lib_echo "Copy Launchpad Debian files, please wait" 31 | rm -rf /tmp/launchpad && rsync -az nginx /tmp/launchpad/ \ 32 | || ppa_error "Unable to clone launchpad repo, exit status = " $? 33 | 34 | # Configure NGINX PPA 35 | mkdir -p ~/PPA/$PACKAGE_NAME && cd ~/PPA/$PACKAGE_NAME \ 36 | || ppa_error "Unable to create ~/PPA/$PACKAGE_NAME, exit status = " $? 37 | 38 | # Download NGINX 39 | ppa_lib_echo "Download nginx, please wait" 40 | wget -c http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz \ 41 | || ppa_error "Unable to download nginx-${NGINX_VERSION}.tar.gz, exit status = " $? 42 | tar -zxvf nginx-${NGINX_VERSION}.tar.gz \ 43 | || ppa_error "Unable to extract nginx, exit status = " $? 44 | cd nginx-${NGINX_VERSION} \ 45 | || ppa_error "Unable to change directory, exit status = " $? 46 | 47 | # Lets start building 48 | ppa_lib_echo "Execute: dh_make --single --copyright gpl --email $EMAIL_ADDRESS --createorig, please wait" 49 | dh_make --single --copyright gpl --email $EMAIL_ADDRESS --createorig \ 50 | || ppa_error "Unable to run dh_make command, exit status = " $? 51 | rm debian/*.ex debian/*.EX \ 52 | || ppa_error "Unable to remove unwanted files, exit status = " $? 53 | 54 | # Let's copy files 55 | cp -av /tmp/launchpad/nginx/debian/* ~/PPA/nginx/nginx-${NGINX_VERSION}/debian/ \ 56 | || ppa_error "Unable to copy launchpad debian files, exit status = " $? 57 | 58 | # NGINX modules 59 | ppa_lib_echo "Downloading NGINX modules, please wait" 60 | mkdir ~/PPA/nginx/modules && cd ~/PPA/nginx/modules \ 61 | || ppa_error "Unable to create ~/PPA/nginx/modules, exit status = " $? 62 | 63 | ppa_lib_echo "1/18 headers-more-nginx-module" 64 | git clone https://github.com/agentzh/headers-more-nginx-module.git \ 65 | || ppa_error "Unable to clone headers-more-nginx-module repo, exit status = " $? 66 | 67 | ppa_lib_echo "2/18 naxsi " 68 | git clone https://github.com/nbs-system/naxsi \ 69 | || ppa_error "Unable to clone naxsi repo, exit status = " $? 70 | cp -av ~/PPA/nginx/modules/naxsi/naxsi_config/naxsi_core.rules ~/PPA/nginx/nginx-${NGINX_VERSION}/debian/conf/ \ 71 | || ppa_error "Unable to copy naxsi files, exit status = " $? 72 | 73 | ppa_lib_echo "3/18 nginx-auth-pam" 74 | git clone https://github.com/sto/ngx_http_auth_pam_module nginx-auth-pam \ 75 | || ppa_error "Unable to clone ngx_http_auth_pam_module repo, exit status = " $? 76 | 77 | ppa_lib_echo "4/18 nginx-cache-purge" 78 | git clone https://github.com/FRiCKLE/ngx_cache_purge.git nginx-cache-purge \ 79 | || ppa_error "Unable to clone nginx-cache-purge repo, exit status = " $? 80 | 81 | ppa_lib_echo "5/18 nginx-dav-ext-module" 82 | git clone https://github.com/arut/nginx-dav-ext-module.git \ 83 | || ppa_error "Unable to clone nginx-dav-ext-module repo, exit status = " $? 84 | 85 | ppa_lib_echo "6/18 nginx-development-kit" 86 | git clone https://github.com/simpl/ngx_devel_kit.git nginx-development-kit \ 87 | || ppa_error "Unable to clone nginx-development-kit repo, exit status = " $? 88 | 89 | ppa_lib_echo "7/18 nginx-echo" 90 | git clone https://github.com/agentzh/echo-nginx-module.git nginx-echo \ 91 | || ppa_error "Unable to clone nginx-echo repo, exit status = " $? 92 | 93 | ppa_lib_echo "8/18 nginx-lua" 94 | git clone https://github.com/chaoslawful/lua-nginx-module.git nginx-lua \ 95 | || ppa_error "Unable to clone nginx-lua repo, exit status = " $? 96 | 97 | ppa_lib_echo "9/18 nginx-upload-progress-module" 98 | git clone https://github.com/masterzen/nginx-upload-progress-module.git nginx-upload-progress \ 99 | || ppa_error "Unable to clone nginx-upload-progress repo, exit status = " $? 100 | 101 | ppa_lib_echo "10/18 nginx-upstream-fair" 102 | git clone https://github.com/itoffshore/nginx-upstream-fair.git \ 103 | || ppa_error "Unable to clone nginx-upstream-fair repo, exit status = " $? 104 | 105 | ppa_lib_echo "11/18 ngx-fancyindex" 106 | git clone https://github.com/aperezdc/ngx-fancyindex.git ngx-fancyindex \ 107 | || ppa_error "Unable to clone ngx-fancyindex repo, exit status = " $? 108 | 109 | ppa_lib_echo "12/18 ngx_http_substitutions_filter_module" 110 | git clone https://github.com/yaoweibin/ngx_http_substitutions_filter_module.git \ 111 | || ppa_error "Unable to clone ngx_http_substitutions_filter_module repo, exit status = " $? 112 | 113 | ppa_lib_echo "13/18 memc-nginx-module" 114 | git clone https://github.com/openresty/memc-nginx-module.git \ 115 | || ppa_error "Unable to clone memc-nginx-module repo, exit status = " $? 116 | 117 | ppa_lib_echo "14/18 srcache-nginx-module" 118 | git clone https://github.com/openresty/srcache-nginx-module.git \ 119 | || ppa_error "Unable to clone srcache-nginx-module repo, exit status = " $? 120 | 121 | ppa_lib_echo "15/18 HttpRedisModule" 122 | git clone https://github.com/EasyEngine/ngx_http_redis.git HttpRedisModule \ 123 | || ppa_error "Unable to clone nginx_http_redis_module repo, exit status = " $? 124 | 125 | ppa_lib_echo "16/18 redis2-nginx-module" 126 | git clone https://github.com/openresty/redis2-nginx-module.git \ 127 | || ppa_error "Unable to clone redis2-nginx-module repo, exit status = " $? 128 | 129 | ppa_lib_echo "17/18 ngx_devel_kit-module" 130 | git clone https://github.com/simpl/ngx_devel_kit.git \ 131 | || ppa_error "Unable to clone ngx_devel_kit-module repo, exit status = " $? 132 | 133 | ppa_lib_echo "18/18 set-misc-nginx-module" 134 | git clone https://github.com/openresty/set-misc-nginx-module.git \ 135 | || ppa_error "Unable to clone set-misc-nginx-module repo, exit status = " $? 136 | 137 | cp -av ~/PPA/nginx/modules ~/PPA/nginx/nginx-${NGINX_VERSION}/debian/ \ 138 | || ppa_error "Unable to copy modules files, exit status = " $? 139 | 140 | # Edit changelog 141 | vim ~/PPA/nginx/nginx-${NGINX_VERSION}/debian/changelog 142 | --------------------------------------------------------------------------------