Skip to content

apisnetworks/passenger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phusion Passenger: a fast and robust web server and application server for Ruby, Python and Node.js

Phusion Passenger

cgroup + chroot support

This fork of Phusion Passenger includes support for cgroup assignment and chroot in Apache (nginx maybe later).

cgroups

======= Learn more: Website | Documentation & Support | Github | Twitter | Blog

Set a Cgroup directive in a VirtualHost container:

Cgroup site12

All Passenger apps spawned from the web server will inherit this control group. It can also be used to enforce memory/cpu limits.

Jailing

======= Please follow the installation instructions on the website.

Edit src/ruby_supportlib/phusion_passenger/constants.rb. Change SITE_CHROOT_ENV to another environment var. By default SITE_ROOT is used. Constants.h will be automatically regenerated on next build. Chroot could also be adapted to a directive, but fits our usage. To populate a SITE_ROOT, add SetEnvIf in the VirtualHost container, e.g.

SetEnvIf Request_Method ^.*$ SITE_ROOT=/home/mydomain.com

Note: you could use SetEnv, but SetEnv may be overwritten in a .htaccess file with another path.

Further reading

Legal

"Passenger", "Phusion Passenger" and "Union Station" are registered trademarks of Phusion Holding B.V.

About

Phusion Passenger with per-account jail + cgroup support

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 83.9%
  • Ruby 5.6%
  • C 5.3%
  • Shell 2.5%
  • Makefile 1.8%
  • JavaScript 0.6%
  • Other 0.3%