diff options
author | Walter Dworak | 2016-03-09 16:21:31 -0600 |
---|---|---|
committer | Walter Dworak | 2016-03-09 16:21:31 -0600 |
commit | b104fd354d865eafbabb7967144bba3a3b4f009d (patch) | |
tree | 5d276d3761b9cfff2d10f79b978167eb8543298b /kanboard-nginx.conf | |
parent | cb4f35934820afc82e5140514c45f64ae00d9eca (diff) | |
download | aur-b104fd354d865eafbabb7967144bba3a3b4f009d.tar.gz |
Added nginx config examples
Diffstat (limited to 'kanboard-nginx.conf')
-rw-r--r-- | kanboard-nginx.conf | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/kanboard-nginx.conf b/kanboard-nginx.conf new file mode 100644 index 000000000000..c9e456362a9e --- /dev/null +++ b/kanboard-nginx.conf @@ -0,0 +1,35 @@ +# Example configuration for a dedicated kanboard site +server { + +listen 80; +server_name kanboard.domain.tld; +root /usr/share/webapps/kanboard; +index index.php index.html; + +location / { + try_files $uri $uri/ /index.php$is_args$args; + +# If Kanboard is under a subfolder +# try_files $uri $uri/ /kanboard/index.php; +} + +location ~ \.php$ { + try_files $uri =404; + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_pass unix:/var/run/php5-fpm.sock; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_index index.php; + include fastcgi_params; +} + +# Deny access to the directory data +location ~* /data { + deny all; + return 404; +} + +# Deny access to .htaccess +location ~ /\.ht { + deny all; + return 404; +} |