100f02a
# This configuration is intended as an example.
100f02a
# It is not meant for productive use.
cdf98c4
100f02a
RewriteEngine on
100f02a
RewriteRule ^/wms/(.+)$ /qgis/qgis_mapserv.fcgi?map=/var/www/wms/$1.qgs [QSA,PT]
100f02a
100f02a
ScriptAlias /qgis/ "/usr/libexec/qgis/"
cdf98c4
14f808f
cdf98c4
<Directory "/usr/libexec/qgis/">
14f808f
100f02a
  Options ExecCGI
100f02a
  Options FollowSymLinks
14f808f
  
14f808f
  <IfModule mod_authz_core.c>
14f808f
     # Apache 2.4
14f808f
     Require local
14f808f
   </IfModule>
14f808f
   
14f808f
   <IfModule !mod_authz_core.c>
14f808f
     # Apache 2.2
14f808f
     Order deny,allow
14f808f
     Deny from all
14f808f
     Allow from 127.0.0.1
14f808f
     Allow from ::1
14f808f
   </IfModule>
14f808f
cdf98c4
</Directory>