Merge pull request #2794 from nextcloud/enh/noid/adjust-apache-logformat

Adjust Apache LogFormat
This commit is contained in:
Simon L 2023-06-17 23:31:12 +02:00 committed by GitHub
commit d564202efb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,8 +3,11 @@ Listen 8000
ServerName localhost
# Add error log
CustomLog /proc/self/fd/1 combined
CustomLog /proc/self/fd/1 proxy
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy
ErrorLog /proc/self/fd/2
ErrorLogFormat "[%t] [%l] [%E] [client: %{X-Forwarded-For}i] [%M] [%{User-Agent}i]"
LogLevel warn
# PHP match
<FilesMatch "\.php$">