passenger 5.0.30 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of passenger might be problematic. Click here for more details.

Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +30 -1
  3. data/CONTRIBUTING.md +1 -1
  4. data/CONTRIBUTORS +2 -0
  5. data/bin/passenger-install-nginx-module +18 -13
  6. data/build/agent.rb +1 -0
  7. data/build/basics.rb +1 -0
  8. data/build/cxx_tests.rb +6 -1
  9. data/build/misc.rb +3 -0
  10. data/build/packaging.rb +5 -17
  11. data/build/support/cxx_dependency_map.rb +100 -0
  12. data/build/support/vendor/cxxcodebuilder/lib/cxxcodebuilder/builder.rb +4 -1
  13. data/build/test_basics.rb +12 -2
  14. data/dev/ci/run_travis.sh +6 -2
  15. data/doc/Users guide Apache.html +7 -2
  16. data/doc/Users guide Apache.txt +4 -0
  17. data/resources/templates/error_layout.css +70 -84
  18. data/resources/templates/error_layout.html.template +84 -93
  19. data/resources/templates/standalone/http.erb +17 -13
  20. data/resources/templates/standalone/server.erb +2 -1
  21. data/resources/templates/undisclosed_error.html.template +52 -51
  22. data/resources/update_check_client_cert.p12 +0 -0
  23. data/resources/update_check_client_cert.pem +89 -0
  24. data/resources/update_check_server_pubkey.pem +14 -0
  25. data/src/agent/Core/ApplicationPool/ErrorRenderer.h +15 -1
  26. data/src/agent/Core/Controller.h +3 -2
  27. data/src/agent/Core/Controller/CheckoutSession.cpp +5 -4
  28. data/src/agent/Core/Controller/ForwardResponse.cpp +1 -1
  29. data/src/agent/Core/Controller/InitRequest.cpp +2 -0
  30. data/src/agent/Core/Controller/InitializationAndShutdown.cpp +1 -0
  31. data/src/agent/Core/Controller/Request.h +1 -0
  32. data/src/agent/Core/CoreMain.cpp +99 -2
  33. data/src/agent/Core/OptionParser.h +18 -1
  34. data/src/agent/Core/SecurityUpdateChecker.h +559 -0
  35. data/src/agent/Shared/Base.cpp +6 -1
  36. data/src/agent/TempDirToucher/TempDirToucherMain.cpp +52 -0
  37. data/src/agent/Watchdog/InstanceDirToucher.cpp +1 -2
  38. data/src/agent/Watchdog/WatchdogMain.cpp +31 -40
  39. data/src/apache2_module/Configuration.cpp +12 -0
  40. data/src/apache2_module/Configuration.hpp +5 -0
  41. data/src/apache2_module/ConfigurationCommands.cpp +19 -19
  42. data/src/apache2_module/ConfigurationCommands.cpp.cxxcodebuilder +2 -2
  43. data/src/apache2_module/ConfigurationFields.hpp +19 -19
  44. data/src/apache2_module/ConfigurationFields.hpp.cxxcodebuilder +2 -2
  45. data/src/apache2_module/ConfigurationSetters.cpp +19 -19
  46. data/src/apache2_module/ConfigurationSetters.cpp.cxxcodebuilder +2 -2
  47. data/src/apache2_module/CreateDirConfig.cpp +19 -19
  48. data/src/apache2_module/CreateDirConfig.cpp.cxxcodebuilder +2 -2
  49. data/src/apache2_module/Hooks.cpp +10 -1
  50. data/src/apache2_module/MergeDirConfig.cpp +19 -19
  51. data/src/apache2_module/MergeDirConfig.cpp.cxxcodebuilder +2 -2
  52. data/src/apache2_module/SetHeaders.cpp +19 -19
  53. data/src/apache2_module/SetHeaders.cpp.cxxcodebuilder +2 -2
  54. data/src/cxx_supportlib/Constants.h +22 -22
  55. data/src/cxx_supportlib/Constants.h.cxxcodebuilder +4 -1
  56. data/src/cxx_supportlib/Crypto.cpp +977 -0
  57. data/src/cxx_supportlib/Crypto.h +147 -0
  58. data/src/cxx_supportlib/InstanceDirectory.h +55 -2
  59. data/src/cxx_supportlib/Utils/Curl.h +24 -10
  60. data/src/cxx_supportlib/Utils/JsonUtils.h +1 -1
  61. data/src/cxx_supportlib/oxt/detail/spin_lock_darwin.hpp +2 -0
  62. data/src/cxx_supportlib/vendor-modified/boost/system/error_code.hpp +3 -3
  63. data/src/cxx_supportlib/vendor-modified/jsoncpp/json-forwards.h +167 -92
  64. data/src/cxx_supportlib/vendor-modified/jsoncpp/json.h +1827 -1542
  65. data/src/cxx_supportlib/vendor-modified/jsoncpp/jsoncpp.cpp +4705 -3652
  66. data/src/cxx_supportlib/vendor-modified/libev/Changes +46 -15
  67. data/src/cxx_supportlib/vendor-modified/libev/LICENSE +1 -1
  68. data/src/cxx_supportlib/vendor-modified/libev/Makefile.in +215 -128
  69. data/src/cxx_supportlib/vendor-modified/libev/aclocal.m4 +466 -275
  70. data/src/cxx_supportlib/vendor-modified/libev/config.guess +312 -418
  71. data/src/cxx_supportlib/vendor-modified/libev/config.sub +246 -105
  72. data/src/cxx_supportlib/vendor-modified/libev/configure +276 -72
  73. data/src/cxx_supportlib/vendor-modified/libev/configure.ac +2 -1
  74. data/src/cxx_supportlib/vendor-modified/libev/depcomp +346 -185
  75. data/src/cxx_supportlib/vendor-modified/libev/ev++.h +1 -1
  76. data/src/cxx_supportlib/vendor-modified/libev/ev.c +530 -190
  77. data/src/cxx_supportlib/vendor-modified/libev/ev.h +23 -14
  78. data/src/cxx_supportlib/vendor-modified/libev/ev_epoll.c +12 -6
  79. data/src/cxx_supportlib/vendor-modified/libev/ev_kqueue.c +9 -5
  80. data/src/cxx_supportlib/vendor-modified/libev/ev_poll.c +6 -3
  81. data/src/cxx_supportlib/vendor-modified/libev/ev_port.c +8 -4
  82. data/src/cxx_supportlib/vendor-modified/libev/ev_select.c +4 -2
  83. data/src/cxx_supportlib/vendor-modified/libev/ev_vars.h +3 -2
  84. data/src/cxx_supportlib/vendor-modified/libev/ev_win32.c +3 -4
  85. data/src/cxx_supportlib/vendor-modified/libev/install-sh +433 -219
  86. data/src/cxx_supportlib/vendor-modified/libev/libev.m4 +6 -6
  87. data/src/cxx_supportlib/vendor-modified/libev/ltmain.sh +2 -2
  88. data/src/cxx_supportlib/vendor-modified/libev/missing +167 -288
  89. data/src/cxx_supportlib/vendor-modified/libev/mkinstalldirs +72 -21
  90. data/src/cxx_supportlib/vendor-modified/modp_b64.cpp +4 -106
  91. data/src/cxx_supportlib/vendor-modified/modp_b64_data.h +37 -1
  92. data/src/cxx_supportlib/vendor-modified/modp_b64_strict_aliasing.cpp +119 -0
  93. data/src/helper-scripts/node-loader.js +72 -1
  94. data/src/nginx_module/CacheLocationConfig.c +52 -19
  95. data/src/nginx_module/CacheLocationConfig.c.cxxcodebuilder +2 -2
  96. data/src/nginx_module/Configuration.c +26 -1
  97. data/src/nginx_module/Configuration.h +2 -0
  98. data/src/nginx_module/ConfigurationCommands.c +35 -19
  99. data/src/nginx_module/ConfigurationCommands.c.cxxcodebuilder +2 -2
  100. data/src/nginx_module/ContentHandler.c +1 -1
  101. data/src/nginx_module/CreateLocationConfig.c +22 -19
  102. data/src/nginx_module/CreateLocationConfig.c.cxxcodebuilder +2 -2
  103. data/src/nginx_module/LocationConfig.h +21 -19
  104. data/src/nginx_module/LocationConfig.h.cxxcodebuilder +2 -2
  105. data/src/nginx_module/MergeLocationConfig.c +25 -19
  106. data/src/nginx_module/MergeLocationConfig.c.cxxcodebuilder +2 -2
  107. data/src/nginx_module/ngx_http_passenger_module.c +8 -4
  108. data/src/ruby_supportlib/phusion_passenger.rb +9 -4
  109. data/src/ruby_supportlib/phusion_passenger/admin_tools/instance.rb +2 -2
  110. data/src/ruby_supportlib/phusion_passenger/admin_tools/instance_registry.rb +1 -1
  111. data/src/ruby_supportlib/phusion_passenger/common_library.rb +13 -0
  112. data/src/ruby_supportlib/phusion_passenger/config/nginx_engine_compiler.rb +5 -2
  113. data/src/ruby_supportlib/phusion_passenger/constants.rb +1 -1
  114. data/src/ruby_supportlib/phusion_passenger/nginx/config_options.rb +15 -3
  115. data/src/ruby_supportlib/phusion_passenger/platform_info/crypto.rb +51 -0
  116. data/src/ruby_supportlib/phusion_passenger/platform_info/depcheck_specs/apache2.rb +7 -0
  117. data/src/ruby_supportlib/phusion_passenger/standalone/config_options_list.rb +17 -0
  118. data/src/ruby_supportlib/phusion_passenger/standalone/start_command.rb +4 -2
  119. data/src/ruby_supportlib/phusion_passenger/standalone/start_command/builtin_engine.rb +4 -0
  120. data/src/ruby_supportlib/phusion_passenger/standalone/start_command/nginx_engine.rb +5 -0
  121. data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/app.rb +19 -10
  122. data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/base.rb +25 -0
  123. data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/gdb_controller.rb +38 -103
  124. data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/lldb_controller.rb +178 -0
  125. data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/utils.rb +94 -0
  126. data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/version.rb +2 -2
  127. data/src/ruby_supportlib/phusion_passenger/vendor/union_station_hooks_core/lib/union_station_hooks_core.rb +2 -2
  128. data/src/ruby_supportlib/phusion_passenger/vendor/union_station_hooks_core/lib/union_station_hooks_core/version_data.rb +2 -2
  129. data/src/ruby_supportlib/phusion_passenger/vendor/union_station_hooks_core/ruby_versions.yml.travis +5 -3
  130. data/src/ruby_supportlib/phusion_passenger/vendor/union_station_hooks_core/ruby_versions.yml.travis-with-sudo +9 -7
  131. metadata +14 -4
