Open samtux opened 10 years ago
My "fix" is to run Nginx listening on port 80.
When Nginx is listening on port 80 and I visit a service listed on http://localhost/mapcache/demo
, tiles are requested correctly from localhost. When Nginx is listening on another port (e.g. 8080), then visiting a service via http://localhost:8080/mapcache/demo
will fetch tiles incorrectly via http://localhost
on port 80, resulting in pink tiles.
I have done the configuration of the FastCGI instance of Mapcache in Nginx Server, but accessing from a remote IP the tiles appear in pink in OpenLayers demo MapCache, because the path of the images are on "localhost".
The Spawn cofiguration is:
The Fastcgi instances of mapcache in Nginx configuration:
How I can fix images paths, to take the user's IP?