1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

move and set permissions

This commit is contained in:
George Hunt 2020-01-09 10:08:05 -08:00
parent 5fd01f1892
commit 1c5488b57f
3 changed files with 20 additions and 2 deletions

View file

@ -36,3 +36,15 @@
src: "{{ doc_root }}/common/fonts"
path: "{{ doc_root }}/common/webfonts"
state: link
- name: Create log files which apache and nginx can write
file:
path: "{{ item }}"
owner: www-data
group: www-data
mode: 0660
state: directory
with_items:
- /var/log/apache2
- "{{ nginx_log_dir }}"

View file

@ -42,8 +42,13 @@ 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';

View file

@ -244,6 +244,7 @@ nginx_interface: "0.0.0.0"
nginx_install: True
nginx_enabled: True
nginx_config_dir: /etc/nginx/conf.d
nginx_log_dir: /var/log/nginx
# See also Apache vars {default_language, language_priority} @ top of this file
#