1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

Merge pull request #2058 from georgejhunt/osm-php-fix

include a php clause in nginx conf
This commit is contained in:
A Holt 2019-12-10 17:09:28 -05:00 committed by GitHub
commit 08d36fda8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,19 @@
# For downloadable regional vector tilesets
location /maps {
alias /library/www/osm-vector-maps;
rewrite ^/maps/(.*)$ /osm-vector-maps/$1;
}
location /osm-vector-maps {
alias /library/www/osm-vector-maps;
}
location ~ ^/osm-vector-maps/(.*)\.php(.*)$ {
alias /library/www/osm-vector-maps/$1.php$2;
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;
}