# Sample httpd configuration for Steve's Python REST API test # see http://stv.website/steve/voter/view/foo for an example. DocumentRoot /var/www/steve/www/htdocs ServerName stv.website DirectoryIndex index.html Require all granted Options +ExecCGI AddHandler cgi-script .py # REST API ScriptAlias /steve/admin /var/www/steve/www/cgi-bin/rest_admin.py ScriptAlias /steve/voter /var/www/steve/www/cgi-bin/rest_voter.py # HTML generators ScriptAlias /steve/ballot /var/www/steve/www/cgi-bin/html_ballot.py ScriptAlias /steve/election /var/www/steve/www/cgi-bin/html_election.py AuthType Basic AuthName "STeVe administration" # CHANGE THIS TO YOUR REAL ACCESS FILE/SCHEME AuthBasicProvider file AuthUserFile /var/www/steve/htpasswd-example Require valid-user