ServerRoot "<%= @server_root %>"
Listen 127.0.0.1:<%= @port %>
<% if @www_user %>
User <%= @www_user %>
<% end %>
<% if @www_group %>
Group <%= @www_group %>
<% end %>
<% if !has_builtin_module?('mod_log_config.c') %>
LoadModule log_config_module "<%= modules_dir %>/mod_log_config.so"
<% end %>
<% if !has_builtin_module?('mod_mime.c') %>
LoadModule mime_module "<%= modules_dir %>/mod_mime.so"
<% end %>
<% if !has_builtin_module?('mod_autoindex.c') %>
LoadModule autoindex_module "<%= modules_dir %>/mod_autoindex.so"
<% end %>
<% if !has_builtin_module?('mod_dir.c') %>
LoadModule dir_module "<%= modules_dir %>/mod_dir.so"
<% end %>
<% if !has_builtin_module?('mod_alias.c') %>
LoadModule alias_module "<%= modules_dir %>/mod_alias.so"
<% end %>
<% if !has_builtin_module?('mod_rewrite.c') %>
LoadModule rewrite_module "<%= modules_dir %>/mod_rewrite.so"
<% end %>
<% if !has_builtin_module?('mod_env.c') %>
LoadModule env_module "<%= modules_dir %>/mod_env.so"
<% end %>
<% if PlatformInfo.httpd_version >= '2.4.0' %>
LoadModule authz_core_module "<%= modules_dir %>/mod_authz_core.so"
LoadModule unixd_module "<%= modules_dir %>/mod_unixd.so"
<% end %>
LoadModule passenger_module "<%= @mod_passenger %>"
PassengerRoot "<%= @passenger_root %>"
PassengerRuby "<%= PlatformInfo.ruby_command %>"
PassengerDefaultUser <%= CONFIG['default_user'] %>
PassengerDefaultGroup <%= CONFIG['default_group'] %>
PassengerTempDir "<%= @passenger_temp_dir %>"
RailsEnv production
RackEnv production
PassengerLogLevel 1
<% for line in @extra %>
<%= line %>
<% end %>
TypesConfig "<%= @server_root %>/mime.types"
StartServers 1
ServerLimit 10
MaxRequestsPerChild 50
MaxClients 10
MinSpareServers 1
MaxSpareServers 1
MinSpareThreads 1
MaxSpareThreads 1
ThreadsPerChild 2
MinSpareThreads 1
MaxSpareThreads 1
ThreadsPerChild 2
AllowOverride all
ServerAdmin admin@passenger.test
ServerName passenger.test
DocumentRoot "<%= @server_root %>"
<% if PlatformInfo.httpd_version < '2.4.0' %>
LockFile <%= @server_root %>/httpd.lock
<% end %>
PidFile <%= @server_root %>/httpd.pid
ErrorLog <%= @passenger_root %>/test/test.log
CustomLog <%= @server_root %>/access.log combined
<% if !vhosts.empty? && PlatformInfo.httpd_version < '2.4.0' %>
NameVirtualHost *:<%= @port %>
<% end %>
<% for vhost in vhosts %>
>
ServerName <%= vhost.domain %>
DocumentRoot "<%= vhost.document_root %>"
AllowEncodedSlashes On
<% for line in vhost.additional_configs %>
<%= line %>
<% end %>
<% end %>