forked from infra/ansible
Fix web vhost and software dependencies.
This commit is contained in:
parent
eb5a2552a8
commit
090fad6a01
@ -6,7 +6,7 @@ server {
|
||||
|
||||
location /.well-known/acme-challenge/ {
|
||||
default_type "text/plain";
|
||||
root /var/www/acme-challenge/;
|
||||
alias /var/www/acme-challenge/;
|
||||
}
|
||||
|
||||
location / {
|
||||
@ -24,4 +24,21 @@ server {
|
||||
ssl_certificate /etc/nginx/ssl/www.binary-kitchen.de.crt;
|
||||
|
||||
root /var/www/kitchen;
|
||||
|
||||
client_max_body_size 32M;
|
||||
|
||||
index index.php;
|
||||
|
||||
location ~ /wiki/(data/|conf/|bin/|inc/|install.php) {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location ~ \.php(?:$|/) {
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||
fastcgi_intercept_errors on;
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,11 @@
|
||||
---
|
||||
|
||||
- name: Install php5-fpm
|
||||
apt: name=php5-fpm state=present
|
||||
- name: Install dependencies
|
||||
apt: name={{ item }} state=present
|
||||
with_items:
|
||||
- php5-fpm
|
||||
- php5-ldap
|
||||
- php5-sqlite
|
||||
|
||||
- name: Create vhost directory
|
||||
file: path=/var/www/kitchen state=directory owner=www-data group=www-data
|
||||
|
Loading…
Reference in New Issue
Block a user