-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathfence.conf
19 lines (19 loc) · 1.21 KB
/
fence.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<VirtualHost *:80>
WSGIDaemonProcess /fence processes=2 threads=4 python-path=/var/www/fence/:/fence/:/usr/bin/python
WSGIScriptAlias / /var/www/fence/wsgi.py
WSGIPassAuthorization On
<Directory "/var/www/fence/">
WSGIProcessGroup /fence
WSGIApplicationGroup %{GLOBAL}
Options +ExecCGI
Order deny,allow
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel info
LogFormat "%{X-Forwarded-For}i %l %{X-UserId}i %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" aws
LogFormat "{\"gen3log\": \"apache2\", \"date_access\": \"%t\", \"user_id\": \"%{X-UserId}i\", \"request_id\": \"%{X-ReqId}i\", \"session_id\": \"%{X-SessionId}i\", \"visitor_id\": \"%{X-VisitorId}i\", \"network_client_ip\": \"%{X-Forwarded-For}i\", \"network_bytes_write\": \"%b\", \"http_response_time\": \"%T\", \"http_status_code\": \"%>s\", \"http_request\": \"%U\", \"http_verb\": \"%m\", \"http_referer\": \"%{Referer}i\", \"http_useragent\": \"%{User-agent}i\", \"message\": \"%r\"}" json
SetEnvIf X-Forwarded-For "^..*" forwarded
#CustomLog ${APACHE_LOG_DIR}/access.log combined env=!forwarded
CustomLog ${APACHE_LOG_DIR}/access.log json
</VirtualHost>