Open woodRock opened 3 years ago
We encountered an issue on the new server with the PSQL requests in the MapFile. Each layer specifies a CONNECTION
. The host was specified as localhost
. However, due to the nature of the MapServer software, this creates an external host connection to localhost. Which is not the same as the default connection, where if a host is not specified, localhost
is used.
The solution to the problem mentioned above was to reference the DNS for the server, wellmapsrvdev02
, rather than localhost
. We also had to add mapserv
to as a trusted user on the /etc/postgresql/11/main/postgres.conf
for connections from the server to our database. With that change, our MapServer was able to query the database through the cgi-bin
without requiring a password. This approach is secure, because we only allow these connections to occur from the IP address of the server itself.
Goal
Update deprecated/redundant syntax for each Mapfile
Tasklist
Success
Each Mapfile that is ready for its current version of Mapserver.