I have confirmed that this patch seems to *completely* break passenger (v2) in precise, no variables are passed through at all.
This works as expected on xenial (Passenger 5) with the latest release including the same fix, so I am fairly sure something went wrong in backporting the patch which appears to have been done as part of squeeze-lts. Squeeze LTS concluded in February 2016 so a patch from Debian seems unlikely.
Test case for the issue:
root@precise:~# apt-get install apache2 libapache2-mod-passenger
(New Version)
apt-get upgrade
# upgrade only 'reloads' apache and does not restart it which doesn't load the new module, so restart it
/etc/init.d/apache2 restart
I have confirmed that this patch seems to *completely* break passenger (v2) in precise, no variables are passed through at all.
This works as expected on xenial (Passenger 5) with the latest release including the same fix, so I am fairly sure something went wrong in backporting the patch which appears to have been done as part of squeeze-lts. Squeeze LTS concluded in February 2016 so a patch from Debian seems unlikely.
Test case for the issue: mod-passenger
root@precise:~# apt-get install apache2 libapache2-
root@preicse:~# a2enmod passenger
root@precise:~# cat /etc/apache2/ sites-enabled/ 000-default LOG_DIR} /error. log LOG_DIR} /access. log combined
PassengerEnabl ed on
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/public
ErrorLog ${APACHE_
CustomLog ${APACHE_
</VirtualHost>
root@precise:~# cat /var/www/config.ru Rack::Request. new(env) , "")] ]
# my_rack_app.rb
require 'rack'
require 'pp'
app = proc do |env|
[ 200, {'Content-Type' => 'text/plain'}, [PP.pp(
end
run app
(Old Version) mod-passenger= 2.2.11debian- 2 :Request: 0x7f1ab158c2a8 run_once" =>false, ACCEPT_ ENCODING" =>"gzip, deflate, sdch", INFO"=> "/", CACHE_CONTROL" =>"max- age=0", NAME"=> "", ROOT"=> "/var/www/ public" , version" =>[1, 0], SOFTWARE" =>"Apache/ 2.2.22 (Ubuntu)", multiprocess" =>true, ACCEPT_ LANGUAGE" =>"en-US, en;q=0. 8", PROTOCOL" =>"HTTP/ 1.1", html,applicatio n/xhtml+ xml,application /xml;q= 0.9,image/ webp,*/ *;q=0.8" , UPGRADE_ INSECURE_ REQUESTS" =>"1", STRING" =>"asff" , ADMIN"= >"webmaster@ localhost" , url_scheme" =>"http" , ssenger: :Utils: :RewindableInpu t:0x7f1ab158cc8 0 #<UNIXSocket: 0x7f1ab1594548> , e_io=nil, false>, URI"=>" /?asff" , multithread" =>false, METHOD" =>"GET" , ADDR"=> "10.48. 134.22" , PORT"=> "36638" , ADDR"=> "10.48. 134.78" , NAME"=> "10.48. 134.78" , errors" =>#<IO: 0x7f1ab15f7aa8> , USER_AGENT" => 51.0.2704. 106 Safari/537.36", CONNECTION" =>"keep- alive", HOST"=> "10.48. 134.78" , PORT"=> "80"}>
apt-get install libapache2-
Result:
#<Rack:
@env=
{"rack.
"_"=>"_",
"HTTP_
"PATH_
"HTTP_
"SCRIPT_
"DOCUMENT_
"rack.
"SERVER_
"rack.
"HTTP_
"SERVER_
"HTTP_ACCEPT"=>
"text/
"HTTP_
"QUERY_
"SERVER_
"rack.
"rack.input"=>
#<PhusionPa
@io=
@rewindabl
@unlinked=
"REQUEST_
"rack.
"REQUEST_
"REMOTE_
"REMOTE_
"SERVER_
"SERVER_
"rack.
"HTTP_
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/
"HTTP_
"HTTP_
"SERVER_
(New Version)
apt-get upgrade
# upgrade only 'reloads' apache and does not restart it which doesn't load the new module, so restart it
/etc/init.d/apache2 restart
Result: :Request: 0x7fea869062d0 url_scheme" =>"http" , version" =>[1, 0], multithread" =>false, run_once" =>false, ssenger: :Utils: :RewindableInpu t:0x7fea8690643 8 #<UNIXSocket: 0x7fea86906848> , e_io=nil, false>, multiprocess" =>true, errors" =>#<IO: 0x7fea8838bab0> }>
#<Rack:
@env=
{"_"=>"_",
"rack.
"rack.
"rack.
"rack.
"rack.input"=>
#<PhusionPa
@io=
@rewindabl
@unlinked=
"rack.
"rack.