@@ -155,12 +155,16 @@ run cp test/config.json.travis test/config.json
155
155
  run chmod g+x,o+x $HOME
156
156
 
157
157
  if [[ "$TEST_RUBY_VERSION" != "" ]]; then
158
- echo "$ rvm use $TEST_RUBY_VERSION"
159
158
  if [[ -f ~/.rvm/scripts/rvm ]]; then
160
159
  source ~/.rvm/scripts/rvm
161
160
  else
162
161
  source /usr/local/rvm/scripts/rvm
163
162
  fi
163
+ echo "$ rvm list"
164
+ rvm list
165
+ echo "$ rvm install $TEST_RUBY_VERSION"
166
+ rvm install $TEST_RUBY_VERSION
167
+ echo "$ rvm use $TEST_RUBY_VERSION"
164
168
  rvm use $TEST_RUBY_VERSION
165
169
  if [[ "$TEST_RUBYGEMS_VERSION" = "" ]]; then
166
170
  run gem --version
@@ -244,5 +248,5 @@ if [[ "$TEST_SOURCE_PACKAGING" = 1 ]]; then
244
248
  apt_get_update
245
249
  run sudo apt-get install -y --no-install-recommends source-highlight
246
250
  install_test_deps_with_doctools
247
- run bundle exec rspec -f s -c test/integration_tests/source_packaging_test.rb
251
+ run bundle _1.11.2_ exec rspec -f s -c test/integration_tests/source_packaging_test.rb
248
252
  fi
