Commit 69a6a9ea authored by Jamie Nguyen's avatar Jamie Nguyen
Browse files

Remove -s from vhost templates to improve golang logger performance

parent ea656e73
......@@ -82,7 +82,7 @@
# made against, so that the cron-job in /etc/cron.daily may generate
# statistics for each domain.
#
ErrorLog "|| /usr/sbin/symbiosis-httpd-logger -s <%= domain.log_dir %>/error.log"
CustomLog "|| /usr/sbin/symbiosis-httpd-logger -s <%= domain.log_dir %>/access.log" combined
ErrorLog "|| /usr/sbin/symbiosis-httpd-logger <%= domain.log_dir %>/error.log"
CustomLog "|| /usr/sbin/symbiosis-httpd-logger <%= domain.log_dir %>/access.log" combined
</VirtualHost>
......@@ -120,8 +120,8 @@
# made against, so that the cron-job in /etc/cron.daily may generate
# statistics for each domain.
#
ErrorLog "|| /usr/sbin/symbiosis-httpd-logger -s <%= domain.log_dir %>/ssl_error.log"
CustomLog "|| /usr/sbin/symbiosis-httpd-logger -s <%= domain.log_dir %>/ssl_access.log" combined
ErrorLog "|| /usr/sbin/symbiosis-httpd-logger <%= domain.log_dir %>/ssl_error.log"
CustomLog "|| /usr/sbin/symbiosis-httpd-logger <%= domain.log_dir %>/ssl_access.log" combined
</VirtualHost>
<VirtualHost <%= ips.collect{|ip| ip+":80"}.join(" ") %>>
......@@ -222,8 +222,8 @@
# made against, so that the cron-job in /etc/cron.daily may generate
# statistics for each domain.
#
ErrorLog "|| /usr/sbin/symbiosis-httpd-logger -s <%= domain.log_dir %>/error.log"
CustomLog "|| /usr/sbin/symbiosis-httpd-logger -s <%= domain.log_dir %>/access.log" combined
ErrorLog "|| /usr/sbin/symbiosis-httpd-logger <%= domain.log_dir %>/error.log"
CustomLog "|| /usr/sbin/symbiosis-httpd-logger <%= domain.log_dir %>/access.log" combined
% end
</VirtualHost>
......
......@@ -122,7 +122,7 @@
# statistics for each domain.
#
LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" zz_mass_hosting_combined
CustomLog "|| /usr/sbin/symbiosis-httpd-logger -s -l ssl_access.log ${APACHE_LOG_DIR}/zz-mass-hosting.ssl_access.log" zz_mass_hosting_combined
CustomLog "|| /usr/sbin/symbiosis-httpd-logger -l ssl_access.log ${APACHE_LOG_DIR}/zz-mass-hosting.ssl_access.log" zz_mass_hosting_combined
ErrorLog ${APACHE_LOG_DIR}/zz-mass-hosting.error.log
</VirtualHost>
......@@ -97,7 +97,7 @@
# statistics for each domain.
#
LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" zz_mass_hosting_combined
CustomLog "|| /usr/sbin/symbiosis-httpd-logger -s -l access.log ${APACHE_LOG_DIR}/zz-mass-hosting.access.log" zz_mass_hosting_combined
CustomLog "|| /usr/sbin/symbiosis-httpd-logger -l access.log ${APACHE_LOG_DIR}/zz-mass-hosting.access.log" zz_mass_hosting_combined
ErrorLog ${APACHE_LOG_DIR}/zz-mass-hosting.error.log
</VirtualHost>
......
symbiosis-httpd (2018:0618) stable; urgency=medium
* Remove `-s` flag from the Apache vhost templates to improve
performance of the golang logger.
-- Jamie Nguyen <j@jamielinux.com> Mon, 18 Jun 2018 13:57:18 +0100
symbiosis-httpd (2017:0904) stable; urgency=medium
* Use ssl-hooks to reload apache when SSL certificates are
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment