Я нашел
Код: Выделить всё
proxy_set_header
Код: Выделить всё
reverse proxy
Secure tileserver-gl using ssl in centOS
Here is the Nginx config:
Код: Выделить всё
location / {
proxy_pass http://localhost:80;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
}
Код: Выделить всё
GET /maplibre-gl.css 304 0.528 ms - -
GET /maplibre-gl-inspect.css 304 0.310 ms - -
GET /leaflet.css 304 0.249 ms - -
GET /maplibre-gl.js 304 0.223 ms - -
GET /maplibre-gl-inspect.min.js 304 1.575 ms - -
GET /leaflet.js 304 0.402 ms - -
GET /leaflet-hash.js 304 0.375 ms - -
GET /mapbox-gl-rtl-text.js 200 0.845 ms - 206897
GET /styles/basic-preview/style.json 200 2.144 ms - 14704
GET /data/v3.json 200 1.874 ms - 20363
GET /mapbox-gl-rtl-text.js 304 0.423 ms - -
Код: Выделить всё
ProxyPass "/" "http://localhost:80/"
ProxyPassReverse "/" "http://localhost:80/"
# I just copy here, not working in Apache
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
Код: Выделить всё
GET /maplibre-gl.css 200 8.506 ms - 63722
GET /maplibre-gl-inspect.css 200 8.473 ms - 1877
GET /leaflet.css 200 8.654 ms - 14145
GET /maplibre-gl-inspect.min.js 200 7.890 ms - 23362
GET /leaflet.js 200 10.616 ms - 147552
GET /leaflet-hash.js 200 5.913 ms - 3462
GET /maplibre-gl.js 200 8.035 ms - 762783
GET /mapbox-gl-rtl-text.js 200 0.822 ms - 206897
GET /styles/basic-preview/style.json 304 2.152 ms - -
GET /data/v3.json 304 1.674 ms - -
GET /mapbox-gl-rtl-text.js 200 0.698 ms - 206897
Код: Выделить всё
tileserver-gl
Код: Выделить всё
Nginx
Код: Выделить всё
Apache
Код: Выделить всё
304
Код: Выделить всё
200
I want to copy all header settings from
Код: Выделить всё
Nginx
Код: Выделить всё
Apache
How to convert all
Код: Выделить всё
proxy_set_header
Источник: https://stackoverflow.com/questions/781 ... -to-apache