Update server configuration examples
parent
1da0a51ace
commit
02d1936248
@ -40,23 +40,20 @@ This subdirectory-based approach was chosen for its relative simplicity and beca
|
|||||||
|
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user