Created
April 29, 2013 19:39
-
-
Save trlinkin/5484143 to your computer and use it in GitHub Desktop.
vhost logging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define log file names | |
if ! $access_log_file and ! $access_log_pipe { | |
if $ssl { | |
$access_log_destination = "${logroot}/${servername_real}_access_ssl.log" | |
} else { | |
$access_log_destination = "${logroot}/${servername_real}_access.log" | |
} | |
} elsif $access_log_file { | |
$access_log_destination = "${logroot}/${access_log_file}" | |
} elsif $access_log_pipe { | |
$access_log_destination = "\"${access_log_pipe}\"" | |
} | |
if ! $error_log_file and ! $error_log_pipe { | |
if $ssl { | |
$error_log_destination = "${logroot}/${servername_real}_error_ssl.log" | |
} else { | |
$error_log_destination = "${logroot}/${servername_real}_error.log" | |
} | |
} elsif $error_log_file { | |
$error_log_destination = "${logroot}/${error_log_file}" | |
} elsif $error_log_pipe { | |
$error_log_destination = "\"${error_log_pipe}\"" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment