virtualhost.conf
32 lines
| 1.7 KiB
| text/plain
|
TextLexer
r1 | LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so | ||
LoadModule authn_anon_module /usr/lib/apache2/modules/mod_authn_anon.so | |||
LoadModule dav_svn_module /usr/lib/apache2/modules/mod_dav_svn.so | |||
r23 | ErrorLogFormat "{ \"time\":\"%{%Y-%m-%d}tT%{%T}t.%{msec_frac}tZ\", \"function\" : \"[%-m:%l]\" , \"process\" : \"[pid %P:tid %T]\" , \"message\" : \"%M\" ,\ \"referer\"\ : \"%{Referer}i\" }" | ||
LogFormat "{ \"time\":\"%{%Y-%m-%d}tT%{%T}t.%{msec_frac}tZ\", \"process\":\"%D\", \"filename\":\"%f\", \"remoteIP\":\"%a\", \"host\":\"%V\", \"request\":\"%U\", \"query\":\"%q\", \"method\":\"%m\", \"status\":\"%>s\", \"userAgent\":\"%{User-agent}i\", \"referer\":\"%{Referer}i\" }" combined | |||
ErrorLog /dev/stderr | |||
CustomLog /dev/stdout combined | |||
r1 | <VirtualHost *:${MOD_DAV_SVN_PORT}> | ||
ServerAdmin admin@localhost | |||
DocumentRoot /var/opt/www | |||
r23 | |||
ErrorLogFormat "{ \"time\":\"%{%Y-%m-%d}tT%{%T}t.%{msec_frac}tZ\", \"function\" : \"[%-m:%l]\" , \"process\" : \"[pid %P:tid %T]\" , \"message\" : \"%M\" ,\ \"referer\"\ : \"%{Referer}i\" }" | |||
LogFormat "{ \"time\":\"%{%Y-%m-%d}tT%{%T}t.%{msec_frac}tZ\", \"process\":\"%D\", \"filename\":\"%f\", \"remoteIP\":\"%a\", \"host\":\"%V\", \"request\":\"%U\", \"query\":\"%q\", \"method\":\"%m\", \"status\":\"%>s\", \"userAgent\":\"%{User-agent}i\", \"referer\":\"%{Referer}i\" }" combined | |||
ErrorLog /dev/stderr | |||
CustomLog /dev/stdout combined | |||
r1 | LogLevel info | ||
<Location /_server_status> | |||
Require ip 127 | |||
SetHandler server-status | |||
Require all granted | |||
</Location> | |||
# allows custom host names, prevents 400 errors on checkout | |||
HttpProtocolOptions Unsafe | |||
Include ${MOD_DAV_SVN_CONF_FILE} | |||
</VirtualHost> |