README-main 954 B

123456789101112131415161718192021222324
  1. $OpenBSD: README-main,v 1.2 2014/05/18 09:29:50 landry Exp $
  2. +-----------------------------------------------------------------------
  3. | Running ${FULLPKGNAME} on OpenBSD
  4. +-----------------------------------------------------------------------
  5. If you plan to use mapserv CGI with a chrooted web server, make sure to
  6. copy the libs needed by mapserv binary from ${LOCALBASE}/lib, but also
  7. the projection definitions from libgeotiff and proj packages to the
  8. chroot:
  9. # mkdir -p ${PREFIX-main}${LOCALBASE}/share/{epsg_csv,proj}
  10. # cp ${LOCALBASE}/share/epsg_csv/* ${PREFIX-main}${LOCALBASE}/share/epsg_csv
  11. # cp ${LOCALBASE}/share/proj/* ${PREFIX-main}${LOCALBASE}/share/proj
  12. If you would like to use FastCGI with nginx from base, use the provided rc.d(8)
  13. script and add the following lines to you nginx.conf:
  14. location /cgi-bin/mapserv {
  15. fastcgi_pass unix:run/mapserv.sock;
  16. fastcgi_param SCRIPT_FILENAME /cgi-bin/mapserv;
  17. include fastcgi_params;
  18. }