Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Added sendfile option to vhost configuration #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions manifests/resource/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
$error_log = undef,
$passenger_cgi_param = undef,
$use_default_location = true,
$sendfile = 'off',
) {

validate_array($location_allow)
Expand Down
1 change: 1 addition & 0 deletions templates/vhost/vhost_header.erb
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ server {

access_log <%= @access_log_real %>;
error_log <%= @error_log_real %>;
sendfile <%= @sendfile %>;

1 change: 1 addition & 0 deletions templates/vhost/vhost_ssl_header.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ server {

access_log <%= @ssl_access_log %>;
error_log <%= @ssl_error_log %>;
sendfile <%= @sendfile %>;

<% if @root -%>
root <%= @root %>;
Expand Down