Le fichier est consitué d'une série d'includes. On modifie uid.conf en uid-backuppc.conf. default-server.conf en backuppc-server.conf.
Le plus important est /etc/apache2/backuppc-server.conf :
# # Configuration of the backuppc server, which answers client requests that are # not picked up by any virtual host. # DocumentRoot "/srv/www/html" # # Configure the DocumentRoot # <Directory "/srv/www/html"> # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs-2.0/mod/core.html#options # for more information. Options None # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit AllowOverride None # Controls who can get stuff from this server. Order allow,deny Allow from all </Directory> # Aliases: aliases can be added as needed (with no limit). The format is # Alias fakename realname # # Note that if you include a trailing / on fakename then the server will # require it to be present in the URL. So "/icons" isn't aliased in this # example, only "/icons/". If the fakename is slash-terminated, then the # realname must also be slash terminated, and if the fakename omits the # trailing slash, the realname must also omit it. # # We include the /icons/ alias for FancyIndexed directory listings. If you # do not use FancyIndexing, you may comment this out. # Alias /icons/ "/usr/share/apache2/icons/" <Directory "/usr/share/apache2/icons"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname directory are treated as applications and # run by the server when requested rather than as documents sent to the client. # The same rules about trailing "/" apply to ScriptAlias directives as to # Alias. # ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/" # "/srv/www/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # <Directory "/srv/www/cgi-bin"> AllowOverride None Options +ExecCGI -Includes Order allow,deny Allow from all </Directory> <Directory /srv/www/cgi-bin/backuppc> AuthName "BackupPC Admin" AuthType Basic # Ce compte n'est utilisé que pour l'authentification AuthLDAPBindDN "uid=apane,ou=auth-only,o=padrol" AuthLDAPBindPassword "Why pwd shouldn't be put in conf file !" AuthLDAPURL "ldap://ldap.padrol.fr/ou=annuaire,o=padrol?uid?sub?(objectClass=*)" Require valid-user </Directory>