# This configuration is intended as an example.
# It is not meant for productive use.
RewriteEngine on
RewriteRule ^/wms/(.+)$ /qgis/qgis_mapserv.fcgi?map=/var/www/wms/$1.qgs [QSA,PT]
ScriptAlias /qgis/ "/usr/libexec/qgis/"
<Directory "/usr/libexec/qgis/">
Options ExecCGI
Options FollowSymLinks
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Directory>