From 4aa2258e9d1b71245b8ac0fcf5f7e0363de21cd8 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Wed, 2 Dec 2015 08:47:25 -0500 Subject: [PATCH] Add Nginx config lines to install doc --- documentation/installation_guide.html | 6 ++++++ documentation/installation_guide_es_ES.html | 6 ++++++ documentation/installation_guide_fr_FR.html | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/documentation/installation_guide.html b/documentation/installation_guide.html index 1ee945240a..14119569f8 100755 --- a/documentation/installation_guide.html +++ b/documentation/installation_guide.html @@ -687,6 +687,12 @@ If you have issues with files taking a long time to download, make sure you reco break; } + location / { + rewrite ^/courses/([^/]+)/$ /main/course_home/course_home.php?cDir=$1 last; + rewrite ^/courses/([^/]+)/index.php$ main/course_home/course_home.php?cDir=$1 last; + try_files $uri @rewrite; + } + location ~ \.php$ { client_max_body_size 20M; try_files $uri /index.php$is_args$args; diff --git a/documentation/installation_guide_es_ES.html b/documentation/installation_guide_es_ES.html index a724258031..da366df8fd 100755 --- a/documentation/installation_guide_es_ES.html +++ b/documentation/installation_guide_es_ES.html @@ -688,6 +688,12 @@ por ejemplo. El efecto debería ser inmediato. break; } + location / { + rewrite ^/courses/([^/]+)/$ /main/course_home/course_home.php?cDir=$1 last; + rewrite ^/courses/([^/]+)/index.php$ main/course_home/course_home.php?cDir=$1 last; + try_files $uri @rewrite; + } + location ~ \.php$ { client_max_body_size 20M; try_files $uri /index.php$is_args$args; diff --git a/documentation/installation_guide_fr_FR.html b/documentation/installation_guide_fr_FR.html index eebfbad7ad..733673b43e 100644 --- a/documentation/installation_guide_fr_FR.html +++ b/documentation/installation_guide_fr_FR.html @@ -754,6 +754,12 @@ Ce sont uniquement les redirections à placer dans un bloc server{}, comme les a break; } + location / { + rewrite ^/courses/([^/]+)/$ /main/course_home/course_home.php?cDir=$1 last; + rewrite ^/courses/([^/]+)/index.php$ main/course_home/course_home.php?cDir=$1 last; + try_files $uri @rewrite; + } + location ~ \.php$ { client_max_body_size 20M; try_files $uri /index.php$is_args$args;