Alias /backuppc /usr/share/backuppc/cgi-bin/

<Directory /usr/share/backuppc/cgi-bin/>
	AllowOverride None

        # Uncomment the line below to ensure that nobody can sniff important
        # info from network traffic during editing of the BackupPC config or
        # when browsing/restoring backups.
        # Requires that you have your webserver set up for SSL (https) access.
        # SSLRequireSSL
					
	Options ExecCGI FollowSymlinks
	AddHandler cgi-script .cgi
	DirectoryIndex index.cgi

        AuthUserFile /etc/backuppc/htpasswd
	AuthType basic
	AuthName "BackupPC admin"

        <RequireAll>
		# Comment out this line once you have setup HTTPS and uncommented SSLRequireSSL
		# Require local

		# This line ensures that only authenticated users may access your backups
	        Require valid-user
	</RequireAll>
</Directory>
