Skip to content

Commit

Permalink
Update ExternalWebserversSQL.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlueF authored Sep 30, 2023
1 parent 267d8fa commit cb83e3d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions wiki/webserver/ExternalWebserversSQL.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,17 @@ server {
try_files $uri /mysql.php;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}
# OPTIONAL:
# Proxy requests to the live data interface of each map to bluemaps integrated webserver
# If you have multiple servers you will need to proxy each map-id to the correct server
location ~* /(maps/[^/\s]*/live/.*) {
proxy_pass http://127.0.0.1:8100/$1;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}
}
```
> **Important:**<br>
Expand All @@ -87,6 +88,7 @@ DocumentRoot /var/www/
RewriteRule ^.*$ /mysql.php [L]
</Directory>
# OPTIONAL:
# Proxy requests to the live data interface to bluemaps integrated webserver
ProxyPreserveHost On
ProxyPassMatch ^/(maps/[^/]*/live/.*) http://127.0.0.1:8100/$1
Expand Down

0 comments on commit cb83e3d

Please sign in to comment.