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:
parent
5fd01f1892
commit
1c5488b57f
3 changed files with 20 additions and 2 deletions
|
@ -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 }}"
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue