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