diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-01-29 08:38:42 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-01-29 08:38:42 -0500 |
commit | 5365895d8b1cd4cfdedcff05e4e27e0d9f78d232 (patch) | |
tree | 10fa45b5562bff5a1f4870aec18cbcb0ee64777d /doc | |
parent | d81417836acb3b066ff9df97fcc06f85eb17304f (diff) |
Add nginx configuration example
Diffstat (limited to 'doc')
-rw-r--r-- | doc/nice-urls.markdown | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/doc/nice-urls.markdown b/doc/nice-urls.markdown index bfea719d..a054e85d 100644 --- a/doc/nice-urls.markdown +++ b/doc/nice-urls.markdown @@ -85,6 +85,51 @@ In your Kanboard `config.php`: define('ENABLE_URL_REWRITE', true); ``` +Another example with Kanboard in a subfolder: + +``` +server { + listen 443 ssl default_server; + listen [::]:443 ssl default_server; + + root /var/www/html; + index index.php index.html index.htm; + server_name _; + + location / { + try_files $uri $uri/ =404; + } + + location ^~ /kanboard { + + location /kanboard { + try_files $uri $uri/ /kanboard/index.php$is_args$args; + } + + location ~ ^/kanboard/(?:kanboard|config.php|config.default.php) { + deny all; + } + + location ~* /kanboard/data { + deny all; + } + + location ~ \.php(?:$|/) { + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_param HTTPS on; # Use only if HTTPS is configured + include fastcgi_params; + fastcgi_pass unix:/var/run/php5-fpm.sock; + } + + location ~ /kanboard/\.ht { + deny all; + } + } +} +``` + Adapt the example above according to your own configuration. IIS configuration example |