From 11d203c54ada07d70c909a810a5fe6ce27b41c9b Mon Sep 17 00:00:00 2001 From: Diogo Cordeiro Date: Tue, 6 Aug 2019 01:43:42 +0100 Subject: [PATCH] [DOCUMENTATION] Fix nginx location rule's regex for install and index --- .../SYSTEM_ADMINISTRATORS/webserver_conf/nginx.conf.sample | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DOCUMENTATION/SYSTEM_ADMINISTRATORS/webserver_conf/nginx.conf.sample b/DOCUMENTATION/SYSTEM_ADMINISTRATORS/webserver_conf/nginx.conf.sample index 028bac6e22..71f756d8ba 100644 --- a/DOCUMENTATION/SYSTEM_ADMINISTRATORS/webserver_conf/nginx.conf.sample +++ b/DOCUMENTATION/SYSTEM_ADMINISTRATORS/webserver_conf/nginx.conf.sample @@ -16,8 +16,8 @@ server { listen 443 ssl http2; # Root -# FIXME: Change the path below to where you installed GNU social - root /path/to/gnusocial/root; +# FIXME: Change the path below to where you installed GNU social (GNU social's root + /public) + root /var/www/gnusocial/public; # Server name # FIXME: Change "social.example.org" to your site's domain name @@ -32,7 +32,7 @@ server { index index.php; # PHP - location ~ ^/(index|install)\.php$ { + location ~ ^/(index|install)\.php(/.*)?$ { #location ^~ /index.php { include fastcgi_params; include snippets/fastcgi-php.conf;