mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Softcode osm-vector-maps/templates/osm-vector-maps-nginx.conf
This commit is contained in:
parent
1c275cb88c
commit
92b475210b
1 changed files with 5 additions and 3 deletions
|
@ -0,0 +1,21 @@
|
|||
# For downloadable regional vector tilesets
|
||||
location /maps {
|
||||
rewrite ^/maps(.*)$ /osm-vector-maps$1;
|
||||
}
|
||||
|
||||
location /osm-vector-maps {
|
||||
alias {{ vector_map_path }}; # /library/www/osm-vector-maps
|
||||
}
|
||||
|
||||
location ~ ^/osm-vector-maps/(.*)\.php(.*)$ {
|
||||
alias {{ vector_map_path }}/$1.php$2; # /library/www/osm-vector-maps
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header Host $host;
|
||||
fastcgi_pass php;
|
||||
include fastcgi_params;
|
||||
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $2;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue