mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-10-02 08:31:24 -04:00
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
# $NetBSD: backuppc.conf,v 1.1 2015/02/13 17:57:36 tnn Exp $
|
|
#
|
|
# BackupPC sample configuration file fragment for Apache.
|
|
#
|
|
# Note that you have to perform some manual steps to make this work:
|
|
#
|
|
# 1) Install the setuid cgi-bin wrapper binary:
|
|
#
|
|
# gcc -o @PREFIX@/share/BackupPC/htdocs/BackupPC_Admin.cgi \
|
|
# @PREFIX@/share/examples/BackupPC/cgiwrapper.c
|
|
# chown @BACKUPPC_USER@:@APACHE_GROUP@ \
|
|
# @PREFIX@/share/BackupPC/htdocs/BackupPC_Admin.cgi
|
|
# chmod 4510 @PREFIX@/share/BackupPC/htdocs/BackupPC_Admin.cgi
|
|
#
|
|
# 2) Set an admin password:
|
|
#
|
|
# htpasswd -c @PKG_SYSCONFDIR@/htpasswd admin
|
|
# chmod 400 @PKG_SYSCONFDIR@/htpasswd
|
|
# chown @APACHE_USER@:@APACHE_GROUP@ @PKG_SYSCONFDIR@/htpasswd
|
|
#
|
|
# 3) Edit @PKG_SYSCONFDIR@/config.pl and add the
|
|
# admin user to $Conf{CgiAdminUsers}.
|
|
|
|
<IfModule mod_alias.c>
|
|
Alias /BackupPC "@PREFIX@/share/BackupPC/htdocs/"
|
|
</IfModule>
|
|
|
|
<Directory "@PREFIX@/share/BackupPC/htdocs">
|
|
AddHandler cgi-script .cgi
|
|
DirectoryIndex BackupPC_Admin.cgi
|
|
Options ExecCGI
|
|
AuthUserFile @PKG_SYSCONFDIR@/htpasswd
|
|
AuthType basic
|
|
AuthName "BackupPC login"
|
|
require valid-user
|
|
Order allow,deny
|
|
Allow from all
|
|
</Directory>
|