WSGIDaemonProcess fuzzmanager.your.domain python-path=/path/to/repo/FuzzManager/server
WSGIProcessGroup fuzzmanager.your.domain
WSGIApplicationGroup %{GLOBAL}

<VirtualHost *:80>
	ServerName fuzzmanager.your.domain

	Alias /static/ /path/to/repo/FuzzManager/server/crashmanager/static/
	Alias /tests/ /path/to/repo/FuzzManager/server/tests/

	WSGIScriptAlias / /path/to/repo/FuzzManager/server/server/wsgi.py process-group=fuzzmanager.your.domain
	WSGIPassAuthorization On

	<Location />
		AuthType Basic
		AuthName "LDAP Login"
		AuthBasicProvider file ldap
		AuthUserFile /path/to/.htpasswd
		# Your LDAP configuration here, including Require directives

		# This user is used by clients to download test cases and signatures
		Require user fuzzmanager
	</Location>

	<Location /crashmanager/rest/>
		Satisfy Any
		Allow from all
	</Location>

	<Location /ec2spotmanager/rest/>
		Satisfy Any
		Allow from all
	</Location>
	
	<Directory /path/to/repo/FuzzManager/server>
		<Files wsgi.py>
			Order deny,allow
			Allow from all
		</Files>
	</Directory>
</VirtualHost>
