35 lines
No EOL
976 B
Text
35 lines
No EOL
976 B
Text
ServerName localhost
|
|
Timeout 300
|
|
KeepAlive On
|
|
MaxKeepAliveRequests 100
|
|
KeepAliveTimeout 5
|
|
AccessFileName .htaccess
|
|
DefaultType None
|
|
HostnameLookups Off
|
|
ErrorLog /proc/self/fd/2
|
|
CustomLog /proc/self/fd/1 combined
|
|
LogLevel warn
|
|
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
|
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b" common
|
|
LogFormat "%{Referer}i -> %U" referer
|
|
LogFormat "%{User-agent}i" agent
|
|
SetEnvIf Request_URI "^check_http" dontlog
|
|
SetEnvIf Remote_Addr "127.0.0.1" dontlog
|
|
SetEnvIf Remote_Addr "::1" dontlog
|
|
SetEnvIf Remote_Addr "127\.0\.0\.1" loopback
|
|
|
|
<FilesMatch "^\.ht">
|
|
Require all denied
|
|
</FilesMatch>
|
|
<FilesMatch "^composer\.(json|lock)">
|
|
Require all denied
|
|
</FilesMatch>
|
|
<FilesMatch "^package(-lock)?\.json">
|
|
Require all denied
|
|
</FilesMatch>
|
|
<FilesMatch "^\.">
|
|
Require all denied
|
|
</FilesMatch>
|
|
<DirectoryMatch "^\.|\/\.">
|
|
Require all denied
|
|
</Directorymatch> |