##ServerName## Require all denied ## Denies access to default docroot # # Options FollowSymLinks # AllowOverride None # Order Deny,Allow # Deny from All # AllowOverride None Options +ExecCGI +MultiViews +SymLinksIfOwnerMatch +Includes +Multiviews Order allow,deny Allow from all AddHandler cgi-script .py AllowOverride None Options +SymLinksIfOwnerMatch +Includes +Multiviews Order allow,deny Allow from all RewriteEngine on RewriteRule .* http://localhost.localdomain/cgi-bin/api.py?%{REQUEST_URI}&%{QUERY_STRING} [P,L]