Skip to content
Browse files

FL-554: new nginx-1.4.1-r5 with lots of improvements. See FL-554 for …

…more info.
  • Loading branch information...
1 parent e9a522d commit a72fe961e83cc8656735856f8d48223f972d503e @danielrobbins danielrobbins committed Sep 10, 2013
Showing with 708 additions and 7,732 deletions.
  1. +16 −0 www-servers/nginx/Manifest
  2. +0 −73 www-servers/nginx/files/1.1.15-r1/nginx.init
  3. +0 −12 www-servers/nginx/files/1.1.15-r1/sites-available/localhost
  4. +0 −55 www-servers/nginx/files/1.1.15/nginx.conf
  5. +0 −73 www-servers/nginx/files/1.1.15/nginx.init
  6. +0 −55 www-servers/nginx/files/1.1.16-r1/nginx.conf
  7. +0 −73 www-servers/nginx/files/1.1.16-r1/nginx.init
  8. +0 −12 www-servers/nginx/files/1.1.16-r1/sites-available/localhost
  9. +0 −55 www-servers/nginx/files/1.1.16/nginx.conf
  10. +0 −73 www-servers/nginx/files/1.1.16/nginx.init
  11. +0 −12 www-servers/nginx/files/1.1.16/sites-available/localhost
  12. +0 −55 www-servers/nginx/files/1.1.17/nginx.conf
  13. +0 −73 www-servers/nginx/files/1.1.17/nginx.init
  14. +0 −12 www-servers/nginx/files/1.1.17/sites-available/localhost
  15. +0 −55 www-servers/nginx/files/1.1.18/nginx.conf
  16. +0 −73 www-servers/nginx/files/1.1.18/nginx.init
  17. +0 −12 www-servers/nginx/files/1.1.18/sites-available/localhost
  18. +0 −55 www-servers/nginx/files/1.1.19/nginx.conf
  19. +0 −73 www-servers/nginx/files/1.1.19/nginx.init
  20. +0 −12 www-servers/nginx/files/1.1.19/sites-available/localhost
  21. +0 −51 www-servers/nginx/files/1.1.7/nginx.conf
  22. +0 −73 www-servers/nginx/files/1.1.7/nginx.init
  23. +0 −12 www-servers/nginx/files/1.1.7/sites-available/localhost
  24. +0 −55 www-servers/nginx/files/1.2.0-r1/nginx.conf
  25. +0 −72 www-servers/nginx/files/1.2.0-r1/nginx.init
  26. +0 −12 www-servers/nginx/files/1.2.0-r1/sites-available/localhost
  27. +0 −55 www-servers/nginx/files/1.2.0/nginx.conf
  28. +0 −73 www-servers/nginx/files/1.2.0/nginx.init
  29. +0 −12 www-servers/nginx/files/1.2.0/sites-available/localhost
  30. +0 −55 www-servers/nginx/files/1.3.0/nginx.conf
  31. +0 −73 www-servers/nginx/files/1.3.0/nginx.init
  32. +0 −12 www-servers/nginx/files/1.3.0/sites-available/localhost
  33. +0 −55 www-servers/nginx/files/1.3.1-r1/nginx.conf
  34. +0 −73 www-servers/nginx/files/1.3.1-r1/nginx.init
  35. +0 −12 www-servers/nginx/files/1.3.1-r1/sites-available/localhost
  36. +0 −55 www-servers/nginx/files/1.3.1/nginx.conf
  37. +0 −73 www-servers/nginx/files/1.3.1/nginx.init
  38. +0 −12 www-servers/nginx/files/1.3.1/sites-available/localhost
  39. +0 −55 www-servers/nginx/files/1.3.8/nginx.conf
  40. +0 −73 www-servers/nginx/files/1.3.8/nginx.init
  41. +0 −12 www-servers/nginx/files/1.3.8/sites-available/localhost
  42. +5 −19 www-servers/nginx/files/{1.1.15-r1 → 1.4.1-r5}/nginx.conf
  43. +91 −0 www-servers/nginx/files/1.4.1-r5/nginx.initd
  44. +0 −4 www-servers/nginx/files/{1.1.15 → 1.4.1-r5}/sites-available/localhost
  45. +1 −1 www-servers/nginx/files/example/index.html
  46. +0 −51 www-servers/nginx/files/nginx-0.8.32-ey-balancer.patch
  47. +13 −0 www-servers/nginx/files/nginx-1.4.1-fix-perl-install-path.patch
  48. +0 −586 www-servers/nginx/files/nginx-http_mp4_module.patch
  49. +0 −113 www-servers/nginx/files/nginx-memory_disclosure.patch
  50. +0 −72 www-servers/nginx/files/nginx.conf-r4
  51. +0 −71 www-servers/nginx/files/nginx.init-r2
  52. +14 −0 www-servers/nginx/files/nginx.service-r1
  53. +0 −24 www-servers/nginx/files/passenger-3.0.1-cflags.patch
  54. +0 −16 www-servers/nginx/files/passenger-3.0.1-missing-auto-feature.patch
  55. +0 −12 www-servers/nginx/files/passenger-3.0.1-missing-include.patch
  56. +0 −15 www-servers/nginx/files/passenger-CFLAGS.patch
  57. +1 −5 www-servers/nginx/metadata.xml
  58. +0 −348 www-servers/nginx/nginx-1.1.15-r1.ebuild
  59. +0 −347 www-servers/nginx/nginx-1.1.15.ebuild
  60. +0 −348 www-servers/nginx/nginx-1.1.16-r1.ebuild
  61. +0 −347 www-servers/nginx/nginx-1.1.16.ebuild
  62. +0 −348 www-servers/nginx/nginx-1.1.17.ebuild
  63. +0 −348 www-servers/nginx/nginx-1.1.18.ebuild
  64. +0 −346 www-servers/nginx/nginx-1.1.19.ebuild
  65. +0 −347 www-servers/nginx/nginx-1.1.7.ebuild
  66. +0 −346 www-servers/nginx/nginx-1.2.0-r1.ebuild
  67. +0 −346 www-servers/nginx/nginx-1.2.0.ebuild
  68. +0 −346 www-servers/nginx/nginx-1.3.0.ebuild
  69. +0 −346 www-servers/nginx/nginx-1.3.1-r1.ebuild
  70. +0 −346 www-servers/nginx/nginx-1.3.1.ebuild
  71. +0 −346 www-servers/nginx/nginx-1.3.8.ebuild
  72. +567 −0 www-servers/nginx/nginx-1.4.1-r5.ebuild
