Fix web vhost and software dependencies.

This commit is contained in:
Markus 2016-04-07 20:51:56 +02:00
parent eb5a2552a8
commit 090fad6a01
2 changed files with 25 additions and 4 deletions

View File

@ -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;
}
}

View File

@ -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