Fixes to nginx

pull/63/head
Ivan Grynenko 8 years ago
parent 2a234cba16
commit 554623b76c
  1. 2
      group_vars/all.yml
  2. 4
      roles/ansible-role-nginx/tasks/vhosts.yml

@ -121,7 +121,7 @@ php_upload_max_filesize: "1024M"
php_max_input_vars: "4000"
# Interaction with which web server
php_webserver_daemon: "nginx"
php_webserver_daemon: "httpd"
php_error_reporting: "E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE & ~E_WARNING"

@ -1,4 +1,8 @@
---
- name: Creates Nginx conf directories
file: path={{ nginx_vhost_path }} state=directory owner={{ root }} group={{ root }} mode=0755 recurse=yes
when: nginx_vhosts|length > 0
- name: Remove default nginx vhost config file (if configured).
file:
path: "{{ nginx_default_vhost_path }}"