mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Merge pull request #343 from georgejhunt/log-location
sync from georgejhunt:log-location
This commit is contained in:
commit
58cea6f422
4 changed files with 24 additions and 9 deletions
|
@ -42,9 +42,16 @@ http {
|
|||
# Logging Settings
|
||||
##
|
||||
|
||||
access_log {{ apache_log_dir }}/access.log;
|
||||
error_log {{ apache_log_dir }}/error.log;
|
||||
log_format awstats
|
||||
'$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "http_x_forwarded_for"';
|
||||
|
||||
access_log {{ nginx_log_dir }}/access.log awstats;
|
||||
error_log {{ nginx_log_dir }}/error.log;
|
||||
|
||||
log_format scripts '$request > $document_root$fastcgi_script_name $fastcgi_path_info';
|
||||
access_log {{ nginx_log_dir }}/scripts.log scripts;
|
||||
|
||||
|
||||
##
|
||||
|
|
|
@ -3,10 +3,6 @@ server {
|
|||
server_name {{ iiab_hostname }};
|
||||
listen 80;
|
||||
|
||||
access_log {{ apache_log_dir }}/access.log;
|
||||
error_log {{ apache_log_dir }}/error.log;
|
||||
access_log {{ apache_log_dir }}/scripts.log scripts;
|
||||
|
||||
index index.php index.html index.htm;
|
||||
|
||||
# let individual services drop location blocks in conf.d
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue