Skip to content

Commit

Permalink
fix(vhosts): replace %O with %b in default LogFormat
Browse files Browse the repository at this point in the history
%O needs mod_logio, which isn't enabled by default everywhere, so it
also shouldn't be used as default fallback LogFormat.
  • Loading branch information
SuperTux88 committed Oct 14, 2020
1 parent 47ec5fc commit 2b52e11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apache/config/vhosts/proxy.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

'LogLevel': site.get('LogLevel', 'warn'),
'ErrorLog': site.get('ErrorLog', '{0}/{1}-error.log'.format(map.logdir, sitename)),
'LogFormat': site.get('LogFormat', '"%a %l %u %t \\"%r\\" %>s %O \\"%{Referer}i\\" \\"%{User-Agent}i\\""'),
'LogFormat': site.get('LogFormat', '"%a %l %u %t \\"%r\\" %>s %b \\"%{Referer}i\\" \\"%{User-Agent}i\\""'),
'CustomLog': site.get('CustomLog', '{0}/{1}-access.log'.format(map.logdir, sitename)),

'ProxyRequests': site.get('ProxyRequests', 'Off'),
Expand Down
2 changes: 1 addition & 1 deletion apache/config/vhosts/redirect.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

'LogLevel': site.get('LogLevel', 'warn'),
'ErrorLog': site.get('ErrorLog', '{0}/{1}-error.log'.format(map.logdir, sitename)),
'LogFormat': site.get('LogFormat', '"%h %l %u %t \\\"%r\\\" %>s %O"'),
'LogFormat': site.get('LogFormat', '"%h %l %u %t \\\"%r\\\" %>s %b"'),
'CustomLog': site.get('CustomLog', '{0}/{1}-access.log'.format(map.logdir, sitename)),

'RedirectSource': site.get('RedirectSource', '/'),
Expand Down

0 comments on commit 2b52e11

Please sign in to comment.