-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebservers.yml
62 lines (60 loc) · 1.67 KB
/
webservers.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
- name: apply configuration to webservers
hosts: webservers
user: root
vars:
fpm_pools:
- pool:
name: foo
vars:
- user = www-data
- group = www-data
- listen = /var/run/php5-fpm.sock
- pm = dynamic
- pm.max_children = 10
- pm.start_servers = 2
- pm.min_spare_servers = 2
- pm.max_spare_servers = 6
- chdir = /
- listen.owner = www-data
- listen.group = www-data
- listen.mode = 0600
php_config:
- option: "error_reporting"
section: "PHP"
value: "E_ALL"
- option: "display_errors"
section: "PHP"
value: "On"
- option: "display_startup_errors"
section: "PHP"
value: "On"
apt_packages:
- php5-fpm
- php5-curl
- php5-gd
- php5-mysql
- php5-mcrypt
- php5-memcache
nginx_user: "www-data"
nginx_sites:
drupal7:
- listen 80
- server_name vm-www.*
- root "/var/www/drupal7"
- index index.php index.html
- location / { try_files $uri @rewrite; }
- location @rewrite { rewrite ^ /index.php; }
- location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_intercept_errors on;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_read_timeout 380;
include fastcgi_params;
}
- location ~ ^/sites/.*/files/styles/ { try_files $uri @rewrite; }
- location ~ /\.ht { deny all; }
roles:
- nbz4live.php-fpm
- jdauphant.nginx