@@ -1156,7 +1156,8 @@ pre {
1156
1156
  <div class="foo toclevel4"><a href="#PassengerGroup">7.5.3. PassengerGroup &lt;group name&gt;</a></div>
1157
1157
  <div class="foo toclevel4"><a href="#PassengerDefaultUser">7.5.4. PassengerDefaultUser &lt;username&gt;</a></div>
1158
1158
  <div class="foo toclevel4"><a href="#PassengerDefaultGroup">7.5.5. PassengerDefaultGroup &lt;group name&gt;</a></div>
1159
- <div class="foo toclevel4"><a href="#PassengerFriendlyErrorPages">7.5.6. PassengerFriendlyErrorPages &lt;on|off&gt;</a></div>
1159
+ <div class="foo toclevel4"><a href="#_passengershowversioninheader_lt_on_off_gt">7.5.6. PassengerShowVersionInHeader &lt;on|off&gt;</a></div>
1160
+ <div class="foo toclevel4"><a href="#PassengerFriendlyErrorPages">7.5.7. PassengerFriendlyErrorPages &lt;on|off&gt;</a></div>
1160
1161
  <div class="foo toclevel3"><a href="#_resource_control_and_optimization_options">7.6. Resource control and optimization options</a></div>
1161
1162
  <div class="foo toclevel4"><a href="#PassengerMaxPoolSize">7.6.1. PassengerMaxPoolSize &lt;integer&gt;</a></div>
1162
1163
  <div class="foo toclevel4"><a href="#PassengerMinInstances">7.6.2. PassengerMinInstances &lt;integer&gt;</a></div>
@@ -1640,7 +1641,11 @@ Report security vulnerabilities to <a href="mailto:security@phusion.nl">security
1640
1641
  <div class="paragraph"><p>This documentation has moved. Please visit <a href="https://www.phusionpassenger.com/library/config/apache/reference/#passengerdefaultgroup">https://www.phusionpassenger.com/library/config/apache/reference/#passengerdefaultgroup</a></p></div>
1641
1642
  </div>
1642
1643
  <div class="sect3">
1643
- <a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerFriendlyErrorPages"></span><h4 data-comment-topic="passengerfriendlyerrorpages" data-anchor="PassengerFriendlyErrorPages">7.5.6. PassengerFriendlyErrorPages &lt;on|off&gt;</h4>
1644
+ <a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="_passengershowversioninheader_lt_on_off_gt"></span><h4 data-comment-topic="passengershowversioninheader-on-off--d8rvr0" data-anchor="_passengershowversioninheader_lt_on_off_gt">7.5.6. PassengerShowVersionInHeader &lt;on|off&gt;</h4>
1645
+ <div class="paragraph"><p>This documentation has moved. Please visit <a href="https://www.phusionpassenger.com/library/config/apache/reference/#passengershowversioninheader">https://www.phusionpassenger.com/library/config/apache/reference/#passengershowversioninheader</a></p></div>
1646
+ </div>
1647
+ <div class="sect3">
1648
+ <a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerFriendlyErrorPages"></span><h4 data-comment-topic="passengerfriendlyerrorpages" data-anchor="PassengerFriendlyErrorPages">7.5.7. PassengerFriendlyErrorPages &lt;on|off&gt;</h4>
1644
1649
  <div class="paragraph"><p>This documentation has moved. Please visit <a href="https://www.phusionpassenger.com/library/config/apache/reference/#passengerfriendlyerrorpages">https://www.phusionpassenger.com/library/config/apache/reference/#passengerfriendlyerrorpages</a></p></div>
1645
1650
  </div>
1646
1651
  </div>
@@ -208,6 +208,10 @@ This documentation has moved. Please visit https://www.phusionpassenger.com/libr
208
208
 
209
209
  This documentation has moved. Please visit https://www.phusionpassenger.com/library/config/apache/reference/#passengerdefaultgroup
210
210
 
211
+ ==== PassengerShowVersionInHeader <on|off> ====
212
+
213
+ This documentation has moved. Please visit https://www.phusionpassenger.com/library/config/apache/reference/#passengershowversioninheader
214
+
211
215
  [[PassengerFriendlyErrorPages]]
212
216
  ==== PassengerFriendlyErrorPages <on|off> ====
213
217
 
@@ -1,103 +1,89 @@
1
1
  body {
2
- font-family: Verdana, 'Bitstream Vera Sans', Arial, Sans-Serif;
3
- font-size: 10pt;
4
- background: white;
5
- color: #222222;
6
- margin: 0;
7
- padding-top: 3em;
8
- padding-bottom: 3em;
9
- padding-left: 4.5em;
10
- padding-right: 4.5em;
2
+ font-family: Arial, Sans-Serif;
3
+ font-size: 13px;
4
+ color: #222222;
5
+ margin: 0;
6
+ }
7
+ .column {
8
+ width: 1000px;
9
+ margin-left: auto;
10
+ margin-right: auto;
11
+ text-align: center;
12
+ }
13
+ header {
14
+ margin-top: 50px;
15
+ border-bottom: 1px solid #E3E3E3;
16
+ margin-bottom: 45px;
17
+ }
18
+ footer {
19
+ font-size: 14px;
20
+ color: #7F7F7F;
21
+ border-top: 1px solid #E3E3E3;
22
+ margin-top: 50px;
23
+ padding: 40px 0px;
11
24
  }
12
-
13
25
  h1 {
14
- font-size: 17pt;
15
- font-weight: medium;
16
- color: #533e72;
17
- border-bottom: 1px solid #533e72;
26
+ font-size: 30px;
27
+ margin-top: 30px;
28
+ margin-bottom: 10px;
18
29
  }
19
-
20
- h1.title {
21
- margin-top: 0;
30
+ .subtitle {
31
+ margin-top: 0px;
32
+ margin-bottom: 110px;
33
+ font-size: 20px;
22
34
  }
23
-
24
- h1.error_title {
25
- color: red;
26
- border-bottom: 1px solid red;
35
+ #operator_info {
36
+ display: none;
27
37
  }
28
-
29
- a {
30
- text-decoration: none;
38
+ #show_operator_info {
39
+ font-size: 17px;
40
+ font-weight: normal;
31
41
  }
32
-
33
- a:hover {
34
- text-decoration: underline;
35
- }
36
-
37
- dt {
38
- font-weight: bold;
39
- color: #280050;
40
- }
41
-
42
- dd {
43
- margin-top: 0.5em;
44
- margin-bottom: 1em;
45
- }
46
-
47
- .commands {
48
- border: 1px solid #b594e7;
49
- background: #ddc6ff;
50
- padding: 0.5em;
51
- margin: 0.5em;
52
- font-family: 'Bitstream Vera Sans Mono', 'Courier New', Monospace;
42
+ .left {
43
+ text-align: left;
44
+ padding: 8px;
53
45
  }
54
-
55
- pre {
56
- overflow: auto;
57
- white-space: pre-wrap;
58
- text-align: left;
46
+ h3 {
47
+ margin-top: 30px;
48
+ margin-bottom: 10px;
49
+ font-size: 23px;
59
50
  }
60
-
61
- table.backtrace th {
62
- background: #8470a6;
63
- color: white;
51
+ ul {
52
+ padding-left: 16px;
64
53
  }
65
-
66
- table.backtrace th,
67
- table.backtrace td {
68
- padding: 0.2em;
69
- padding-left: 0.4em;
70
- padding-right: 0.4em;
54
+ a, li {
55
+ font-weight: bold;
56
+ color: #1781BF;
57
+ text-decoration: none;
71
58
  }
72
-
73
- table.backtrace tr td {
74
- background: #ecdfff;
59
+ .error {
60
+ font-weight: bold;
61
+ background: #E6F3FC;
62
+ border-radius: 5px;
63
+ padding: 7px 12px;
75
64
  }
76
-
77
- table.backtrace tr.even td {
78
- background: #f7f2ff;
65
+ .bold {
66
+ font-weight: bold !important;
79
67
  }
80
-
81
- table.backtrace td.index {
82
- font-weight: bold;
68
+ pre {
69
+ margin: 0px;
70
+ overflow-x: auto;
71
+ white-space: pre-wrap;
72
+ word-break: break-all;
83
73
  }
84
-
85
- #site_footer {
86
- border-top: solid 1px black;
87
- margin-top: 1em;
88
- padding-top: 1em;
89
- font-size: small;
90
- color: #777777;
74
+ dt {
75
+ margin-top: 16px;
76
+ font-weight: bold;
91
77
  }
92
-
93
- #site_footer a {
94
- color: #65498e;
78
+ dd {
79
+ margin-left: 0px;
95
80
  }
96
-
97
- #site_footer a:hover {
98
- color: #9681d9;
81
+ .plain {
82
+ color: inherit;
83
+ font-weight: inherit;
99
84
  }
100
85
 
101
- #site_header .corporate_identity {
102
- display: none;
86
+ #content {
87
+ overflow-y: scroll;
88
+ height: 800px;
103
89
  }
@@ -1,95 +1,86 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
1
+ <!DOCTYPE html>
2
2
  <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <meta name="generator" content="Phusion Passenger">
6
- <title>{{TITLE}}</title>
7
- <style type="text/css">
8
- {{CSS|raw}}
9
- </style>
10
- <link rel="stylesheet" type="text/css" href="http://www.modrails.com/error_pages/1.0/error_page.css">
11
- <style type="text/css">
12
- dd {
13
- text-align: left;
14
- }
15
-
16
- dd pre {
17
- margin-top: 0;
18
- margin-bottom: 0;
19
- }
20
- </style>
21
- </head>
22
-
23
- <body>
24
-
25
- <div id="site_container">
26
- <div id="site_header">
27
- <ul class="corporate_identity">
28
- <li class="logo"><a href="https://www.phusionpassenger.com"><span>Phusion Passenger</span></a></li>
29
- </ul>
30
- </div>
31
- <div id="site_body">
32
- <h1 class="error_title">{{TITLE}}</h1>
33
- <div id="content">
34
- {{CONTENT|raw}}
35
-
36
- <dl>
37
- <dt>Error ID</dt>
38
- <dd>{{ERROR_ID}}</dd>
39
- <dt>Application root</dt>
40
- <dd>{{APP_ROOT}}</dd>
41
- <dt>Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV, NODE_ENV and PASSENGER_APP_ENV)</dt>
42
- <dd>{{ENVIRONMENT}}</dd>
43
- {{if IS_RUBY_APP}}
44
- <dt>Ruby interpreter command</dt>
45
- <dd><pre>{{RUBY}}</pre></dd>
46
- {{/if}}
47
- <dt>User and groups</dt>
48
- <dd><pre>{{USER_INFO|default=Unknown}}</pre></dd>
49
- <dt>Environment variables</dt>
50
- <dd><pre>{{ENVVARS|default=Unknown}}</pre></dd>
51
- <dt>Ulimits</dt>
52
- <dd><pre>{{ULIMIT|default=Unknown}}</pre></dd>
53
- {{if SYSTEM_METRICS}}
54
- <dt>System metrics</dt>
55
- <dd><pre>{{SYSTEM_METRICS|default=Unknown}}</pre></dd>
56
- {{/if}}
57
- {{if RUBY_INFO}}
58
- <dt>General Ruby interpreter information</dt>
59
- <dd><pre>{{RUBY_INFO}}</pre></dd>
60
- {{/if}}
61
- {{if RBCONFIG}}
62
- <dt>Ruby configuration (RbConfig::CONFIG)</dt>
63
- <dd><pre>{{RBCONFIG}}</pre></dd>
64
- {{/if}}
65
- {{if ACTIVATED_GEMS}}
66
- <dt>Activated Ruby gems</dt>
67
- <dd><pre>{{ACTIVATED_GEMS}}</pre></dd>
68
- {{/if}}
69
- {{if LOAD_PATH}}
70
- <dt>Ruby load path ($LOAD_PATH)</dt>
71
- <dd><pre>{{LOAD_PATH}}</pre></dd>
72
- {{/if}}
73
- {{if LOADED_LIBS}}
74
- <dt>Ruby loaded libraries ($LOADED_FEATURES)</dt>
75
- <dd><pre>{{LOADED_LIBS}}</pre></dd>
76
- {{/if}}
77
- </dl>
78
- </div>
79
- </div>
80
- <div id="site_footer">
81
- <!--
82
- You are free to modify the footer as you see fit,
83
- but we kindly ask of you to preserve to following
84
- text. Thank you.
85
- -->
86
- <div class="container">
87
- Powered by <a href="https://www.phusionpassenger.com/">Phusion Passenger</a>,
88
- <tt>mod_rails</tt> / <tt>mod_rack</tt> for Apache and Nginx.
89
- </div>
90
- </div>
91
- </div>
92
-
93
- </body>
3
+ <head>
4
+ <title>We're sorry, but something went wrong: {{TITLE}}</title>
5
+ <style type="text/css">
6
+ {{CSS|raw}}
7
+ </style>
8
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
9
+ <meta name="generator" content="Phusion Passenger">
10
+ </head>
11
+ <body>
12
+ <header>
13
+ <div class="column">
14
+ <svg width="50" height="50" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="m731.234002 153.838666v-18.841339c0-4.417534-3.577416-7.997327-7.990382-7.997327h-6.414571c-4.417012 0-7.990383 3.580525-7.990383 7.997327v18.841339h-18.841339c-4.417534 0-7.997327 3.577416-7.997327 7.990383v6.414571c0 4.417011 3.580525 7.990382 7.997327 7.990382h18.841339v18.841339c0 4.417534 3.577416 7.997328 7.990383 7.997328h6.414571c4.417011 0 7.990382-3.580526 7.990382-7.997328v-18.841339h18.841339c4.417534 0 7.997328-3.577416 7.997328-7.990382v-6.414571c0-4.417012-3.580526-7.990383-7.997328-7.990383z" fill="#f87575" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -593.80455139 424.48059756)"/></svg>
15
+ <h1>We're sorry, but something went wrong.</h1>
16
+ <p class="subtitle">The issue has been logged for investigation. Please try again later.</p>
17
+ </div>
18
+ </header>
19
+ <div class="column">
20
+ <a id="show_operator_info" href="#">Technical details for the administrator of this website</a>
21
+ <div id="operator_info" style="display:block">
22
+ <div class="left">
23
+ <h3>Error:</h3>
24
+ <span class="error">{{TITLE}}</span>
25
+ <h3>Error ID:</h3>
26
+ <span class="error">{{ERROR_ID}}</span>
27
+ <h3>Details:</h3>
28
+ {{CONTENT|raw}}
29
+ <h3>System information:</h3>
30
+ <div id="content">
31
+ <dl>
32
+ <dt>Application root</dt>
33
+ <dd>{{APP_ROOT}}</dd>
34
+ <dt>Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV, NODE_ENV and PASSENGER_APP_ENV)</dt>
35
+ <dd>{{ENVIRONMENT}}</dd>
36
+ {{if IS_RUBY_APP}}
37
+ <dt>Ruby interpreter command</dt>
38
+ <dd><pre>{{RUBY}}</pre></dd>
39
+ {{/if}}
40
+ <dt>User and groups</dt>
41
+ <dd><pre>{{USER_INFO|default=Unknown}}</pre></dd>
42
+ <dt>Environment variables</dt>
43
+ <dd><pre>{{ENVVARS|default=Unknown}}</pre></dd>
44
+ <dt>Ulimits</dt>
45
+ <dd><pre>{{ULIMIT|default=Unknown}}</pre></dd>
46
+ {{if SYSTEM_METRICS}}
47
+ <dt>System metrics</dt>
48
+ <dd><pre>{{SYSTEM_METRICS|default=Unknown}}</pre></dd>
49
+ {{/if}}
50
+ {{if RUBY_INFO}}
51
+ <dt>General Ruby interpreter information</dt>
52
+ <dd><pre>{{RUBY_INFO}}</pre></dd>
53
+ {{/if}}
54
+ {{if RBCONFIG}}
55
+ <dt>Ruby configuration (RbConfig::CONFIG)</dt>
56
+ <dd><pre>{{RBCONFIG}}</pre></dd>
57
+ {{/if}}
58
+ {{if ACTIVATED_GEMS}}
59
+ <dt>Activated Ruby gems</dt>
60
+ <dd><pre>{{ACTIVATED_GEMS}}</pre></dd>
61
+ {{/if}}
62
+ {{if LOAD_PATH}}
63
+ <dt>Ruby load path ($LOAD_PATH)</dt>
64
+ <dd><pre>{{LOAD_PATH}}</pre></dd>
65
+ {{/if}}
66
+ {{if LOADED_LIBS}}
67
+ <dt>Ruby loaded libraries ($LOADED_FEATURES)</dt>
68
+ <dd><pre>{{LOADED_LIBS}}</pre></dd>
69
+ {{/if}}
70
+ </dl>
71
+ </div>
72
+ </div>
73
+ </div>
74
+ </div>
75
+ <footer>
76
+ <!--
77
+ You are free to modify the footer as you see fit,
78
+ but we kindly ask of you to preserve the following
79
+ text. Thank you.
80
+ -->
81
+ <div class="column">
82
+ This website is powered by <b>Passenger</b>&reg;, a rock-solid, feature-rich web application server that integrates with Apache and Nginx.
83
+ </div>
84
+ </footer>
85
+ </body>
94
86
  </html>
95
-
@@ -8,19 +8,21 @@ passenger_ctl integration_mode standalone;
8
8
  passenger_ctl standalone_engine nginx;
9
9
  passenger_user_switching off;
10
10
 
11
- <% if @options[:ruby] %>
12
- passenger_ruby <%= @options[:ruby] %>;
13
- <% else %>
14
- passenger_ruby <%= PlatformInfo.ruby_command %>;
15
- <% end %>
16
- <% if @options[:user] %>
17
- passenger_user <%= @options[:user] %>;
18
- passenger_default_user <%= @options[:user] %>;
19
- passenger_analytics_log_user <%= @options[:user] %>;
20
- <% else %>
21
- passenger_user <%= current_user %>;
22
- passenger_default_user <%= current_user %>;
23
- passenger_analytics_log_user <%= current_user %>;
11
+ <% if Process.euid == 0 %>
12
+ <% if @options[:ruby] %>
13
+ passenger_ruby <%= @options[:ruby] %>;
14
+ <% else %>
15
+ passenger_ruby <%= PlatformInfo.ruby_command %>;
16
+ <% end %>
17
+ <% if @options[:user] %>
18
+ passenger_user <%= @options[:user] %>;
19
+ passenger_default_user <%= @options[:user] %>;
20
+ passenger_analytics_log_user <%= @options[:user] %>;
21
+ <% else %>
22
+ passenger_user <%= current_user %>;
23
+ passenger_default_user <%= current_user %>;
24
+ passenger_analytics_log_user <%= current_user %>;
25
+ <% end %>
24
26
  <% end %>
25
27
 
26
28
  <%= nginx_http_option(:socket_backlog) %>
@@ -32,6 +34,8 @@ passenger_user_switching off;
32
34
  <%= nginx_http_option(:max_preloader_idle_time) %>
33
35
  <%= nginx_http_option(:turbocaching) %>
34
36
  <%= nginx_http_option(:instance_registry_dir) %>
37
+ <%= nginx_http_option(:disable_security_update_check) %>
38
+ <%= nginx_http_option(:security_update_check_proxy) %>
35
39
  <%= nginx_http_option(:data_buffer_dir) %>
36
40
  <%= nginx_http_option(:core_file_descriptor_ulimit) %>
37
41
  <%= nginx_http_option(:union_station_gateway_address) %>