View
16 www-servers/nginx/Manifest
@@ -8,10 +8,26 @@ DIST nginx-1.2.0.tar.gz 716067 SHA256 ac06b3aa55bf4f634b7e779272685536607183e866
DIST nginx-1.3.0.tar.gz 717795 SHA256 e95d4e5f840afe0e85f95689a10ffa8acaf5a4a1372fe285b175fbc807a5f409 SHA512 841c157cb15e7718926447d4b1a455e0a2a1389131e49a21e4f6a3f2c42943c6ac441d0e21014bde45973dd0714f868b2b0349ee8174f75c0dee61057ecee452 WHIRLPOOL 7b093156eb702b5d7c314cc720d8b1275cf38f7644b448747f9216042e74f2f99817f734cd7782af302ba44f37b43aa86fa540c7cfa97763712b7a99ac3c5185
DIST nginx-1.3.1.tar.gz 721002 SHA256 9b30a6f67f0a9eda7db026e12d4f09656f9254cddbb66ff9c0c01d8963dc1d73 SHA512 64d83dd46743922e5327af45da4a5a180f269695a753ae3472c41465412f371c8cabf5b3e58d90e0f33a848b1a32636efee7bbe71630048630c1331c4eac3406 WHIRLPOOL f18c0fccef7462118aaf462c99370ecf7e0c49353bbc9902cbb8f3f01a068ec6268020746abe1fd6030e606edb230540b86146c2d1c3c371c55b5a6e79643fd6
DIST nginx-1.3.8.tar.gz 738216 SHA256 8d68f9224f4616c987208bcb3a0bf1ae03740c5ec313b220f995ba50d826fe1c SHA512 c8a5795c576568f2cfa346f9282776d30a938982045bc7c30208efda8775e81d308c50d79008d08a36ef0f55edddd6f8f2b097119a25f40ff3afc217f79000a7 WHIRLPOOL 2f1e62c6f0f51311c8190bceab276b405e626492700a9466240a469921354d939f7d3da11fe936037b3ce4976514efbb054ebeaea8a0673d9e1ddf44ae029029
+DIST nginx-1.4.1.tar.gz 767107 SHA256 bca5d1e89751ba29406185e1736c390412603a7e6b604f5b4575281f6565d119 SHA512 174902d24a60b609688600761374e4ba42e0444439ead84c79ff2e82d0233f8759b57a0b76b82a1f571e38ecce0d7059dc2f057672a7004b6f0060968b4b981e WHIRLPOOL d8a95b32fa5af256b5d0f41bdbcbc381d68fc72a4db2dd0cc3dbe1cc298495a08129a279939aad4da0bcfb5867c5538551e5f6e8332c0bc328d17f490f5e7525
DIST nginx-ey-balancer-0.0.6.tar.gz 13192 SHA256 0b4728cfba04a452a5b9ebc3e304a6724ea914122d56edf0ff7c3b783205a905
DIST nginx-ey-balancer-0.0.7.tar.gz 14237 SHA256 72eada1bdc951899e31d024ac4ec42eff2fa5d0ef4fc86cae13e46fa8ccf9d34 SHA512 4e91424baf9a7196bd99e1cc5fdbef9c706267ca2aaa5de0a9b11d85b0d5e31c45ae4418fb88d527e1daccfc025f26e028564d80a6881246d36584800ac22336 WHIRLPOOL 83e1ccd6433c112e08d3d4b811a2c51dc5f3559aeb28fa80ca05d73ddf8fe2d9a3a2fa0e746932a540d6d1a6e65266d48de2071ffe424b82747670e9caec9872
DIST nginx_http_push_module-0.692.tar.gz 29119 SHA256 64868708071aa21dbc4c7a07d149dd6ec9108fb7eaf2aad5ad069406151f17fe SHA512 79821cacf5db4b1309e3f1c8d6980f83b1093dd3f291db5298bfdeb0d889fc0629625dcf3135d1cf7554b43308ef7172a4f40596928ab3069426801177ed3c1c WHIRLPOOL f1c846a4aa2d4491ee3063266d27b9854d860bbba44ef6e2ea33ebe1f570177e836c593a84cc2c7e22357bd43411f9d5b55852ee96a98dccdc18e7edf6768c95
DIST nginx_upload_module-2.2.0.tar.gz 25796 SHA256 b1c26abe0427180602e257627b4ed21848c93cc20cefc33af084983767d65805 SHA512 8192cedb2ac6911e8529e1dc63f02ac781cd54a293ab87571866bed11520b01ed5786be6daf79b4a1c34792926548b2fa8404daa0bf31d9fd17c59a64e90b3fe WHIRLPOOL db3ad2790c4beb735d51422d2a8d556385576c4f769addeaa1dd00cae55ee2ab97be9efe420743c87b2f794f816eae7f001e7622648b4f63fbbc60898840f9e8
DIST ngx-http-headers-more-0.15.tar.gz 22738 SHA256 d5ada29c15ff112c39599e3b245450ef785bb096c6724ecd8eaf1699b06e10e2 SHA512 38ccffdf20d7d17394c59f555b4f0166dece0109ea9f3665ed36ce24b589db0d03132529efa1ef33199701cbc4c2c19778907f78b362a10055eb9bd26cbbb575 WHIRLPOOL 89363c41f732a3db27815f69fc26e7b73626d01366175c57046d96c3ec4bceb71387effe4d7a16918a2fc97ce1acad6a313d1fad18fd09dd6b8206c5ff8a2d74
DIST ngx_cache_purge-1.4.tar.gz 6899 SHA256 4764e3d565445644f4a6b183cb9e987fce535396b00d68dc923bb35731a88886 SHA512 bc5d286564981a11b197059d6b57c54b06f4b5c33239cec6c4da409bff3ffb830fb91ab31bf2e80ecfbea343692402d475b52dd2599a43670ff71da157489edb WHIRLPOOL c431c95483fbeab6534fe653a672e19cb4e0b0aeafc6da97318228a5773103d37b4fa78dc5d15192e2e76850b8819465ffc7cb372f132ad2346353e25b92dacf
+DIST ngx_dav_ext-0.0.2.tar.gz 6056 SHA256 603d961c15ba2633ee5ae1f13b80a5455dceee61071d1dab7d2ea91a0981585c SHA512 78178ed0cc8eeb257fd9ef104e99dfb825143acb7becd762f88b2398bab2457c2ea6484be789d4b0e30b72f7661e7490da19495654204248f457666a951e7e41 WHIRLPOOL 6a7182d6dd7296315bf4c02da78f5dfb0e96deee5a686045679ebfdfe3430a26ea110a0a0804dff21024ec57b0ef70b98b8ac13c5ddd9b0b6e72fc6ec56ef83b
+DIST ngx_devel_kit-0.2.18-r1.tar.gz 64972 SHA256 c9c9f0a1b068d38c6c45b15d9605f1b2344dbcd45abf0764cd8e2ba92d6a3d2c SHA512 949a4c090272d8a112770dd47fb0dd55b1ebc9991f93b5ffe18ffa03f24fecba9a2e80bd32b8d2103ee4d26cf95a8ba68793a3bd2d33e8dc3c12b6dc9bf781ff WHIRLPOOL 80fe1c70c7c836afe2a52faaa58f72588ad2e6c79c1454d8808774fe3a2bfed71481aaa1c7255a467c8e6cd77243af232538fff26453ee761778f3162983bff1
+DIST ngx_http_auth_pam-1.2.tar.gz 5424 SHA256 5a85970ba61a99f55a26d2536a11d512b39bbd622f5737d25a9a8c10db81efa9 SHA512 ea731386e73206a9b0ded4bfbf32eb4adff90932ddf2afff1ebe0c94152691730093b6a03ee4cbbab78e4ef14b67f092402c29f531348a01a0cb0fd40e89fcc3 WHIRLPOOL 825fe84549eaae3b5d8ee601c24b788e857764c635264d62414f51fe21b3a35ef1ad7dd5797d7fc56ee4bef320a36017207d11cbab78fe91812905d8d66e13c5
+DIST ngx_http_cache_purge-2.1.tar.gz 10535 SHA256 424005af0c04e59ffa65a65e446081d4f95ee76a801a7555e001c67810bcb3b9 SHA512 1b70b2c35601949edd53d55922e81425aef0b2c486b071c2bcf53db7c5278e55966ffd2c9e32f599ee63e147a395e708d442515fe414f39b323d26722324db8b WHIRLPOOL f020841139988ae516969ffcd5bf7b2c264749fef5c20a5c8f0cca70f5eddcd3efcb3676bbe9a4550535de7b53fcd7326294fcae2a14dc6bf66d1ab77205b83f
+DIST ngx_http_fancyindex-fd3950172a9e6595ad9ec68c11600e2afe6a2674.tar.gz 13176 SHA256 d7e836b9dd1004ed265862dacc399ba14276d9050569119129e8088affc4cd0f SHA512 aaf71748409f25f6b5ca0244ec8c0a87cd494d376335b1b1a16d5012e98ef32e987cffb1ef89c70321dba69653a0e3c489c4575badb147a600efd7235eea630a WHIRLPOOL 867c60be5dad60c1e78d6b185181ddb778043c770b52740658483a886612a709b6ad43467577d368ccdb182fccd74f25577c54035735d7b2778b45911b1bf3fb
+DIST ngx_http_headers_more-0.20-r1.tar.gz 26769 SHA256 0e7c5e9dc9daade8b508a9f0cd0cd887329d1ae19d80294bc588939afed9e9d9 SHA512 c31be114943f5831ad9cbac8ac0c9c1995c513205e7d3d87761788e7fdd9ea7d60992dbd51cccf26777e96658091ef091e98c2e384b1041f9bce0dacdfa81c3e WHIRLPOOL 94ae99aa9c682c6406db39f4552fd6e33c735644c930f30617b6b32efd116962b630fb1a36ff37671d1c5c8de480045e426e3779e6b9c5991cbd7d93568d6d2d
+DIST ngx_http_lua-0.8.1.tar.gz 478976 SHA256 1b4fbdcf55765fa7214d00d3d70f9c02d6922970b005649622612476e65e994f SHA512 a0eb7f839bc332ff658fd2885072591c0719bba93e7490420821daee23b6b6d26b6395222635c0841d3a322a9b77aa76411a52f137b7da356c90ed64b8f9602a WHIRLPOOL 3d5262fd97fef6d2e6ad090c9c105ac5a9659fd58eed16a2a555273dbce66d67dd0143531571897e013d45a595a3cc806bcaf7a445f56ad42f0cde8f82e8b01b
+DIST ngx_http_naxsi-0.50.tar.gz 49809 SHA256 7cece5f9d9c5df9e09af1e1023bc8e04bbbbe953e67461b893b8240e82ca52ef SHA512 cc641683211ba379b7e4d02417b9b78cc3c25b80ec2eb072b90b1515e08a40ada9ce320f618db6e60bf0eb3ae27961a1c5ad90c735cc21244bd54c1ddb50e74e WHIRLPOOL a000dc2b7b628e685885463823e202cfbaaaffe62daaa50c93a65b79560718600cf9319ccf0ea861a1207c660415818f7085e090dcea49308cadbe4379b476fe
+DIST ngx_http_push-0.692.tar.gz 29119 SHA256 64868708071aa21dbc4c7a07d149dd6ec9108fb7eaf2aad5ad069406151f17fe SHA512 79821cacf5db4b1309e3f1c8d6980f83b1093dd3f291db5298bfdeb0d889fc0629625dcf3135d1cf7554b43308ef7172a4f40596928ab3069426801177ed3c1c WHIRLPOOL f1c846a4aa2d4491ee3063266d27b9854d860bbba44ef6e2ea33ebe1f570177e836c593a84cc2c7e22357bd43411f9d5b55852ee96a98dccdc18e7edf6768c95
+DIST ngx_http_slowfs_cache-1.10.tar.gz 11809 SHA256 1e81453942e5b0877de1f1f06c56ae82918ea9818255cb935bcb673c95a758a1 SHA512 fbc9609a8d6913aeefe535f206b9e53477503f131934ead2ae5a6169e395af2f5fb54778704824d5eeb22a4ef40a11ebbcde580db62a631f70edcc2cfc06b15d WHIRLPOOL a02ed77422c47d9e476f8746186d19d632ddb953635d8d9dd51ff076225a78044286ee7e114478bc02e4b2a422e4fdc207154fc287629dd2cd7c3f9a634dad18
+DIST ngx_http_upload_progress-0.9.0-r1.tar.gz 16990 SHA256 93e29b9b437a2e34713de54c2861ea51151624aca09f73f9f44d1caaff01a6b1 SHA512 a602b797f1a928c72752edf44629e48d5b8ab3c979ea0996645a978ba898b2a11c8b12bf09bd2282c4b1503bb8caaba4e4fbf357d644fbc5744c9e7264d07519 WHIRLPOOL 6b3f9feb1a7d2a4bd2f80dd20748ee5918e187e7b026c53ed9bc189696b90521bb5beabce9e00936c5bbf625cc73ccf131d8a9c219d4f399d8ae2c44ba378ebc
+DIST ngx_http_upstream_check-99f39394f387211641a1668d61faf2d5186ea1f5.tar.gz 116341 SHA256 dd67680ed563fa6fedae09be2938c64521c8ad4f5480dc965f7daeb93d202df8 SHA512 24549b2713c578b354b3a34bfeee29fa26ac764800e5a8cb8f711f2663c17eee9a95b0dbd53bb57a847b79e3c81e0c5d862f99f459aa12a9f86f51fcdc2e01a1 WHIRLPOOL 0f31dc0866c50b1886f4e7b9eb6ff6466aa1f849598bef018a418daebfcdbdbf3fe0fa18fc9fdd26b58b0bc071a6dbadf2a96ab737ace2ad5025171d09949b49
+DIST ngx_metrics-0.1.1.tar.gz 2964 SHA256 1c62ebb31e3caafad91720962770b0e7a4287f195520cf12471c262ac19b154e SHA512 d36a8fb0104c83b6b564e03b351aa750cab08650264c74d6f786af357bfb7006b531a93270dd961896ea8dafe27e5db8548ede714c5f52c4742876bc73af4b5e WHIRLPOOL 2796f5a97e76dfcc91133240e8e90ba493f0356f781a173d8cacdd09eba64b75ef531db398c0566fda395124700de8c991b771433e376ca0d5898c2ea6f82868
+DIST ngx_rtmp-0.9.20.tar.gz 444918 SHA256 9276662146463c860b8ba84d1356d41e155f49ad13bf97ddcc076c5746a8867c SHA512 78b1e4a296bc455d41acc9c89a49ac7f56a896a068e58f0774b66b78a90a832a84c30c96a2bf6cd2d65573915ededc204f76bc58d590e3834e5c7ae1488db8e7 WHIRLPOOL 26b4d332f44f0e13a3b7fe921c817a73afbc12bea519a3ca8488789f334883dd1aba4ee7968099ea05cfae42c10de95397afe79eb8f844daa611ee748e5c43a1
DIST ngx_slowfs_cache-1.6.tar.gz 10972 SHA256 cc0505dbba30153691ff7b3a7353804d5ceb9a519a407b938cae49e9913a7bcc SHA512 a7fb811d89c15732f279d274acff1ddb548c6635e59e6bf78e0af8172509d7a89fcf856fc7971f6b36db727b283819b0f3fe7a42d4d79f7b228d70dad72175cc WHIRLPOOL d6a90fba4e27a94a5ea8697f652c9db40f33d3f3f9b5613670a91dd280aea4a5135bf602597d096beff1c7fc7b92746693e0914be058e0cbd37a3419873a676d
+DIST ngx_syslog-0.25.tar.gz 91070 SHA256 8bafa901d2f9af0b54f1a014fdfaa07140bd4584cfada3189eddd2a7ff5b0195 SHA512 c869dc5c26484477cd9663bc860235a39813a41ac8be4b8f8f3c062c723aa431247d3b5915c962c7fcff36889d5541e8c844eaf6ece88c2c61d2f180f643f8b5 WHIRLPOOL 1829f60f9ab26c131d8fce56b2ff15276a2e99e2f6f96749ebf417e6e3d438249c79de8e6210d702acac8a1309fca417b12894428b53f280c76564a6839b4a2d
View
73 www-servers/nginx/files/1.1.15-r1/nginx.init
@@ -1,73 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.init-r2,v 1.1 2010/01/03 19:51:41 djc Exp $
-
-opts="${opts} upgrade reload configtest"
-
-depend() {
- need net
- use dns logger netmount
-}
-
-start() {
- configtest
- ebegin "Starting nginx"
- start-stop-daemon --start --pidfile /var/run/nginx.pid --exec /usr/sbin/nginx -- -c /etc/nginx/nginx.conf
- eend $? "Failed to start nginx"
-}
-
-stop() {
- ebegin "Stopping nginx"
- start-stop-daemon --stop --pidfile /var/run/nginx.pid
- eend $? "Failed to stop nginx"
- rm -f /var/run/nginx.pid
-}
-
-reload() {
- configtest
- ebegin "Refreshing nginx' configuration"
- kill -HUP `cat /var/run/nginx.pid` &>/dev/null
- eend $? "Failed to reload nginx"
-}
-
-upgrade() {
- configtest
- ebegin "Upgrading nginx"
-
- einfo "Sending USR2 to old binary"
- kill -USR2 `cat /var/run/nginx.pid` &>/dev/null
-
- einfo "Sleeping 3 seconds before pid-files checking"
- sleep 3
-
- if [ ! -f /var/run/nginx.pid.oldbin ]; then
- eerror "File with old pid not found"
- return 1
- fi
-
- if [ ! -f /var/run/nginx.pid ]; then
- eerror "New binary failed to start"
- return 1
- fi
-
- einfo "Sleeping 3 seconds before WINCH"
- sleep 3 ; kill -WINCH `cat /var/run/nginx.pid.oldbin`
-
- einfo "Sending QUIT to old binary"
- kill -QUIT `cat /var/run/nginx.pid.oldbin`
-
- einfo "Upgrade completed"
-
- eend $? "Upgrade failed"
-}
-
-configtest() {
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t > /dev/null 2>&1
- if [ $? -ne 0 ]
- then
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t
- eerror "Aborting due to configuration error."
- exit 1
- fi
-}
View
12 www-servers/nginx/files/1.1.15-r1/sites-available/localhost
@@ -1,12 +0,0 @@
-server {
- listen 127.0.0.1;
- server_name localhost;
- access_log /var/log/nginx/localhost.access_log main;
- error_log /var/log/nginx/localhost.error_log info;
- # Default location for the localhost, change the Comment
- # state for the two following root directives to make it
- # active.
- #root /var/www/localhost/htdocs;
- # root directive for a default nginx welcome page.
- root /usr/share/nginx/html;
-}
View
55 www-servers/nginx/files/1.1.15/nginx.conf
@@ -1,55 +0,0 @@
-user nginx nginx;
-worker_processes 4;
-worker_rlimit_nofile 64000;
-
-error_log /var/log/nginx/error_log info;
-
-events {
- worker_connections 16000;
- use epoll;
-}
-
-http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
-
- log_format main
- '$remote_addr - $remote_user [$time_local] '
- '"$request" $status $bytes_sent '
- '"$http_referer" "$http_user_agent" '
- '"$gzip_ratio"';
-
- connection_pool_size 256;
- client_header_buffer_size 1k;
- large_client_header_buffers 4 2k;
- request_pool_size 4k;
-
- output_buffers 1 32k;
- postpone_output 1460;
-
- # Don't follow symlink if the symlink's owner is not the target owner.
- # Enabled for the security reason.
- disable_symlinks if_not_owner;
-
- server_tokens off;
- ignore_invalid_headers on;
-
- client_header_timeout 5;
- client_body_timeout 15;
- send_timeout 10;
- keepalive_timeout 20 15;
-
- gzip on;
- gzip_vary on;
- gzip_comp_level 9;
- gzip_min_length 1100;
- gzip_buffers 16 8k;
- gzip_types text/plain text/css image/bmp;
-
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
-
- index index.html;
- include /etc/nginx/sites-enabled/*;
-}
View
73 www-servers/nginx/files/1.1.15/nginx.init
@@ -1,73 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.init-r2,v 1.1 2010/01/03 19:51:41 djc Exp $
-
-opts="${opts} upgrade reload configtest"
-
-depend() {
- need net
- use dns logger netmount
-}
-
-start() {
- configtest
- ebegin "Starting nginx"
- start-stop-daemon --start --pidfile /var/run/nginx.pid --exec /usr/sbin/nginx -- -c /etc/nginx/nginx.conf
- eend $? "Failed to start nginx"
-}
-
-stop() {
- ebegin "Stopping nginx"
- start-stop-daemon --stop --pidfile /var/run/nginx.pid
- eend $? "Failed to stop nginx"
- rm -f /var/run/nginx.pid
-}
-
-reload() {
- configtest
- ebegin "Refreshing nginx' configuration"
- kill -HUP `cat /var/run/nginx.pid` &>/dev/null
- eend $? "Failed to reload nginx"
-}
-
-upgrade() {
- configtest
- ebegin "Upgrading nginx"
-
- einfo "Sending USR2 to old binary"
- kill -USR2 `cat /var/run/nginx.pid` &>/dev/null
-
- einfo "Sleeping 3 seconds before pid-files checking"
- sleep 3
-
- if [ ! -f /var/run/nginx.pid.oldbin ]; then
- eerror "File with old pid not found"
- return 1
- fi
-
- if [ ! -f /var/run/nginx.pid ]; then
- eerror "New binary failed to start"
- return 1
- fi
-
- einfo "Sleeping 3 seconds before WINCH"
- sleep 3 ; kill -WINCH `cat /var/run/nginx.pid.oldbin`
-
- einfo "Sending QUIT to old binary"
- kill -QUIT `cat /var/run/nginx.pid.oldbin`
-
- einfo "Upgrade completed"
-
- eend $? "Upgrade failed"
-}
-
-configtest() {
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t > /dev/null 2>&1
- if [ $? -ne 0 ]
- then
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t
- eerror "Aborting due to configuration error."
- exit 1
- fi
-}
View
55 www-servers/nginx/files/1.1.16-r1/nginx.conf
@@ -1,55 +0,0 @@
-user nginx nginx;
-worker_processes 4;
-worker_rlimit_nofile 64000;
-
-error_log /var/log/nginx/error_log info;
-
-events {
- worker_connections 16000;
- use epoll;
-}
-
-http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
-
- log_format main
- '$remote_addr - $remote_user [$time_local] '
- '"$request" $status $bytes_sent '
- '"$http_referer" "$http_user_agent" '
- '"$gzip_ratio"';
-
- connection_pool_size 256;
- client_header_buffer_size 1k;
- large_client_header_buffers 4 2k;
- request_pool_size 4k;
-
- output_buffers 1 32k;
- postpone_output 1460;
-
- # Don't follow symlink if the symlink's owner is not the target owner.
- # Enabled for the security reason.
- disable_symlinks if_not_owner;
-
- server_tokens off;
- ignore_invalid_headers on;
-
- client_header_timeout 5;
- client_body_timeout 15;
- send_timeout 10;
- keepalive_timeout 20 15;
-
- gzip on;
- gzip_vary on;
- gzip_comp_level 9;
- gzip_min_length 1100;
- gzip_buffers 16 8k;
- gzip_types text/plain text/css image/bmp;
-
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
-
- index index.html;
- include /etc/nginx/sites-enabled/*;
-}
View
73 www-servers/nginx/files/1.1.16-r1/nginx.init
@@ -1,73 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.init-r2,v 1.1 2010/01/03 19:51:41 djc Exp $
-
-opts="${opts} upgrade reload configtest"
-
-depend() {
- need net
- use dns logger netmount
-}
-
-start() {
- configtest
- ebegin "Starting nginx"
- start-stop-daemon --start --pidfile /var/run/nginx.pid --exec /usr/sbin/nginx -- -c /etc/nginx/nginx.conf
- eend $? "Failed to start nginx"
-}
-
-stop() {
- ebegin "Stopping nginx"
- start-stop-daemon --stop --pidfile /var/run/nginx.pid
- eend $? "Failed to stop nginx"
- rm -f /var/run/nginx.pid
-}
-
-reload() {
- configtest
- ebegin "Refreshing nginx' configuration"
- kill -HUP `cat /var/run/nginx.pid` &>/dev/null
- eend $? "Failed to reload nginx"
-}
-
-upgrade() {
- configtest
- ebegin "Upgrading nginx"
-
- einfo "Sending USR2 to old binary"
- kill -USR2 `cat /var/run/nginx.pid` &>/dev/null
-
- einfo "Sleeping 3 seconds before pid-files checking"
- sleep 3
-
- if [ ! -f /var/run/nginx.pid.oldbin ]; then
- eerror "File with old pid not found"
- return 1
- fi
-
- if [ ! -f /var/run/nginx.pid ]; then
- eerror "New binary failed to start"
- return 1
- fi
-
- einfo "Sleeping 3 seconds before WINCH"
- sleep 3 ; kill -WINCH `cat /var/run/nginx.pid.oldbin`
-
- einfo "Sending QUIT to old binary"
- kill -QUIT `cat /var/run/nginx.pid.oldbin`
-
- einfo "Upgrade completed"
-
- eend $? "Upgrade failed"
-}
-
-configtest() {
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t > /dev/null 2>&1
- if [ $? -ne 0 ]
- then
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t
- eerror "Aborting due to configuration error."
- exit 1
- fi
-}
View
12 www-servers/nginx/files/1.1.16-r1/sites-available/localhost
@@ -1,12 +0,0 @@
-server {
- listen 127.0.0.1;
- server_name localhost;
- access_log /var/log/nginx/localhost.access_log main;
- error_log /var/log/nginx/localhost.error_log info;
- # Default location for the localhost, change the Comment
- # state for the two following root directives to make it
- # active.
- #root /var/www/localhost/htdocs;
- # root directive for a default nginx welcome page.
- root /usr/share/nginx/html;
-}
View
55 www-servers/nginx/files/1.1.16/nginx.conf
@@ -1,55 +0,0 @@
-user nginx nginx;
-worker_processes 4;
-worker_rlimit_nofile 64000;
-
-error_log /var/log/nginx/error_log info;
-
-events {
- worker_connections 16000;
- use epoll;
-}
-
-http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
-
- log_format main
- '$remote_addr - $remote_user [$time_local] '
- '"$request" $status $bytes_sent '
- '"$http_referer" "$http_user_agent" '
- '"$gzip_ratio"';
-
- connection_pool_size 256;
- client_header_buffer_size 1k;
- large_client_header_buffers 4 2k;
- request_pool_size 4k;
-
- output_buffers 1 32k;
- postpone_output 1460;
-
- # Don't follow symlink if the symlink's owner is not the target owner.
- # Enabled for the security reason.
- disable_symlinks if_not_owner;
-
- server_tokens off;
- ignore_invalid_headers on;
-
- client_header_timeout 5;
- client_body_timeout 15;
- send_timeout 10;
- keepalive_timeout 20 15;
-
- gzip on;
- gzip_vary on;
- gzip_comp_level 9;
- gzip_min_length 1100;
- gzip_buffers 16 8k;
- gzip_types text/plain text/css image/bmp;
-
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
-
- index index.html;
- include /etc/nginx/sites-enabled/*;
-}
View
73 www-servers/nginx/files/1.1.16/nginx.init
@@ -1,73 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.init-r2,v 1.1 2010/01/03 19:51:41 djc Exp $
-
-opts="${opts} upgrade reload configtest"
-
-depend() {
- need net
- use dns logger netmount
-}
-
-start() {
- configtest
- ebegin "Starting nginx"
- start-stop-daemon --start --pidfile /var/run/nginx.pid --exec /usr/sbin/nginx -- -c /etc/nginx/nginx.conf
- eend $? "Failed to start nginx"
-}
-
-stop() {
- ebegin "Stopping nginx"
- start-stop-daemon --stop --pidfile /var/run/nginx.pid
- eend $? "Failed to stop nginx"
- rm -f /var/run/nginx.pid
-}
-
-reload() {
- configtest
- ebegin "Refreshing nginx' configuration"
- kill -HUP `cat /var/run/nginx.pid` &>/dev/null
- eend $? "Failed to reload nginx"
-}
-
-upgrade() {
- configtest
- ebegin "Upgrading nginx"
-
- einfo "Sending USR2 to old binary"
- kill -USR2 `cat /var/run/nginx.pid` &>/dev/null
-
- einfo "Sleeping 3 seconds before pid-files checking"
- sleep 3
-
- if [ ! -f /var/run/nginx.pid.oldbin ]; then
- eerror "File with old pid not found"
- return 1
- fi
-
- if [ ! -f /var/run/nginx.pid ]; then
- eerror "New binary failed to start"
- return 1
- fi
-
- einfo "Sleeping 3 seconds before WINCH"
- sleep 3 ; kill -WINCH `cat /var/run/nginx.pid.oldbin`
-
- einfo "Sending QUIT to old binary"
- kill -QUIT `cat /var/run/nginx.pid.oldbin`
-
- einfo "Upgrade completed"
-
- eend $? "Upgrade failed"
-}
-
-configtest() {
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t > /dev/null 2>&1
- if [ $? -ne 0 ]
- then
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t
- eerror "Aborting due to configuration error."
- exit 1
- fi
-}
View
12 www-servers/nginx/files/1.1.16/sites-available/localhost
@@ -1,12 +0,0 @@
-server {
- listen 127.0.0.1;
- server_name localhost;
- access_log /var/log/nginx/localhost.access_log main;
- error_log /var/log/nginx/localhost.error_log info;
- # Default location for the localhost, change the Comment
- # state for the two following root directives to make it
- # active.
- #root /var/www/localhost/htdocs;
- # root directive for a default nginx welcome page.
- root /usr/share/nginx/html;
-}
View
55 www-servers/nginx/files/1.1.17/nginx.conf
@@ -1,55 +0,0 @@
-user nginx nginx;
-worker_processes 4;
-worker_rlimit_nofile 64000;
-
-error_log /var/log/nginx/error_log info;
-
-events {
- worker_connections 16000;
- use epoll;
-}
-
-http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
-
- log_format main
- '$remote_addr - $remote_user [$time_local] '
- '"$request" $status $bytes_sent '
- '"$http_referer" "$http_user_agent" '
- '"$gzip_ratio"';
-
- connection_pool_size 256;
- client_header_buffer_size 1k;
- large_client_header_buffers 4 2k;
- request_pool_size 4k;
-
- output_buffers 1 32k;
- postpone_output 1460;
-
- # Don't follow symlink if the symlink's owner is not the target owner.
- # Enabled for the security reason.
- disable_symlinks if_not_owner;
-
- server_tokens off;
- ignore_invalid_headers on;
-
- client_header_timeout 5;
- client_body_timeout 15;
- send_timeout 10;
- keepalive_timeout 20 15;
-
- gzip on;
- gzip_vary on;
- gzip_comp_level 9;
- gzip_min_length 1100;
- gzip_buffers 16 8k;
- gzip_types text/plain text/css image/bmp;
-
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
-
- index index.html;
- include /etc/nginx/sites-enabled/*;
-}
View
73 www-servers/nginx/files/1.1.17/nginx.init
@@ -1,73 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.init-r2,v 1.1 2010/01/03 19:51:41 djc Exp $
-
-opts="${opts} upgrade reload configtest"
-
-depend() {
- need net
- use dns logger netmount
-}
-
-start() {
- configtest
- ebegin "Starting nginx"
- start-stop-daemon --start --pidfile /var/run/nginx.pid --exec /usr/sbin/nginx -- -c /etc/nginx/nginx.conf
- eend $? "Failed to start nginx"
-}
-
-stop() {
- ebegin "Stopping nginx"
- start-stop-daemon --stop --pidfile /var/run/nginx.pid
- eend $? "Failed to stop nginx"
- rm -f /var/run/nginx.pid
-}
-
-reload() {
- configtest
- ebegin "Refreshing nginx' configuration"
- kill -HUP `cat /var/run/nginx.pid` &>/dev/null
- eend $? "Failed to reload nginx"
-}
-
-upgrade() {
- configtest
- ebegin "Upgrading nginx"
-
- einfo "Sending USR2 to old binary"
- kill -USR2 `cat /var/run/nginx.pid` &>/dev/null
-
- einfo "Sleeping 3 seconds before pid-files checking"
- sleep 3
-
- if [ ! -f /var/run/nginx.pid.oldbin ]; then
- eerror "File with old pid not found"
- return 1
- fi
-
- if [ ! -f /var/run/nginx.pid ]; then
- eerror "New binary failed to start"
- return 1
- fi
-
- einfo "Sleeping 3 seconds before WINCH"
- sleep 3 ; kill -WINCH `cat /var/run/nginx.pid.oldbin`
-
- einfo "Sending QUIT to old binary"
- kill -QUIT `cat /var/run/nginx.pid.oldbin`
-
- einfo "Upgrade completed"
-
- eend $? "Upgrade failed"
-}
-
-configtest() {
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t > /dev/null 2>&1
- if [ $? -ne 0 ]
- then
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t
- eerror "Aborting due to configuration error."
- exit 1
- fi
-}
View
12 www-servers/nginx/files/1.1.17/sites-available/localhost
@@ -1,12 +0,0 @@
-server {
- listen 127.0.0.1;
- server_name localhost;
- access_log /var/log/nginx/localhost.access_log main;
- error_log /var/log/nginx/localhost.error_log info;
- # Default location for the localhost, change the Comment
- # state for the two following root directives to make it
- # active.
- #root /var/www/localhost/htdocs;
- # root directive for a default nginx welcome page.
- root /usr/share/nginx/html;
-}
View
55 www-servers/nginx/files/1.1.18/nginx.conf
@@ -1,55 +0,0 @@
-user nginx nginx;
-worker_processes 4;
-worker_rlimit_nofile 64000;
-
-error_log /var/log/nginx/error_log info;
-
-events {
- worker_connections 16000;
- use epoll;
-}
-
-http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
-
- log_format main
- '$remote_addr - $remote_user [$time_local] '
- '"$request" $status $bytes_sent '
- '"$http_referer" "$http_user_agent" '
- '"$gzip_ratio"';
-
- connection_pool_size 256;
- client_header_buffer_size 1k;
- large_client_header_buffers 4 2k;
- request_pool_size 4k;
-
- output_buffers 1 32k;
- postpone_output 1460;
-
- # Don't follow symlink if the symlink's owner is not the target owner.
- # Enabled for the security reason.
- disable_symlinks if_not_owner;
-
- server_tokens off;
- ignore_invalid_headers on;
-
- client_header_timeout 5;
- client_body_timeout 15;
- send_timeout 10;
- keepalive_timeout 20 15;
-
- gzip on;
- gzip_vary on;
- gzip_comp_level 9;
- gzip_min_length 1100;
- gzip_buffers 16 8k;
- gzip_types text/plain text/css image/bmp;
-
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
-
- index index.html;
- include /etc/nginx/sites-enabled/*;
-}
View
73 www-servers/nginx/files/1.1.18/nginx.init
@@ -1,73 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.init-r2,v 1.1 2010/01/03 19:51:41 djc Exp $
-
-opts="${opts} upgrade reload configtest"
-
-depend() {
- need net
- use dns logger netmount
-}
-
-start() {
- configtest
- ebegin "Starting nginx"
- start-stop-daemon --start --pidfile /var/run/nginx.pid --exec /usr/sbin/nginx -- -c /etc/nginx/nginx.conf
- eend $? "Failed to start nginx"
-}
-
-stop() {
- ebegin "Stopping nginx"
- start-stop-daemon --stop --pidfile /var/run/nginx.pid
- eend $? "Failed to stop nginx"
- rm -f /var/run/nginx.pid
-}
-
-reload() {
- configtest
- ebegin "Refreshing nginx' configuration"
- kill -HUP `cat /var/run/nginx.pid` &>/dev/null
- eend $? "Failed to reload nginx"
-}
-
-upgrade() {
- configtest
- ebegin "Upgrading nginx"
-
- einfo "Sending USR2 to old binary"
- kill -USR2 `cat /var/run/nginx.pid` &>/dev/null
-
- einfo "Sleeping 3 seconds before pid-files checking"
- sleep 3
-
- if [ ! -f /var/run/nginx.pid.oldbin ]; then
- eerror "File with old pid not found"
- return 1
- fi
-
- if [ ! -f /var/run/nginx.pid ]; then
- eerror "New binary failed to start"
- return 1
- fi
-
- einfo "Sleeping 3 seconds before WINCH"
- sleep 3 ; kill -WINCH `cat /var/run/nginx.pid.oldbin`
-
- einfo "Sending QUIT to old binary"
- kill -QUIT `cat /var/run/nginx.pid.oldbin`
-
- einfo "Upgrade completed"
-
- eend $? "Upgrade failed"
-}
-
-configtest() {
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t > /dev/null 2>&1
- if [ $? -ne 0 ]
- then
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t
- eerror "Aborting due to configuration error."
- exit 1
- fi
-}
View
12 www-servers/nginx/files/1.1.18/sites-available/localhost
@@ -1,12 +0,0 @@
-server {
- listen 127.0.0.1;
- server_name localhost;
- access_log /var/log/nginx/localhost.access_log main;
- error_log /var/log/nginx/localhost.error_log info;
- # Default location for the localhost, change the Comment
- # state for the two following root directives to make it
- # active.
- #root /var/www/localhost/htdocs;
- # root directive for a default nginx welcome page.
- root /usr/share/nginx/html;
-}
View
55 www-servers/nginx/files/1.1.19/nginx.conf
@@ -1,55 +0,0 @@
-user nginx nginx;
-worker_processes 4;
-worker_rlimit_nofile 64000;
-
-error_log /var/log/nginx/error_log info;
-
-events {
- worker_connections 16000;
- use epoll;
-}
-
-http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
-
- log_format main
- '$remote_addr - $remote_user [$time_local] '
- '"$request" $status $bytes_sent '
- '"$http_referer" "$http_user_agent" '
- '"$gzip_ratio"';
-
- connection_pool_size 256;
- client_header_buffer_size 1k;
- large_client_header_buffers 4 2k;
- request_pool_size 4k;
-
- output_buffers 1 32k;
- postpone_output 1460;
-
- # Don't follow symlink if the symlink's owner is not the target owner.
- # Enabled for the security reason.
- disable_symlinks if_not_owner;
-
- server_tokens off;
- ignore_invalid_headers on;
-
- client_header_timeout 5;
- client_body_timeout 15;
- send_timeout 10;
- keepalive_timeout 20 15;
-
- gzip on;
- gzip_vary on;
- gzip_comp_level 9;
- gzip_min_length 1100;
- gzip_buffers 16 8k;
- gzip_types text/plain text/css image/bmp;
-
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
-
- index index.html;
- include /etc/nginx/sites-enabled/*;
-}
View
73 www-servers/nginx/files/1.1.19/nginx.init
@@ -1,73 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.init-r2,v 1.1 2010/01/03 19:51:41 djc Exp $
-
-opts="${opts} upgrade reload configtest"
-
-depend() {
- need net
- use dns logger netmount
-}
-
-start() {
- configtest
- ebegin "Starting nginx"
- start-stop-daemon --start --pidfile /var/run/nginx.pid --exec /usr/sbin/nginx -- -c /etc/nginx/nginx.conf
- eend $? "Failed to start nginx"
-}
-
-stop() {
- ebegin "Stopping nginx"
- start-stop-daemon --stop --pidfile /var/run/nginx.pid
- eend $? "Failed to stop nginx"
- rm -f /var/run/nginx.pid
-}
-
-reload() {
- configtest
- ebegin "Refreshing nginx' configuration"
- kill -HUP `cat /var/run/nginx.pid` &>/dev/null
- eend $? "Failed to reload nginx"
-}
-
-upgrade() {
- configtest
- ebegin "Upgrading nginx"
-
- einfo "Sending USR2 to old binary"
- kill -USR2 `cat /var/run/nginx.pid` &>/dev/null
-
- einfo "Sleeping 3 seconds before pid-files checking"
- sleep 3
-
- if [ ! -f /var/run/nginx.pid.oldbin ]; then
- eerror "File with old pid not found"
- return 1
- fi
-
- if [ ! -f /var/run/nginx.pid ]; then
- eerror "New binary failed to start"
- return 1
- fi
-
- einfo "Sleeping 3 seconds before WINCH"
- sleep 3 ; kill -WINCH `cat /var/run/nginx.pid.oldbin`
-
- einfo "Sending QUIT to old binary"
- kill -QUIT `cat /var/run/nginx.pid.oldbin`
-
- einfo "Upgrade completed"
-
- eend $? "Upgrade failed"
-}
-
-configtest() {
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t > /dev/null 2>&1
- if [ $? -ne 0 ]
- then
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t
- eerror "Aborting due to configuration error."
- exit 1
- fi
-}
View
12 www-servers/nginx/files/1.1.19/sites-available/localhost
@@ -1,12 +0,0 @@
-server {
- listen 127.0.0.1;
- server_name localhost;
- access_log /var/log/nginx/localhost.access_log main;
- error_log /var/log/nginx/localhost.error_log info;
- # Default location for the localhost, change the Comment
- # state for the two following root directives to make it
- # active.
- #root /var/www/localhost/htdocs;
- # root directive for a default nginx welcome page.
- root /usr/share/nginx/html;
-}
View
51 www-servers/nginx/files/1.1.7/nginx.conf
@@ -1,51 +0,0 @@
-user nginx nginx;
-worker_processes 4;
-worker_rlimit_nofile 64000;
-
-error_log /var/log/nginx/error_log info;
-
-events {
- worker_connections 16000;
- use epoll;
-}
-
-http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
-
- log_format main
- '$remote_addr - $remote_user [$time_local] '
- '"$request" $status $bytes_sent '
- '"$http_referer" "$http_user_agent" '
- '"$gzip_ratio"';
-
- connection_pool_size 256;
- client_header_buffer_size 1k;
- large_client_header_buffers 4 2k;
- request_pool_size 4k;
-
- output_buffers 1 32k;
- postpone_output 1460;
-
- server_tokens off;
- ignore_invalid_headers on;
-
- client_header_timeout 5;
- client_body_timeout 15;
- send_timeout 10;
- keepalive_timeout 20 15;
-
- gzip on;
- gzip_vary on;
- gzip_comp_level 9;
- gzip_min_length 1100;
- gzip_buffers 16 8k;
- gzip_types text/plain text/css image/bmp;
-
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
-
- index index.html;
- include /etc/nginx/sites-enabled/*;
-}
View
73 www-servers/nginx/files/1.1.7/nginx.init
@@ -1,73 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.init-r2,v 1.1 2010/01/03 19:51:41 djc Exp $
-
-opts="${opts} upgrade reload configtest"
-
-depend() {
- need net
- use dns logger netmount
-}
-
-start() {
- configtest
- ebegin "Starting nginx"
- start-stop-daemon --start --pidfile /var/run/nginx.pid --exec /usr/sbin/nginx -- -c /etc/nginx/nginx.conf
- eend $? "Failed to start nginx"
-}
-
-stop() {
- ebegin "Stopping nginx"
- start-stop-daemon --stop --pidfile /var/run/nginx.pid
- eend $? "Failed to stop nginx"
- rm -f /var/run/nginx.pid
-}
-
-reload() {
- configtest
- ebegin "Refreshing nginx' configuration"
- kill -HUP `cat /var/run/nginx.pid` &>/dev/null
- eend $? "Failed to reload nginx"
-}
-
-upgrade() {
- configtest
- ebegin "Upgrading nginx"
-
- einfo "Sending USR2 to old binary"
- kill -USR2 `cat /var/run/nginx.pid` &>/dev/null
-
- einfo "Sleeping 3 seconds before pid-files checking"
- sleep 3
-
- if [ ! -f /var/run/nginx.pid.oldbin ]; then
- eerror "File with old pid not found"
- return 1
- fi
-
- if [ ! -f /var/run/nginx.pid ]; then
- eerror "New binary failed to start"
- return 1
- fi
-
- einfo "Sleeping 3 seconds before WINCH"
- sleep 3 ; kill -WINCH `cat /var/run/nginx.pid.oldbin`
-
- einfo "Sending QUIT to old binary"
- kill -QUIT `cat /var/run/nginx.pid.oldbin`
-
- einfo "Upgrade completed"
-
- eend $? "Upgrade failed"
-}
-
-configtest() {
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t > /dev/null 2>&1
- if [ $? -ne 0 ]
- then
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t
- eerror "Aborting due to configuration error."
- exit 1
- fi
-}
View
12 www-servers/nginx/files/1.1.7/sites-available/localhost
@@ -1,12 +0,0 @@
-server {
- listen 127.0.0.1;
- server_name localhost;
- access_log /var/log/nginx/localhost.access_log main;
- error_log /var/log/nginx/localhost.error_log info;
- # Default location for the localhost, change the Comment
- # state for the two following root directives to make it
- # active.
- #root /var/www/localhost/htdocs;
- # root directive for a default nginx welcome page.
- root /usr/share/nginx/html;
-}
View
55 www-servers/nginx/files/1.2.0-r1/nginx.conf
@@ -1,55 +0,0 @@
-user nginx nginx;
-worker_processes 4;
-worker_rlimit_nofile 64000;
-
-error_log /var/log/nginx/error_log info;
-
-events {
- worker_connections 16000;
- use epoll;
-}
-
-http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
-
- log_format main
- '$remote_addr - $remote_user [$time_local] '
- '"$request" $status $bytes_sent '
- '"$http_referer" "$http_user_agent" '
- '"$gzip_ratio"';
-
- connection_pool_size 256;
- client_header_buffer_size 1k;
- large_client_header_buffers 4 2k;
- request_pool_size 4k;
-
- output_buffers 1 32k;
- postpone_output 1460;
-
- # Don't follow symlink if the symlink's owner is not the target owner.
- # Enabled for the security reason.
- disable_symlinks if_not_owner;
-
- server_tokens off;
- ignore_invalid_headers on;
-
- client_header_timeout 5;
- client_body_timeout 15;
- send_timeout 10;
- keepalive_timeout 20 15;
-
- gzip on;
- gzip_vary on;
- gzip_comp_level 9;
- gzip_min_length 1100;
- gzip_buffers 16 8k;
- gzip_types text/plain text/css image/bmp;
-
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
-
- index index.html;
- include /etc/nginx/sites-enabled/*;
-}
View
72 www-servers/nginx/files/1.2.0-r1/nginx.init
@@ -1,72 +0,0 @@
-#!/sbin/runscript
-# Distributed under the terms of the GNU General Public License v2
-
-extra_commands="configtest"
-extra_started_commands="upgrade reload"
-
-depend() {
- need net
- use dns logger netmount
-}
-
-start() {
- configtest
- ebegin "Starting nginx"
- start-stop-daemon --start --pidfile /var/run/nginx.pid --exec /usr/sbin/nginx -- -c /etc/nginx/nginx.conf
- eend $? "Failed to start nginx"
-}
-
-stop() {
- ebegin "Stopping nginx"
- start-stop-daemon --stop --pidfile /var/run/nginx.pid
- eend $? "Failed to stop nginx"
- rm -f /var/run/nginx.pid
-}
-
-reload() {
- configtest
- ebegin "Refreshing nginx' configuration"
- kill -HUP `cat /var/run/nginx.pid` &>/dev/null
- eend $? "Failed to reload nginx"
-}
-
-upgrade() {
- configtest
- ebegin "Upgrading nginx"
-
- einfo "Sending USR2 to old binary"
- kill -USR2 `cat /var/run/nginx.pid` &>/dev/null
-
- einfo "Sleeping 3 seconds before pid-files checking"
- sleep 3
-
- if [ ! -f /var/run/nginx.pid.oldbin ]; then
- eerror "File with old pid not found"
- return 1
- fi
-
- if [ ! -f /var/run/nginx.pid ]; then
- eerror "New binary failed to start"
- return 1
- fi
-
- einfo "Sleeping 3 seconds before WINCH"
- sleep 3 ; kill -WINCH `cat /var/run/nginx.pid.oldbin`
-
- einfo "Sending QUIT to old binary"
- kill -QUIT `cat /var/run/nginx.pid.oldbin`
-
- einfo "Upgrade completed"
-
- eend $? "Upgrade failed"
-}
-
-configtest() {
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t > /dev/null 2>&1
- if [ $? -ne 0 ]
- then
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t
- eerror "Aborting due to configuration error."
- exit 1
- fi
-}
View
12 www-servers/nginx/files/1.2.0-r1/sites-available/localhost
@@ -1,12 +0,0 @@
-server {
- listen 127.0.0.1;
- server_name localhost;
- access_log /var/log/nginx/localhost.access_log main;
- error_log /var/log/nginx/localhost.error_log info;
- # Default location for the localhost, change the Comment
- # state for the two following root directives to make it
- # active.
- #root /var/www/localhost/htdocs;
- # root directive for a default nginx welcome page.
- root /usr/share/nginx/html;
-}
View
55 www-servers/nginx/files/1.2.0/nginx.conf
@@ -1,55 +0,0 @@
-user nginx nginx;
-worker_processes 4;
-worker_rlimit_nofile 64000;
-
-error_log /var/log/nginx/error_log info;
-
-events {
- worker_connections 16000;
- use epoll;
-}
-
-http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
-
- log_format main
- '$remote_addr - $remote_user [$time_local] '
- '"$request" $status $bytes_sent '
- '"$http_referer" "$http_user_agent" '
- '"$gzip_ratio"';
-
- connection_pool_size 256;
- client_header_buffer_size 1k;
- large_client_header_buffers 4 2k;
- request_pool_size 4k;
-
- output_buffers 1 32k;
- postpone_output 1460;
-
- # Don't follow symlink if the symlink's owner is not the target owner.
- # Enabled for the security reason.
- disable_symlinks if_not_owner;
-
- server_tokens off;
- ignore_invalid_headers on;
-
- client_header_timeout 5;
- client_body_timeout 15;
- send_timeout 10;
- keepalive_timeout 20 15;
-
- gzip on;
- gzip_vary on;
- gzip_comp_level 9;
- gzip_min_length 1100;
- gzip_buffers 16 8k;
- gzip_types text/plain text/css image/bmp;
-
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
-
- index index.html;
- include /etc/nginx/sites-enabled/*;
-}
View
73 www-servers/nginx/files/1.2.0/nginx.init
@@ -1,73 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.init-r2,v 1.1 2010/01/03 19:51:41 djc Exp $
-
-opts="${opts} upgrade reload configtest"
-
-depend() {
- need net
- use dns logger netmount
-}
-
-start() {
- configtest
- ebegin "Starting nginx"
- start-stop-daemon --start --pidfile /var/run/nginx.pid --exec /usr/sbin/nginx -- -c /etc/nginx/nginx.conf
- eend $? "Failed to start nginx"
-}
-
-stop() {
- ebegin "Stopping nginx"
- start-stop-daemon --stop --pidfile /var/run/nginx.pid
- eend $? "Failed to stop nginx"
- rm -f /var/run/nginx.pid
-}
-
-reload() {
- configtest
- ebegin "Refreshing nginx' configuration"
- kill -HUP `cat /var/run/nginx.pid` &>/dev/null
- eend $? "Failed to reload nginx"
-}
-
-upgrade() {
- configtest
- ebegin "Upgrading nginx"
-
- einfo "Sending USR2 to old binary"
- kill -USR2 `cat /var/run/nginx.pid` &>/dev/null
-
- einfo "Sleeping 3 seconds before pid-files checking"
- sleep 3
-
- if [ ! -f /var/run/nginx.pid.oldbin ]; then
- eerror "File with old pid not found"
- return 1
- fi
-
- if [ ! -f /var/run/nginx.pid ]; then
- eerror "New binary failed to start"
- return 1
- fi
-
- einfo "Sleeping 3 seconds before WINCH"
- sleep 3 ; kill -WINCH `cat /var/run/nginx.pid.oldbin`
-
- einfo "Sending QUIT to old binary"
- kill -QUIT `cat /var/run/nginx.pid.oldbin`
-
- einfo "Upgrade completed"
-
- eend $? "Upgrade failed"
-}
-
-configtest() {
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t > /dev/null 2>&1
- if [ $? -ne 0 ]
- then
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t
- eerror "Aborting due to configuration error."
- exit 1
- fi
-}
View
12 www-servers/nginx/files/1.2.0/sites-available/localhost
@@ -1,12 +0,0 @@
-server {
- listen 127.0.0.1;
- server_name localhost;
- access_log /var/log/nginx/localhost.access_log main;
- error_log /var/log/nginx/localhost.error_log info;
- # Default location for the localhost, change the Comment
- # state for the two following root directives to make it
- # active.
- #root /var/www/localhost/htdocs;
- # root directive for a default nginx welcome page.
- root /usr/share/nginx/html;
-}
View
55 www-servers/nginx/files/1.3.0/nginx.conf
@@ -1,55 +0,0 @@
-user nginx nginx;
-worker_processes 4;
-worker_rlimit_nofile 64000;
-
-error_log /var/log/nginx/error_log info;
-
-events {
- worker_connections 16000;
- use epoll;
-}
-
-http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
-
- log_format main
- '$remote_addr - $remote_user [$time_local] '
- '"$request" $status $bytes_sent '
- '"$http_referer" "$http_user_agent" '
- '"$gzip_ratio"';
-
- connection_pool_size 256;
- client_header_buffer_size 1k;
- large_client_header_buffers 4 2k;
- request_pool_size 4k;
-
- output_buffers 1 32k;
- postpone_output 1460;
-
- # Don't follow symlink if the symlink's owner is not the target owner.
- # Enabled for the security reason.
- disable_symlinks if_not_owner;
-
- server_tokens off;
- ignore_invalid_headers on;
-
- client_header_timeout 5;
- client_body_timeout 15;
- send_timeout 10;
- keepalive_timeout 20 15;
-
- gzip on;
- gzip_vary on;
- gzip_comp_level 9;
- gzip_min_length 1100;
- gzip_buffers 16 8k;
- gzip_types text/plain text/css image/bmp;
-
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
-
- index index.html;
- include /etc/nginx/sites-enabled/*;
-}
View
73 www-servers/nginx/files/1.3.0/nginx.init
@@ -1,73 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.init-r2,v 1.1 2010/01/03 19:51:41 djc Exp $
-
-opts="${opts} upgrade reload configtest"
-
-depend() {
- need net
- use dns logger netmount
-}
-
-start() {
- configtest
- ebegin "Starting nginx"
- start-stop-daemon --start --pidfile /var/run/nginx.pid --exec /usr/sbin/nginx -- -c /etc/nginx/nginx.conf
- eend $? "Failed to start nginx"
-}
-
-stop() {
- ebegin "Stopping nginx"
- start-stop-daemon --stop --pidfile /var/run/nginx.pid
- eend $? "Failed to stop nginx"
- rm -f /var/run/nginx.pid
-}
-
-reload() {
- configtest
- ebegin "Refreshing nginx' configuration"
- kill -HUP `cat /var/run/nginx.pid` &>/dev/null
- eend $? "Failed to reload nginx"
-}
-
-upgrade() {
- configtest
- ebegin "Upgrading nginx"
-
- einfo "Sending USR2 to old binary"
- kill -USR2 `cat /var/run/nginx.pid` &>/dev/null
-
- einfo "Sleeping 3 seconds before pid-files checking"
- sleep 3
-
- if [ ! -f /var/run/nginx.pid.oldbin ]; then
- eerror "File with old pid not found"
- return 1
- fi
-
- if [ ! -f /var/run/nginx.pid ]; then
- eerror "New binary failed to start"
- return 1
- fi
-
- einfo "Sleeping 3 seconds before WINCH"
- sleep 3 ; kill -WINCH `cat /var/run/nginx.pid.oldbin`
-
- einfo "Sending QUIT to old binary"
- kill -QUIT `cat /var/run/nginx.pid.oldbin`
-
- einfo "Upgrade completed"
-
- eend $? "Upgrade failed"
-}
-
-configtest() {
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t > /dev/null 2>&1
- if [ $? -ne 0 ]
- then
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t
- eerror "Aborting due to configuration error."
- exit 1
- fi
-}
View
12 www-servers/nginx/files/1.3.0/sites-available/localhost
@@ -1,12 +0,0 @@
-server {
- listen 127.0.0.1;
- server_name localhost;
- access_log /var/log/nginx/localhost.access_log main;
- error_log /var/log/nginx/localhost.error_log info;
- # Default location for the localhost, change the Comment
- # state for the two following root directives to make it
- # active.
- #root /var/www/localhost/htdocs;
- # root directive for a default nginx welcome page.
- root /usr/share/nginx/html;
-}
View
55 www-servers/nginx/files/1.3.1-r1/nginx.conf
@@ -1,55 +0,0 @@
-user nginx nginx;
-worker_processes 4;
-worker_rlimit_nofile 64000;
-
-error_log /var/log/nginx/error_log info;
-
-events {
- worker_connections 16000;
- use epoll;
-}
-
-http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
-
- log_format main
- '$remote_addr - $remote_user [$time_local] '
- '"$request" $status $bytes_sent '
- '"$http_referer" "$http_user_agent" '
- '"$gzip_ratio"';
-
- connection_pool_size 256;
- client_header_buffer_size 1k;
- large_client_header_buffers 4 2k;
- request_pool_size 4k;
-
- output_buffers 1 32k;
- postpone_output 1460;
-
- # Don't follow symlink if the symlink's owner is not the target owner.
- # Enabled for the security reason.
- disable_symlinks if_not_owner;
-
- server_tokens off;
- ignore_invalid_headers on;
-
- client_header_timeout 5;
- client_body_timeout 15;
- send_timeout 10;
- keepalive_timeout 20 15;
-
- gzip on;
- gzip_vary on;
- gzip_comp_level 9;
- gzip_min_length 1100;
- gzip_buffers 16 8k;
- gzip_types text/plain text/css image/bmp;
-
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
-
- index index.html;
- include /etc/nginx/sites-enabled/*;
-}
View
73 www-servers/nginx/files/1.3.1-r1/nginx.init
@@ -1,73 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.init-r2,v 1.1 2010/01/03 19:51:41 djc Exp $
-
-opts="${opts} upgrade reload configtest"
-
-depend() {
- need net
- use dns logger netmount
-}
-
-start() {
- configtest
- ebegin "Starting nginx"
- start-stop-daemon --start --pidfile /var/run/nginx.pid --exec /usr/sbin/nginx -- -c /etc/nginx/nginx.conf
- eend $? "Failed to start nginx"
-}
-
-stop() {
- ebegin "Stopping nginx"
- start-stop-daemon --stop --pidfile /var/run/nginx.pid
- eend $? "Failed to stop nginx"
- rm -f /var/run/nginx.pid
-}
-
-reload() {
- configtest
- ebegin "Refreshing nginx' configuration"
- kill -HUP `cat /var/run/nginx.pid` &>/dev/null
- eend $? "Failed to reload nginx"
-}
-
-upgrade() {
- configtest
- ebegin "Upgrading nginx"
-
- einfo "Sending USR2 to old binary"
- kill -USR2 `cat /var/run/nginx.pid` &>/dev/null
-
- einfo "Sleeping 3 seconds before pid-files checking"
- sleep 3
-
- if [ ! -f /var/run/nginx.pid.oldbin ]; then
- eerror "File with old pid not found"
- return 1
- fi
-
- if [ ! -f /var/run/nginx.pid ]; then
- eerror "New binary failed to start"
- return 1
- fi
-
- einfo "Sleeping 3 seconds before WINCH"
- sleep 3 ; kill -WINCH `cat /var/run/nginx.pid.oldbin`
-
- einfo "Sending QUIT to old binary"
- kill -QUIT `cat /var/run/nginx.pid.oldbin`
-
- einfo "Upgrade completed"
-
- eend $? "Upgrade failed"
-}
-
-configtest() {
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t > /dev/null 2>&1
- if [ $? -ne 0 ]
- then
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t
- eerror "Aborting due to configuration error."
- exit 1
- fi
-}
View
12 www-servers/nginx/files/1.3.1-r1/sites-available/localhost
@@ -1,12 +0,0 @@
-server {
- listen 127.0.0.1;
- server_name localhost;
- access_log /var/log/nginx/localhost.access_log main;
- error_log /var/log/nginx/localhost.error_log info;
- # Default location for the localhost, change the Comment
- # state for the two following root directives to make it
- # active.
- #root /var/www/localhost/htdocs;
- # root directive for a default nginx welcome page.
- root /usr/share/nginx/html;
-}
View
55 www-servers/nginx/files/1.3.1/nginx.conf
@@ -1,55 +0,0 @@
-user nginx nginx;
-worker_processes 4;
-worker_rlimit_nofile 64000;
-
-error_log /var/log/nginx/error_log info;
-
-events {
- worker_connections 16000;
- use epoll;
-}
-
-http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
-
- log_format main
- '$remote_addr - $remote_user [$time_local] '
- '"$request" $status $bytes_sent '
- '"$http_referer" "$http_user_agent" '
- '"$gzip_ratio"';
-
- connection_pool_size 256;
- client_header_buffer_size 1k;
- large_client_header_buffers 4 2k;
- request_pool_size 4k;
-
- output_buffers 1 32k;
- postpone_output 1460;
-
- # Don't follow symlink if the symlink's owner is not the target owner.
- # Enabled for the security reason.
- disable_symlinks if_not_owner;
-
- server_tokens off;
- ignore_invalid_headers on;
-
- client_header_timeout 5;
- client_body_timeout 15;
- send_timeout 10;
- keepalive_timeout 20 15;
-
- gzip on;
- gzip_vary on;
- gzip_comp_level 9;
- gzip_min_length 1100;
- gzip_buffers 16 8k;
- gzip_types text/plain text/css image/bmp;
-
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
-
- index index.html;
- include /etc/nginx/sites-enabled/*;
-}
View
73 www-servers/nginx/files/1.3.1/nginx.init
@@ -1,73 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.init-r2,v 1.1 2010/01/03 19:51:41 djc Exp $
-
-opts="${opts} upgrade reload configtest"
-
-depend() {
- need net
- use dns logger netmount
-}
-
-start() {
- configtest
- ebegin "Starting nginx"
- start-stop-daemon --start --pidfile /var/run/nginx.pid --exec /usr/sbin/nginx -- -c /etc/nginx/nginx.conf
- eend $? "Failed to start nginx"
-}
-
-stop() {
- ebegin "Stopping nginx"
- start-stop-daemon --stop --pidfile /var/run/nginx.pid
- eend $? "Failed to stop nginx"
- rm -f /var/run/nginx.pid
-}
-
-reload() {
- configtest
- ebegin "Refreshing nginx' configuration"
- kill -HUP `cat /var/run/nginx.pid` &>/dev/null
- eend $? "Failed to reload nginx"
-}
-
-upgrade() {
- configtest
- ebegin "Upgrading nginx"
-
- einfo "Sending USR2 to old binary"
- kill -USR2 `cat /var/run/nginx.pid` &>/dev/null
-
- einfo "Sleeping 3 seconds before pid-files checking"
- sleep 3
-
- if [ ! -f /var/run/nginx.pid.oldbin ]; then
- eerror "File with old pid not found"
- return 1
- fi
-
- if [ ! -f /var/run/nginx.pid ]; then
- eerror "New binary failed to start"
- return 1
- fi
-
- einfo "Sleeping 3 seconds before WINCH"
- sleep 3 ; kill -WINCH `cat /var/run/nginx.pid.oldbin`
-
- einfo "Sending QUIT to old binary"
- kill -QUIT `cat /var/run/nginx.pid.oldbin`
-
- einfo "Upgrade completed"
-
- eend $? "Upgrade failed"
-}
-
-configtest() {
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t > /dev/null 2>&1
- if [ $? -ne 0 ]
- then
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t
- eerror "Aborting due to configuration error."
- exit 1
- fi
-}
View
12 www-servers/nginx/files/1.3.1/sites-available/localhost
@@ -1,12 +0,0 @@
-server {
- listen 127.0.0.1;
- server_name localhost;
- access_log /var/log/nginx/localhost.access_log main;
- error_log /var/log/nginx/localhost.error_log info;
- # Default location for the localhost, change the Comment
- # state for the two following root directives to make it
- # active.
- #root /var/www/localhost/htdocs;
- # root directive for a default nginx welcome page.
- root /usr/share/nginx/html;
-}
View
55 www-servers/nginx/files/1.3.8/nginx.conf
@@ -1,55 +0,0 @@
-user nginx nginx;
-worker_processes 4;
-worker_rlimit_nofile 64000;
-
-error_log /var/log/nginx/error_log info;
-
-events {
- worker_connections 16000;
- use epoll;
-}
-
-http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
-
- log_format main
- '$remote_addr - $remote_user [$time_local] '
- '"$request" $status $bytes_sent '
- '"$http_referer" "$http_user_agent" '
- '"$gzip_ratio"';
-
- connection_pool_size 256;
- client_header_buffer_size 1k;
- large_client_header_buffers 4 2k;
- request_pool_size 4k;
-
- output_buffers 1 32k;
- postpone_output 1460;
-
- # Don't follow symlink if the symlink's owner is not the target owner.
- # Enabled for the security reason.
- disable_symlinks if_not_owner;
-
- server_tokens off;
- ignore_invalid_headers on;
-
- client_header_timeout 5;
- client_body_timeout 15;
- send_timeout 10;
- keepalive_timeout 20 15;
-
- gzip on;
- gzip_vary on;
- gzip_comp_level 9;
- gzip_min_length 1100;
- gzip_buffers 16 8k;
- gzip_types text/plain text/css image/bmp;
-
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
-
- index index.html;
- include /etc/nginx/sites-enabled/*;
-}
View
73 www-servers/nginx/files/1.3.8/nginx.init
@@ -1,73 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.init-r2,v 1.1 2010/01/03 19:51:41 djc Exp $
-
-opts="${opts} upgrade reload configtest"
-
-depend() {
- need net
- use dns logger netmount
-}
-
-start() {
- configtest
- ebegin "Starting nginx"
- start-stop-daemon --start --pidfile /var/run/nginx.pid --exec /usr/sbin/nginx -- -c /etc/nginx/nginx.conf
- eend $? "Failed to start nginx"
-}
-
-stop() {
- ebegin "Stopping nginx"
- start-stop-daemon --stop --pidfile /var/run/nginx.pid
- eend $? "Failed to stop nginx"
- rm -f /var/run/nginx.pid
-}
-
-reload() {
- configtest
- ebegin "Refreshing nginx' configuration"
- kill -HUP `cat /var/run/nginx.pid` &>/dev/null
- eend $? "Failed to reload nginx"
-}
-
-upgrade() {
- configtest
- ebegin "Upgrading nginx"
-
- einfo "Sending USR2 to old binary"
- kill -USR2 `cat /var/run/nginx.pid` &>/dev/null
-
- einfo "Sleeping 3 seconds before pid-files checking"
- sleep 3
-
- if [ ! -f /var/run/nginx.pid.oldbin ]; then
- eerror "File with old pid not found"
- return 1
- fi
-
- if [ ! -f /var/run/nginx.pid ]; then
- eerror "New binary failed to start"
- return 1
- fi
-
- einfo "Sleeping 3 seconds before WINCH"
- sleep 3 ; kill -WINCH `cat /var/run/nginx.pid.oldbin`
-
- einfo "Sending QUIT to old binary"
- kill -QUIT `cat /var/run/nginx.pid.oldbin`
-
- einfo "Upgrade completed"
-
- eend $? "Upgrade failed"
-}
-
-configtest() {
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t > /dev/null 2>&1
- if [ $? -ne 0 ]
- then
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t
- eerror "Aborting due to configuration error."
- exit 1
- fi
-}
View
12 www-servers/nginx/files/1.3.8/sites-available/localhost
@@ -1,12 +0,0 @@
-server {
- listen 127.0.0.1;
- server_name localhost;
- access_log /var/log/nginx/localhost.access_log main;
- error_log /var/log/nginx/localhost.error_log info;
- # Default location for the localhost, change the Comment
- # state for the two following root directives to make it
- # active.
- #root /var/www/localhost/htdocs;
- # root directive for a default nginx welcome page.
- root /usr/share/nginx/html;
-}
View
24 www-servers/nginx/files/1.1.15-r1/nginx.conf → www-servers/nginx/files/1.4.1-r5/nginx.conf
@@ -1,5 +1,4 @@
user nginx nginx;
-worker_processes 4;
worker_rlimit_nofile 64000;
error_log /var/log/nginx/error_log info;
@@ -11,6 +10,8 @@ events {
http {
include /etc/nginx/mime.types;
+
+ # This causes files with an unknown MIME type to trigger a download action in the browser:
default_type application/octet-stream;
log_format main
@@ -19,32 +20,17 @@ http {
'"$http_referer" "$http_user_agent" '
'"$gzip_ratio"';
- connection_pool_size 256;
- client_header_buffer_size 1k;
- large_client_header_buffers 4 2k;
- request_pool_size 4k;
-
- output_buffers 1 32k;
- postpone_output 1460;
+ client_max_body_size 64m;
# Don't follow symlink if the symlink's owner is not the target owner.
- # Enabled for the security reason.
+
disable_symlinks if_not_owner;
-
server_tokens off;
ignore_invalid_headers on;
- client_header_timeout 5;
- client_body_timeout 15;
- send_timeout 10;
- keepalive_timeout 20 15;
-
gzip on;
gzip_vary on;
- gzip_comp_level 9;
- gzip_min_length 1100;
- gzip_buffers 16 8k;
- gzip_types text/plain text/css image/bmp;
+ gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript text/x-js image/x-icon image/bmp;
sendfile on;
tcp_nopush on;
View
91 www-servers/nginx/files/1.4.1-r5/nginx.initd
@@ -0,0 +1,91 @@
+#!/sbin/runscript
+# Distributed under the terms of the GNU General Public License v2
+
+extra_commands="configtest"
+extra_started_commands="upgrade reload"
+
+description="Robust, small and high performance http and reverse proxy server"
+description_configtest="Run nginx' internal config check."
+description_upgrade="Upgrade the nginx binary without losing connections."
+description_reload="Reload the nginx configuration without losing connections."
+
+nginx_config=${nginx_config:-/etc/nginx/nginx.conf}
+
+command="/usr/sbin/nginx"
+command_args="-c ${nginx_config}"
+pidfile=${pidfile:-/run/nginx.pid}
+user=${user:-nginx}
+group=${group:-nginx}
+
+depend() {
+ need net
+ use dns logger netmount
+}
+
+start_pre() {
+ if [ -z "$( grep \w*worker_processes /etc/nginx/nginx.conf )" ]; then
+ # automatically scale nginx based on number of CPU cores - default for Funtoo...
+ command_args="$command_args -g \"worker_processes $(cat /proc/cpuinfo | grep '^model name' | wc -l );\""
+ fi
+ if [ "${RC_CMD}" != "restart" ]; then
+ configtest || return 1
+ fi
+}
+
+stop_pre() {
+ if [ "${RC_CMD}" = "restart" ]; then
+ configtest || return 1
+ fi
+}
+
+stop_post() {
+ rm -f ${pidfile}
+}
+
+reload() {
+ configtest || return 1
+ ebegin "Refreshing nginx' configuration"
+ kill -HUP `cat ${pidfile}` &>/dev/null
+ eend $? "Failed to reload nginx"
+}
+
+upgrade() {
+ configtest || return 1
+ ebegin "Upgrading nginx"
+
+ einfo "Sending USR2 to old binary"
+ kill -USR2 `cat ${pidfile}` &>/dev/null
+
+ einfo "Sleeping 3 seconds before pid-files checking"
+ sleep 3
+
+ if [ ! -f ${pidfile}.oldbin ]; then
+ eerror "File with old pid not found"
+ return 1
+ fi
+
+ if [ ! -f ${pidfile} ]; then
+ eerror "New binary failed to start"
+ return 1
+ fi
+
+ einfo "Sleeping 3 seconds before WINCH"
+ sleep 3 ; kill -WINCH `cat ${pidfile}.oldbin`
+
+ einfo "Sending QUIT to old binary"
+ kill -QUIT `cat ${pidfile}.oldbin`
+
+ einfo "Upgrade completed"
+ eend $? "Upgrade failed"
+}
+
+configtest() {
+ ebegin "Checking nginx' configuration"
+ ${command} -c ${nginx_config} -t -q
+
+ if [ $? -ne 0 ]; then
+ ${command} -c ${nginx_config} -t
+ fi
+
+ eend $? "failed, please correct errors above"
+}
View
4 ...nx/files/1.1.15/sites-available/localhost → .../files/1.4.1-r5/sites-available/localhost
@@ -3,10 +3,6 @@ server {
server_name localhost;
access_log /var/log/nginx/localhost.access_log main;
error_log /var/log/nginx/localhost.error_log info;
- # Default location for the localhost, change the Comment
- # state for the two following root directives to make it
- # active.
- #root /var/www/localhost/htdocs;
# root directive for a default nginx welcome page.
root /usr/share/nginx/html;
}
View
2 www-servers/nginx/files/example/index.html
@@ -88,7 +88,7 @@
<div class="content">
<p>This is the default <tt>index.html</tt> page that
is distributed with <strong>nginx</strong> on
- Funtoo Technologies. It is located in
+ Funtoo Linux. It is located in
<tt>/usr/share/nginx/html</tt>.</p>
<p>You can now put your content in a location at
View
51 www-servers/nginx/files/nginx-0.8.32-ey-balancer.patch
@@ -1,51 +0,0 @@
-diff -Naur a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
---- a/src/http/ngx_http_upstream.c 2009-12-23 10:31:16.000000000 -0500
-+++ b/src/http/ngx_http_upstream.c 2010-01-20 15:26:24.000000000 -0500
-@@ -24,8 +24,6 @@
- static void ngx_http_upstream_wr_check_broken_connection(ngx_http_request_t *r);
- static void ngx_http_upstream_check_broken_connection(ngx_http_request_t *r,
- ngx_event_t *ev);
--static void ngx_http_upstream_connect(ngx_http_request_t *r,
-- ngx_http_upstream_t *u);
- static ngx_int_t ngx_http_upstream_reinit(ngx_http_request_t *r,
- ngx_http_upstream_t *u);
- static void ngx_http_upstream_send_request(ngx_http_request_t *r,
-@@ -600,13 +598,12 @@
-
- found:
-
-- if (uscf->peer.init(r, uscf) != NGX_OK) {
-- ngx_http_upstream_finalize_request(r, u,
-- NGX_HTTP_INTERNAL_SERVER_ERROR);
-- return;
-+ switch(uscf->peer.init(r, uscf)) {
-+ case NGX_OK: ngx_http_upstream_connect(r, u);
-+ case NGX_BUSY: return;
- }
-
-- ngx_http_upstream_connect(r, u);
-+ ngx_http_upstream_finalize_request(r, u, NGX_HTTP_INTERNAL_SERVER_ERROR);
- }
-
-
-@@ -1030,7 +1027,7 @@
- }
-
-
--static void
-+void
- ngx_http_upstream_connect(ngx_http_request_t *r, ngx_http_upstream_t *u)
- {
- ngx_int_t rc;
-diff -Naur a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h
---- a/src/http/ngx_http_upstream.h 2009-12-23 09:22:17.000000000 -0500
-+++ b/src/http/ngx_http_upstream.h 2010-01-20 15:24:36.000000000 -0500
-@@ -321,6 +321,8 @@
-
- ngx_int_t ngx_http_upstream_create(ngx_http_request_t *r);
- void ngx_http_upstream_init(ngx_http_request_t *r);
-+#define NGX_HTTP_UPSTREAM_INIT_BUSY_PATCH_VERSION 1
-+void ngx_http_upstream_connect(ngx_http_request_t *r, ngx_http_upstream_t *u);
- ngx_http_upstream_srv_conf_t *ngx_http_upstream_add(ngx_conf_t *cf,
- ngx_url_t *u, ngx_uint_t flags);
- char *ngx_http_upstream_bind_set_slot(ngx_conf_t *cf, ngx_command_t *cmd,
View
13 www-servers/nginx/files/nginx-1.4.1-fix-perl-install-path.patch
@@ -0,0 +1,13 @@
+diff --git a/auto/lib/perl/make b/auto/lib/perl/make
+index 260bd95..857ece6 100644
+--- a/auto/lib/perl/make
++++ b/auto/lib/perl/make
+@@ -35,6 +35,8 @@ $NGX_OBJS/src/http/modules/perl/Makefile: \\
+ NGX_DEPS="\$(CORE_DEPS) \$(HTTP_DEPS)" \\
+ $NGX_PERL Makefile.PL \\
+ LIB=$NGX_PERL_MODULES \\
++ PREFIX=$NGX_PREFIX \\
++ INSTALLDIRS=vendor \\
+ INSTALLSITEMAN3DIR=$NGX_PERL_MODULES_MAN
+
+ END
View
586 www-servers/nginx/files/nginx-http_mp4_module.patch
@@ -1,586 +0,0 @@
---- src/http/modules/ngx_http_mp4_module.c
-+++ src/http/modules/ngx_http_mp4_module.c
-@@ -156,6 +156,7 @@ typedef struct {
-
- #define ngx_mp4_atom_header(mp4) (mp4->buffer_pos - 8)
- #define ngx_mp4_atom_data(mp4) mp4->buffer_pos
-+#define ngx_mp4_atom_data_size(t) (uint64_t) (sizeof(t) - 8)
- #define ngx_mp4_atom_next(mp4, n) mp4->buffer_pos += n; mp4->offset += n
-
-
-@@ -204,7 +205,7 @@ typedef struct {
- static ngx_int_t ngx_http_mp4_process(ngx_http_mp4_file_t *mp4);
- static ngx_int_t ngx_http_mp4_read_atom(ngx_http_mp4_file_t *mp4,
- ngx_http_mp4_atom_handler_t *atom, uint64_t atom_data_size);
--static ngx_int_t ngx_http_mp4_read(ngx_http_mp4_file_t *mp4);
-+static ngx_int_t ngx_http_mp4_read(ngx_http_mp4_file_t *mp4, size_t size);
- static ngx_int_t ngx_http_mp4_read_ftyp_atom(ngx_http_mp4_file_t *mp4,
- uint64_t atom_data_size);
- static ngx_int_t ngx_http_mp4_read_moov_atom(ngx_http_mp4_file_t *mp4,
-@@ -265,7 +266,7 @@ static ngx_int_t ngx_http_mp4_update_sts
- ngx_http_mp4_trak_t *trak);
- static ngx_int_t ngx_http_mp4_read_stsz_atom(ngx_http_mp4_file_t *mp4,
- uint64_t atom_data_size);
--static void ngx_http_mp4_update_stsz_atom(ngx_http_mp4_file_t *mp4,
-+static ngx_int_t ngx_http_mp4_update_stsz_atom(ngx_http_mp4_file_t *mp4,
- ngx_http_mp4_trak_t *trak);
- static ngx_int_t ngx_http_mp4_read_stco_atom(ngx_http_mp4_file_t *mp4,
- uint64_t atom_data_size);
-@@ -701,7 +702,9 @@ ngx_http_mp4_process(ngx_http_mp4_file_t
- return NGX_ERROR;
- }
-
-- ngx_http_mp4_update_stsz_atom(mp4, &trak[i]);
-+ if (ngx_http_mp4_update_stsz_atom(mp4, &trak[i]) != NGX_OK) {
-+ return NGX_ERROR;
-+ }
-
- if (trak[i].out[NGX_HTTP_MP4_CO64_DATA].buf) {
- if (ngx_http_mp4_update_co64_atom(mp4, &trak[i]) != NGX_OK) {
-@@ -793,10 +796,8 @@ ngx_http_mp4_read_atom(ngx_http_mp4_file
-
- while (mp4->offset < end) {
-
-- if (mp4->buffer_pos + sizeof(uint32_t) > mp4->buffer_end) {
-- if (ngx_http_mp4_read(mp4) != NGX_OK) {
-- return NGX_ERROR;
-- }
-+ if (ngx_http_mp4_read(mp4, sizeof(uint32_t)) != NGX_OK) {
-+ return NGX_ERROR;
- }
-
- atom_header = mp4->buffer_pos;
-@@ -813,17 +814,14 @@ ngx_http_mp4_read_atom(ngx_http_mp4_file
-
- if (atom_size == 1) {
-
-- if (mp4->buffer_pos + sizeof(ngx_mp4_atom_header64_t)
-- > mp4->buffer_end)
-+ if (ngx_http_mp4_read(mp4, sizeof(ngx_mp4_atom_header64_t))
-+ != NGX_OK)
- {
-- if (ngx_http_mp4_read(mp4) != NGX_OK) {
-- return NGX_ERROR;
-- }
--
-- atom_header = mp4->buffer_pos;
-+ return NGX_ERROR;
- }
-
- /* 64-bit atom size */
-+ atom_header = mp4->buffer_pos;
- atom_size = ngx_mp4_get_64value(atom_header + 8);
- atom_header_size = sizeof(ngx_mp4_atom_header64_t);
-
-@@ -835,20 +833,26 @@ ngx_http_mp4_read_atom(ngx_http_mp4_file
- }
- }
-
-- if (mp4->buffer_pos + sizeof(ngx_mp4_atom_header_t) > mp4->buffer_end) {
-- if (ngx_http_mp4_read(mp4) != NGX_OK) {
-- return NGX_ERROR;
-- }
--
-- atom_header = mp4->buffer_pos;
-+ if (ngx_http_mp4_read(mp4, sizeof(ngx_mp4_atom_header_t)) != NGX_OK) {
-+ return NGX_ERROR;
- }
-
-+ atom_header = mp4->buffer_pos;
- atom_name = atom_header + sizeof(uint32_t);
-
- ngx_log_debug4(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0,
- "mp4 atom: %*s @%O:%uL",
- 4, atom_name, mp4->offset, atom_size);
-
-+ if (atom_size > (uint64_t) (NGX_MAX_OFF_T_VALUE - mp4->offset)
-+ || mp4->offset + (off_t) atom_size > end)
-+ {
-+ ngx_log_error(NGX_LOG_ERR, mp4->file.log, 0,
-+ "\"%s\" mp4 atom too large:%uL",
-+ mp4->file.name.data, atom_size);
-+ return NGX_ERROR;
-+ }
-+
- for (n = 0; atom[n].name; n++) {
-
- if (ngx_strncmp(atom_name, atom[n].name, 4) == 0) {
-@@ -875,14 +879,24 @@ ngx_http_mp4_read_atom(ngx_http_mp4_file
-
-
- static ngx_int_t
--ngx_http_mp4_read(ngx_http_mp4_file_t *mp4)
-+ngx_http_mp4_read(ngx_http_mp4_file_t *mp4, size_t size)
- {
-- ngx_int_t n;
-+ ssize_t n;
-+
-+ if (mp4->buffer_pos + size <= mp4->buffer_end) {
-+ return NGX_OK;
-+ }
-
- if (mp4->offset + (off_t) mp4->buffer_size > mp4->end) {
- mp4->buffer_size = (size_t) (mp4->end - mp4->offset);
- }
-
-+ if (mp4->buffer_size < size) {
-+ ngx_log_error(NGX_LOG_ERR, mp4->file.log, 0,
-+ "\"%s\" mp4 file truncated", mp4->file.name.data);
-+ return NGX_ERROR;
-+ }
-+
- if (mp4->buffer == NULL) {
- mp4->buffer = ngx_palloc(mp4->request->pool, mp4->buffer_size);
- if (mp4->buffer == NULL) {
-@@ -890,7 +904,6 @@ ngx_http_mp4_read(ngx_http_mp4_file_t *m
- }
-
- mp4->buffer_start = mp4->buffer;
-- mp4->buffer_end = mp4->buffer + mp4->buffer_size;
- }
-
- n = ngx_read_file(&mp4->file, mp4->buffer_start, mp4->buffer_size,
-@@ -900,11 +913,15 @@ ngx_http_mp4_read(ngx_http_mp4_file_t *m
- return NGX_ERROR;
- }
-
-- if (n == 0) {
-- return NGX_OK;
-+ if ((size_t) n != mp4->buffer_size) {
-+ ngx_log_error(NGX_LOG_CRIT, mp4->file.log, 0,
-+ ngx_read_file_n " read only %z of %z from \"%s\"",
-+ n, mp4->buffer_size, mp4->file.name.data);
-+ return NGX_ERROR;
- }
-
- mp4->buffer_pos = mp4->buffer_start;
-+ mp4->buffer_end = mp4->buffer_start + mp4->buffer_size;
-
- return NGX_OK;
- }
-@@ -919,7 +936,9 @@ ngx_http_mp4_read_ftyp_atom(ngx_http_mp4
-
- ngx_log_debug0(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0, "mp4 ftyp atom");
-
-- if (atom_data_size > 1024) {
-+ if (atom_data_size > 1024
-+ || ngx_mp4_atom_data(mp4) + atom_data_size > mp4->buffer_end)
-+ {
- ngx_log_error(NGX_LOG_ERR, mp4->file.log, 0,