From 2084b61b56ed3ff1e55985451d32f1516b8abe57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Mennetrier?= Date: Thu, 2 Feb 2023 15:57:02 +0100 Subject: [PATCH] Add possibility to enable pretty url --- conf/nginx.conf | 5 +++-- doc/DISCLAIMER.md | 1 + doc/DISCLAIMER_fr.md | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 62ade5a..2e601d4 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -2,14 +2,15 @@ location __PATH__/ { # Path to source - alias __FINALPATH__/; +#sub_path_only alias __FINALPATH__/; +#root_path_only root __FINALPATH__/; index index.php; # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file #client_max_body_size 50M; - try_files $uri $uri/ index.php?$args; + try_files $uri $uri/ /index.php?$args; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md index e69de29..0efd09d 100644 --- a/doc/DISCLAIMER.md +++ b/doc/DISCLAIMER.md @@ -0,0 +1 @@ +* **Humhub** requires a dedicated **root domain** (e.g. `humhub.domain.tld`) to enable [Pretty URLs](https://docs.humhub.org/docs/admin/installation/#pretty-urls) \ No newline at end of file diff --git a/doc/DISCLAIMER_fr.md b/doc/DISCLAIMER_fr.md index e69de29..670fa9b 100644 --- a/doc/DISCLAIMER_fr.md +++ b/doc/DISCLAIMER_fr.md @@ -0,0 +1 @@ +* **Humhub** nécessite un **domaine racine** (par ex. `humhub.domain.tld`) pour activer les [Pretty URLs](https://docs.humhub.org/docs/admin/installation/#pretty-urls) \ No newline at end of file