Update server configuration examples

James Lyne 2022-05-31 12:29:08 +01:00
parent 1da0a51ace
commit 02d1936248

@ -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: 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; 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 # If you're hosting dynmap's php files in the same folder
location ~ \.php$ { location ~ ^/map/.*\.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php/php7.4-fpm.sock; fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_index index.php; fastcgi_index index.php;
include /etc/nginx/fastcgi_params; include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param SCRIPT_FILENAME $request_filename;
}
} }
An apache example, which should be in an .htaccess file within `/map`: An apache example, which should be in an .htaccess file within `/map`:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
FallbackResource /index.html FallbackResource /index.html
2. Configure LiveAtlas for multiple servers 2. Configure LiveAtlas for multiple servers