diff options
author | Walter Dworak | 2016-03-10 11:09:17 -0600 |
---|---|---|
committer | Walter Dworak | 2016-03-10 11:09:17 -0600 |
commit | ef8fb80cb600851983b242676bc1dc8ad7f40438 (patch) | |
tree | f31a35706ac495150ec1e13f3498605128d01327 | |
parent | 3a2181d86cad5adbab7cdb065286f29abf408fdd (diff) | |
download | aur-ef8fb80cb600851983b242676bc1dc8ad7f40438.tar.gz |
Updated nginx subdir config
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | kanboard-nginx-subdir.conf | 12 |
3 files changed, 9 insertions, 9 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Thu Mar 10 15:55:19 UTC 2016 +# Thu Mar 10 17:09:16 UTC 2016 pkgbase = kanboard pkgdesc = Simple visual task board pkgver = 1.0.25 - pkgrel = 6 + pkgrel = 7 url = http://kanboard.net/ install = kanboard.install arch = any @@ -3,7 +3,7 @@ pkgname=kanboard pkgver=1.0.25 -pkgrel=6 +pkgrel=7 pkgdesc='Simple visual task board' arch=('any') url='http://kanboard.net/' diff --git a/kanboard-nginx-subdir.conf b/kanboard-nginx-subdir.conf index a9dcd7c3888b..1e1ed07a5659 100644 --- a/kanboard-nginx-subdir.conf +++ b/kanboard-nginx-subdir.conf @@ -1,13 +1,13 @@ # Example configuration for running kanboard in a subdirectory, called kanbooard, on an existing site - location /kanboard { - alias /usr/share/webapps/kanboard; + root /usr/share/webapps; access_log /var/log/nginx/kanboard_access.log; error_log /var/log/nginx/kanboard_error.log; - index index.php index.html; + index /kanboard/index.php /kanboard/index.html; - #try_files $uri $uri/ /index.php$is_args$args; + #try_files $uri $uri/ /index.php$is_args$args + try_files $uri $uri/ /kanboard/index.php; # Deny access to the directory data location ~ ^/kanboard/data/ { @@ -27,12 +27,12 @@ location /kanboard { return 404; } - location ~ /kanboard/(.+\.php)$ { + location ~ /(.+\.php)$ { include fastcgi_params; try_files $uri =404; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_split_path_info ^(.+\.php)(/.+)$; - fastcgi_param SCRIPT_FILENAME /usr/share/webapps/$fastcgi_script_name; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_index index.php; } } |