Skip to content

Instantly share code, notes, and snippets.

@elemoine
Created March 15, 2018 08:20
Show Gist options
  • Save elemoine/c8cd89919ef99e82514d4ead310df12c to your computer and use it in GitHub Desktop.
Save elemoine/c8cd89919ef99e82514d4ead310df12c to your computer and use it in GitHub Desktop.

Revisions

  1. elemoine created this gist Mar 15, 2018.
    7 changes: 7 additions & 0 deletions mapserver-fastcgi.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    RewriteRule "^/ogc/(.*)$" "-" [E=MS_MAPFILE:/var/www/$1.map]
    <Location "/ogc/">
    SetHandler fcgid-script
    Options +ExecCGI
    FcgidWrapper /usr/lib/cgi-bin/mapserv virtual
    Require all granted
    </Location>