skip to Main Content

I try to dockerize old website which contains apache+php+mapscript+mapserver. I can find valid dockerfiles for apache+mapserver (later ms) and apache+php (php), in lastone I should add mapscript.

I can make docker-compose.yaml-file to load both containers. Website is used with php-container.

HOWTO: if php-container needs to use ms-container with mapscript, how it can find and use it?

2

Answers


  1. Chosen as BEST ANSWER

    I got it working with perl-script

    #!/usr/bin/perl
    print "Location: http://host-ip:port/cgi-bin/mapserv?$ENV{'QUERY_STRING'}nn";
    

  2. I suggest that you pick the apache+php dockerfile and extend it to implement mapserver/mapscript, based on the mapserver/mapscripts dockerfiles that you see around

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search