From 02d19362484485b80c4ef1a1d3266d67568f03d9 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Tue, 31 May 2022 12:29:08 +0100 Subject: [PATCH] Update server configuration examples --- Configuring-Multiple-Servers.md | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/Configuring-Multiple-Servers.md b/Configuring-Multiple-Servers.md index 40b07f9..4706ac4 100644 --- a/Configuring-Multiple-Servers.md +++ b/Configuring-Multiple-Servers.md @@ -38,25 +38,22 @@ This subdirectory-based approach was chosen for its relative simplicity and beca Here is a an nginx configuration example which routes requests to non-existant files for `/map/` URLs to LiveAtlas: - location ~ ^/map/ { + location ~ ^/map/ { index index.html; - try_files $uri /map/index.html; + try_files $uri /map/test/index.html; + } - # If you're hosting dynmap's php files in the same folder - location ~ \.php$ { - fastcgi_split_path_info ^(.+\.php)(/.+)$; - fastcgi_pass unix:/run/php/php7.4-fpm.sock; - fastcgi_index index.php; - include /etc/nginx/fastcgi_params; - fastcgi_param SCRIPT_FILENAME $request_filename; - } + # If you're hosting dynmap's php files in the same folder + location ~ ^/map/.*\.php$ { + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_pass unix:/run/php/php7.4-fpm.sock; + fastcgi_index index.php; + include /etc/nginx/fastcgi_params; + fastcgi_param SCRIPT_FILENAME $request_filename; } An apache example, which should be in an .htaccess file within `/map`: - RewriteEngine On - RewriteCond %{REQUEST_FILENAME} !-d - FallbackResource /index.html 2. Configure LiveAtlas for multiple servers