1 |
commit: 942c161389f49f41ce3d1390f06b806cbd9976aa |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 1 19:17:47 2017 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 1 22:21:49 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=942c1613 |
7 |
|
8 |
app-backup/backuppc: Remove unused patches |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
.../backuppc/files/3.2.0/01-fix-configure.pl.patch | 30 -- |
13 |
.../3.2.0/03-reasonable-config.pl-defaults.patch | 47 --- |
14 |
app-backup/backuppc/files/apache2-backuppc.conf | 73 ----- |
15 |
app-backup/backuppc/files/apache2-backuppc.init | 170 ----------- |
16 |
app-backup/backuppc/files/httpd.conf | 332 --------------------- |
17 |
5 files changed, 652 deletions(-) |
18 |
|
19 |
diff --git a/app-backup/backuppc/files/3.2.0/01-fix-configure.pl.patch b/app-backup/backuppc/files/3.2.0/01-fix-configure.pl.patch |
20 |
deleted file mode 100644 |
21 |
index 060cf95..00000000 |
22 |
--- a/app-backup/backuppc/files/3.2.0/01-fix-configure.pl.patch |
23 |
+++ /dev/null |
24 |
@@ -1,30 +0,0 @@ |
25 |
---- configure.pl.orig 2010-07-31 20:52:58.000000000 +0300 |
26 |
-+++ configure.pl 2010-09-03 22:09:46.437788435 +0300 |
27 |
-@@ -158,7 +158,7 @@ |
28 |
- # config file to get all the defaults. |
29 |
- # |
30 |
- my $ConfigPath = ""; |
31 |
--my $ConfigFileOK = 1; |
32 |
-+my $ConfigFileOK = 0; |
33 |
- while ( 1 ) { |
34 |
- if ( $ConfigFileOK && -f "/etc/BackupPC/config.pl" ) { |
35 |
- $ConfigPath = "/etc/BackupPC/config.pl"; |
36 |
-@@ -213,7 +213,8 @@ |
37 |
- $bpc->{LogDir} = $Conf{LogDir} = "$Conf{TopDir}/log" |
38 |
- if ( $Conf{LogDir} eq '' ); |
39 |
- } |
40 |
-- $bpc->{ConfDir} = $Conf{ConfDir} = $confDir; |
41 |
-+ # Disable this as it's not really neccessary for this ebuild |
42 |
-+ # $bpc->{ConfDir} = $Conf{ConfDir} = $confDir; |
43 |
- my $err = $bpc->ServerConnect($Conf{ServerHost}, $Conf{ServerPort}, 1); |
44 |
- if ( $err eq "" ) { |
45 |
- print <<EOF; |
46 |
-@@ -726,7 +727,7 @@ |
47 |
- if ( $Conf{CgiDir} =~ m{cgi-bin(/.*)} ) { |
48 |
- $Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin$1/BackupPC_Admin'"; |
49 |
- } else { |
50 |
-- $Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin/BackupPC_Admin'"; |
51 |
-+ $Conf{CgiURL} = "'http://$Conf{ServerHost}/BackupPC_Admin'"; |
52 |
- } |
53 |
- } |
54 |
- |
55 |
|
56 |
diff --git a/app-backup/backuppc/files/3.2.0/03-reasonable-config.pl-defaults.patch b/app-backup/backuppc/files/3.2.0/03-reasonable-config.pl-defaults.patch |
57 |
deleted file mode 100644 |
58 |
index 06075f9..00000000 |
59 |
--- a/app-backup/backuppc/files/3.2.0/03-reasonable-config.pl-defaults.patch |
60 |
+++ /dev/null |
61 |
@@ -1,47 +0,0 @@ |
62 |
---- conf/config.pl.formatted 2010-09-03 23:09:13.035788559 +0300 |
63 |
-+++ conf/config.pl 2010-09-03 23:10:19.314788450 +0300 |
64 |
-@@ -1319,6 +1319,8 @@ |
65 |
- '--times', |
66 |
- '--block-size=2048', |
67 |
- '--recursive', |
68 |
-+ '--specials', |
69 |
-+ '--checksum-seed=32761', |
70 |
- ]; |
71 |
- |
72 |
- # |
73 |
-@@ -1385,6 +1387,8 @@ |
74 |
- '--relative', |
75 |
- '--ignore-times', |
76 |
- '--recursive', |
77 |
-+ '--specials', |
78 |
-+ '--checksum-seed=32761', |
79 |
- ]; |
80 |
- |
81 |
- ########################################################################### |
82 |
-@@ -2015,7 +2019,7 @@ |
83 |
- # --> administrative users are only craig and celia'. |
84 |
- # |
85 |
- $Conf{CgiAdminUserGroup} = ''; |
86 |
--$Conf{CgiAdminUsers} = ''; |
87 |
-+$Conf{CgiAdminUsers} = 'backuppc'; |
88 |
- |
89 |
- # |
90 |
- # URL of the BackupPC_Admin CGI script. Used for email messages. |
91 |
-@@ -2062,7 +2066,7 @@ |
92 |
- # dates (MM/DD), a value of 2 uses full YYYY-MM-DD format, and zero |
93 |
- # for international dates (DD/MM). |
94 |
- # |
95 |
--$Conf{CgiDateFormatMMDD} = 1; |
96 |
-+$Conf{CgiDateFormatMMDD} = 2; |
97 |
- |
98 |
- # |
99 |
- # If set, the complete list of hosts appears in the left navigation |
100 |
-@@ -2248,7 +2252,7 @@ |
101 |
- ClientTimeout => 1, |
102 |
- MaxOldPerPCLogFiles => 1, |
103 |
- CompressLevel => 1, |
104 |
-- ClientNameAlias => 1, |
105 |
-+ ClientNameAlias => 0, |
106 |
- DumpPreUserCmd => 0, |
107 |
- DumpPostUserCmd => 0, |
108 |
- RestorePreUserCmd => 0, |
109 |
|
110 |
diff --git a/app-backup/backuppc/files/apache2-backuppc.conf b/app-backup/backuppc/files/apache2-backuppc.conf |
111 |
deleted file mode 100644 |
112 |
index 4df0b4e..00000000 |
113 |
--- a/app-backup/backuppc/files/apache2-backuppc.conf |
114 |
+++ /dev/null |
115 |
@@ -1,73 +0,0 @@ |
116 |
-# /etc/conf.d/apache2: config file for /etc/init.d/apache2 |
117 |
- |
118 |
-# When you install a module it is easy to activate or deactivate the modules |
119 |
-# and other features of apache using the APACHE2_OPTS line. Every module should |
120 |
-# install a configuration in /etc/apache2/modules.d. In that file will have an |
121 |
-# <IfDefine NNN> directive where NNN is the option to enable that module. |
122 |
-# |
123 |
-# Here are the options available in the default configuration: |
124 |
-# |
125 |
-# AUTH_DIGEST Enables mod_auth_digest |
126 |
-# AUTHNZ_LDAP Enables authentication through mod_ldap (available if USE=ldap) |
127 |
-# CACHE Enables mod_cache |
128 |
-# DAV Enables mod_dav |
129 |
-# ERRORDOCS Enables default error documents for many languages. |
130 |
-# INFO Enables mod_info, a useful module for debugging |
131 |
-# LANGUAGE Enables content-negotiation based on language and charset. |
132 |
-# LDAP Enables mod_ldap (available if USE=ldap) |
133 |
-# MANUAL Enables /manual/ to be the apache manual (available if USE=docs) |
134 |
-# MEM_CACHE Enables default configuration mod_mem_cache |
135 |
-# PROXY Enables mod_proxy |
136 |
-# SSL Enables SSL (available if USE=ssl) |
137 |
-# SUEXEC Enables running CGI scripts (in USERDIR) through suexec. |
138 |
-# USERDIR Enables /~username mapping to /home/username/public_html |
139 |
-# |
140 |
-# |
141 |
-# The following two options provide the default virtual host for the HTTP and |
142 |
-# HTTPS protocol. YOU NEED TO ENABLE AT LEAST ONE OF THEM, otherwise apache |
143 |
-# will not listen for incomming connections on the approriate port. |
144 |
-# |
145 |
-# DEFAULT_VHOST Enables name-based virtual hosts, with the default |
146 |
-# virtual host being in /var/www/localhost/htdocs |
147 |
-# SSL_DEFAULT_VHOST Enables default vhost for SSL (you should enable this |
148 |
-# when you enable SSL) |
149 |
-# |
150 |
-APACHE2_OPTS="-D LANGUAGE -D PERL -D BACKUPPC_VHOST" |
151 |
- |
152 |
-# Extended options for advanced uses of Apache ONLY |
153 |
-# You don't need to edit these unless you are doing crazy Apache stuff |
154 |
-# As not having them set correctly, or feeding in an incorrect configuration |
155 |
-# via them will result in Apache failing to start |
156 |
-# YOU HAVE BEEN WARNED. |
157 |
- |
158 |
-# PID file |
159 |
-PIDFILE=/var/run/apache-backuppc.pid |
160 |
- |
161 |
-# timeout for startup/shutdown checks |
162 |
-#TIMEOUT=10 |
163 |
- |
164 |
-# ServerRoot setting |
165 |
-SERVERROOT=/usr/lib/apache2 |
166 |
- |
167 |
-# Configuration file location |
168 |
-# - If this does NOT start with a '/', then it is treated relative to |
169 |
-# $SERVERROOT by Apache |
170 |
-CONFIGFILE=/etc/BackupPC/httpd.conf |
171 |
- |
172 |
-# Location to log startup errors to |
173 |
-# They are normally dumped to your terminal. |
174 |
-#STARTUPERRORLOG="/var/log/apache2/startuperror.log" |
175 |
- |
176 |
-# A command that outputs a formatted text version of the HTML at the URL |
177 |
-# of the command line. Designed for lynx, however other programs may work. |
178 |
-#LYNX="lynx -dump" |
179 |
- |
180 |
-# The URL to your server's mod_status status page. |
181 |
-# Required for status and fullstatus |
182 |
-#STATUSURL="http://localhost/server-status" |
183 |
- |
184 |
-# Method to use when reloading the server |
185 |
-# Valid options are 'restart' and 'graceful' |
186 |
-# See https://httpd.apache.org/docs/2.2/stopping.html for information on |
187 |
-# what they do and how they differ. |
188 |
-#RELOAD_TYPE="graceful" |
189 |
|
190 |
diff --git a/app-backup/backuppc/files/apache2-backuppc.init b/app-backup/backuppc/files/apache2-backuppc.init |
191 |
deleted file mode 100644 |
192 |
index 77a8d89..00000000 |
193 |
--- a/app-backup/backuppc/files/apache2-backuppc.init |
194 |
+++ /dev/null |
195 |
@@ -1,170 +0,0 @@ |
196 |
-#!/sbin/openrc-run |
197 |
-# Copyright 1999-2016 Gentoo Foundation |
198 |
-# Distributed under the terms of the GNU General Public License v2 |
199 |
- |
200 |
-opts="configdump configtest fullstatus graceful gracefulstop modules reload virtualhosts" |
201 |
- |
202 |
-depend() { |
203 |
- need net |
204 |
- use mysql dns logger netmount postgresql |
205 |
- after sshd |
206 |
-} |
207 |
- |
208 |
-configtest() { |
209 |
- ebegin "Checking ${SVCNAME} configuration" |
210 |
- checkconfig |
211 |
- eend $? |
212 |
-} |
213 |
- |
214 |
-checkconfd() { |
215 |
- PIDFILE="${PIDFILE:-/var/run/apache2-backuppc.pid}" |
216 |
- TIMEOUT=${TIMEOUT:-10} |
217 |
- |
218 |
- SERVERROOT="${SERVERROOT:-/usr/lib/apache2}" |
219 |
- if [ ! -d ${SERVERROOT} ]; then |
220 |
- eerror "SERVERROOT does not exist: ${SERVERROOT}" |
221 |
- return 1 |
222 |
- fi |
223 |
- |
224 |
- CONFIGFILE="${CONFIGFILE:-/etc/BackupPC/httpd.conf}" |
225 |
- [ "${CONFIGFILE#/}" = "${CONFIGFILE}" ] && CONFIGFILE="${SERVERROOT}/${CONFIGFILE}" |
226 |
- if [ ! -r "${CONFIGFILE}" ]; then |
227 |
- eerror "Unable to read configuration file: ${CONFIGFILE}" |
228 |
- return 1 |
229 |
- fi |
230 |
- |
231 |
- APACHE2_OPTS="${APACHE2_OPTS} -d ${SERVERROOT}" |
232 |
- APACHE2_OPTS="${APACHE2_OPTS} -f ${CONFIGFILE}" |
233 |
- [ -n "${STARTUPERRORLOG}" ] && APACHE2_OPTS="${APACHE2_OPTS} -E ${STARTUPERRORLOG}" |
234 |
- |
235 |
- APACHE2="/usr/sbin/apache2" |
236 |
-} |
237 |
- |
238 |
-checkconfig() { |
239 |
- checkconfd || return 1 |
240 |
- |
241 |
- ${APACHE2} ${APACHE2_OPTS} -t 1>/dev/null 2>&1 |
242 |
- ret=$? |
243 |
- if [ $ret -ne 0 ]; then |
244 |
- eerror "${SVCNAME} has detected a syntax error in your configuration files:" |
245 |
- ${APACHE2} ${APACHE2_OPTS} -t |
246 |
- fi |
247 |
- |
248 |
- return $ret |
249 |
-} |
250 |
- |
251 |
-start() { |
252 |
- checkconfig || return 1 |
253 |
- |
254 |
- [ -f /var/log/apache2/ssl_scache ] && rm /var/log/apache2/ssl_scache |
255 |
- |
256 |
- ebegin "Starting ${SVCNAME}" |
257 |
- ${APACHE2} ${APACHE2_OPTS} -k start |
258 |
- |
259 |
- let i=0 |
260 |
- while [ ! -e "${PIDFILE}" ] && [ $i -lt ${TIMEOUT} ]; do |
261 |
- sleep 1 && i=$(expr $i + 1) |
262 |
- done |
263 |
- |
264 |
- test $i -le ${TIMEOUT} |
265 |
- eend $? |
266 |
-} |
267 |
- |
268 |
-stop() { |
269 |
- checkconfd || return 1 |
270 |
- |
271 |
- ebegin "Stopping ${SVCNAME}" |
272 |
- ${APACHE2} ${APACHE2_OPTS} -k stop |
273 |
- |
274 |
- let i=0 |
275 |
- while pidof "${APACHE2}" >/dev/null && [ $i -lt ${TIMEOUT} ]; do |
276 |
- sleep 1 && i=$(expr $i + 1) |
277 |
- done |
278 |
- |
279 |
- test $i -le ${TIMEOUT} |
280 |
- eend $? |
281 |
-} |
282 |
- |
283 |
-reload() { |
284 |
- RELOAD_TYPE="${RELOAD_TYPE:-graceful}" |
285 |
- |
286 |
- checkconfig || return 1 |
287 |
- service_started "${SVCNAME}" || return |
288 |
- |
289 |
- if [ "${RELOAD_TYPE}" = "restart" ]; then |
290 |
- ebegin "Restarting ${SVCNAME}" |
291 |
- ${APACHE2} ${APACHE2_OPTS} -k restart |
292 |
- eend $? |
293 |
- elif [ "${RELOAD_TYPE}" = "graceful" ]; then |
294 |
- ebegin "Gracefully restarting ${SVCNAME}" |
295 |
- ${APACHE2} ${APACHE2_OPTS} -k graceful |
296 |
- eend $? |
297 |
- else |
298 |
- eerror "${RELOAD_TYPE} is not a valid RELOAD_TYPE. Please edit /etc/conf.d/${SVCNAME}" |
299 |
- fi |
300 |
-} |
301 |
- |
302 |
-graceful() { |
303 |
- checkconfig || return 1 |
304 |
- service_started "${SVCNAME}" || return |
305 |
- ebegin "Gracefully restarting ${SVCNAME}" |
306 |
- ${APACHE2} ${APACHE2_OPTS} -k graceful |
307 |
- eend $? |
308 |
-} |
309 |
- |
310 |
-gracefulstop() { |
311 |
- checkconfig || return 1 |
312 |
- |
313 |
- # zap! |
314 |
- if service_started "${SVCNAME}"; then |
315 |
- mark_service_stopped "${SVCNAME}" |
316 |
- fi |
317 |
- |
318 |
- ebegin "Gracefully stopping ${SVCNAME}" |
319 |
- ${APACHE2} ${APACHE2_OPTS} -k graceful-stop |
320 |
- eend $? |
321 |
-} |
322 |
- |
323 |
-modules() { |
324 |
- checkconfig || return 1 |
325 |
- |
326 |
- ${APACHE2} ${APACHE2_OPTS} -M 2>&1 |
327 |
-} |
328 |
- |
329 |
-fullstatus() { |
330 |
- LYNX="${LYNX:-lynx -dump}" |
331 |
- STATUSURL="${STATUSURL:-http://localhost/server-status}" |
332 |
- |
333 |
- if ! service_started "${SVCNAME}"; then |
334 |
- eerror "${SVCNAME} not started" |
335 |
- elif ! type -p ${LYNX} 2>&1 >/dev/null; then |
336 |
- eerror "lynx not found! you need to emerge www-client/lynx" |
337 |
- else |
338 |
- ${LYNX} ${STATUSURL} |
339 |
- fi |
340 |
-} |
341 |
- |
342 |
-virtualhosts() { |
343 |
- checkconfd || return 1 |
344 |
- ${APACHE2} ${APACHE2_OPTS} -S |
345 |
-} |
346 |
- |
347 |
-configdump() { |
348 |
- LYNX="${LYNX:-lynx -dump}" |
349 |
- INFOURL="${INFOURL:-http://localhost/server-info}" |
350 |
- |
351 |
- checkconfd || return 1 |
352 |
- |
353 |
- if ! service_started "${SVCNAME}"; then |
354 |
- eerror "${SVCNAME} not started" |
355 |
- elif ! type -p ${LYNX} 2>&1 >/dev/null; then |
356 |
- eerror "lynx not found! you need to emerge www-client/lynx" |
357 |
- else |
358 |
- echo "${APACHE2} started with '${APACHE2_OPTS}'" |
359 |
- for i in config server list; do |
360 |
- ${LYNX} "${INFOURL}/?${i}" | sed '/Apache Server Information/d;/^[[:space:]]\+[_]\+$/Q' |
361 |
- done |
362 |
- fi |
363 |
-} |
364 |
- |
365 |
-# vim: ts=4 filetype=gentoo-init-d |
366 |
|
367 |
diff --git a/app-backup/backuppc/files/httpd.conf b/app-backup/backuppc/files/httpd.conf |
368 |
deleted file mode 100644 |
369 |
index b47475c..00000000 |
370 |
--- a/app-backup/backuppc/files/httpd.conf |
371 |
+++ /dev/null |
372 |
@@ -1,332 +0,0 @@ |
373 |
-# This is a modification of the default Apache 2.2 configuration file |
374 |
-# for Gentoo Linux. |
375 |
-# |
376 |
-# Support: |
377 |
-# http://www.gentoo.org/main/en/lists.xml [mailing lists] |
378 |
-# http://forums.gentoo.org/ [web forums] |
379 |
-# irc://irc.freenode.net#gentoo-apache [irc chat] |
380 |
-# |
381 |
-# Bug Reports: |
382 |
-# http://bugs.gentoo.org [gentoo related bugs] |
383 |
-# https://httpd.apache.org/bug_report.html [apache httpd related bugs] |
384 |
-# |
385 |
-# |
386 |
-# This is the main Apache HTTP server configuration file. It contains the |
387 |
-# configuration directives that give the server its instructions. |
388 |
-# See <URL:https://httpd.apache.org/docs/2.2> for detailed information. |
389 |
-# In particular, see |
390 |
-# <URL:https://httpd.apache.org/docs/2.2/mod/directives.html> |
391 |
-# for a discussion of each configuration directive. |
392 |
-# |
393 |
-# Do NOT simply read the instructions in here without understanding |
394 |
-# what they do. They're here only as hints or reminders. If you are unsure |
395 |
-# consult the online docs. You have been warned. |
396 |
-# |
397 |
-# Configuration and logfile names: If the filenames you specify for many |
398 |
-# of the server's control files begin with "/" (or "drive:/" for Win32), the |
399 |
-# server will use that explicit path. If the filenames do *not* begin |
400 |
-# with "/", the value of ServerRoot is prepended -- so "var/log/apache2/foo_log" |
401 |
-# with ServerRoot set to "/usr" will be interpreted by the |
402 |
-# server as "/usr/var/log/apache2/foo.log". |
403 |
- |
404 |
-# ServerRoot: The top of the directory tree under which the server's |
405 |
-# configuration, error, and log files are kept. |
406 |
-# |
407 |
-# Do not add a slash at the end of the directory path. If you point |
408 |
-# ServerRoot at a non-local disk, be sure to point the LockFile directive |
409 |
-# at a local disk. If you wish to share the same ServerRoot for multiple |
410 |
-# httpd daemons, you will need to change at least LockFile and PidFile. |
411 |
-ServerRoot "/usr/lib/apache2" |
412 |
- |
413 |
-# Dynamic Shared Object (DSO) Support |
414 |
-# |
415 |
-# To be able to use the functionality of a module which was built as a DSO you |
416 |
-# have to place corresponding `LoadModule' lines at this location so the |
417 |
-# directives contained in it are actually available _before_ they are used. |
418 |
-# Statically compiled modules (those listed by `httpd -l') do not need |
419 |
-# to be loaded here. |
420 |
-# |
421 |
-# Example: |
422 |
-# LoadModule foo_module modules/mod_foo.so |
423 |
-# |
424 |
-# GENTOO: Automatically defined based on APACHE2_MODULES USE_EXPAND variable. |
425 |
-# Do not change manually, it will be overwritten on upgrade. |
426 |
-# |
427 |
-# The following modules are considered as the default configuration. |
428 |
-# If you wish to disable one of them, you may have to alter other |
429 |
-# configuration directives. |
430 |
-# |
431 |
-# Change these at your own risk! |
432 |
- |
433 |
-LoadModule actions_module modules/mod_actions.so |
434 |
-LoadModule alias_module modules/mod_alias.so |
435 |
-LoadModule auth_basic_module modules/mod_auth_basic.so |
436 |
-<IfDefine AUTH_DIGEST> |
437 |
-LoadModule auth_digest_module modules/mod_auth_digest.so |
438 |
-</IfDefine> |
439 |
-LoadModule authn_anon_module modules/mod_authn_anon.so |
440 |
-LoadModule authn_dbm_module modules/mod_authn_dbm.so |
441 |
-LoadModule authn_default_module modules/mod_authn_default.so |
442 |
-LoadModule authn_file_module modules/mod_authn_file.so |
443 |
-LoadModule authz_dbm_module modules/mod_authz_dbm.so |
444 |
-LoadModule authz_default_module modules/mod_authz_default.so |
445 |
-LoadModule authz_groupfile_module modules/mod_authz_groupfile.so |
446 |
-LoadModule authz_host_module modules/mod_authz_host.so |
447 |
-LoadModule authz_owner_module modules/mod_authz_owner.so |
448 |
-LoadModule authz_user_module modules/mod_authz_user.so |
449 |
-LoadModule autoindex_module modules/mod_autoindex.so |
450 |
-<IfDefine CACHE> |
451 |
-LoadModule cache_module modules/mod_cache.so |
452 |
-</IfDefine> |
453 |
-LoadModule cgi_module modules/mod_cgi.so |
454 |
-LoadModule deflate_module modules/mod_deflate.so |
455 |
-LoadModule dir_module modules/mod_dir.so |
456 |
-<IfDefine CACHE> |
457 |
-LoadModule disk_cache_module modules/mod_disk_cache.so |
458 |
-</IfDefine> |
459 |
-LoadModule env_module modules/mod_env.so |
460 |
-LoadModule expires_module modules/mod_expires.so |
461 |
-LoadModule ext_filter_module modules/mod_ext_filter.so |
462 |
-<IfDefine CACHE> |
463 |
-LoadModule file_cache_module modules/mod_file_cache.so |
464 |
-</IfDefine> |
465 |
-LoadModule filter_module modules/mod_filter.so |
466 |
-LoadModule headers_module modules/mod_headers.so |
467 |
-LoadModule include_module modules/mod_include.so |
468 |
-<IfDefine INFO> |
469 |
-LoadModule info_module modules/mod_info.so |
470 |
-</IfDefine> |
471 |
-LoadModule log_config_module modules/mod_log_config.so |
472 |
-LoadModule logio_module modules/mod_logio.so |
473 |
-<IfDefine CACHE> |
474 |
-LoadModule mem_cache_module modules/mod_mem_cache.so |
475 |
-</IfDefine> |
476 |
-LoadModule mime_module modules/mod_mime.so |
477 |
-LoadModule mime_magic_module modules/mod_mime_magic.so |
478 |
-LoadModule negotiation_module modules/mod_negotiation.so |
479 |
-<IfDefine PROXY> |
480 |
-LoadModule proxy_module modules/mod_proxy.so |
481 |
-</IfDefine> |
482 |
-<IfDefine PROXY> |
483 |
-LoadModule proxy_ajp_module modules/mod_proxy_ajp.so |
484 |
-</IfDefine> |
485 |
-<IfDefine PROXY> |
486 |
-LoadModule proxy_balancer_module modules/mod_proxy_balancer.so |
487 |
-</IfDefine> |
488 |
-<IfDefine PROXY> |
489 |
-LoadModule proxy_connect_module modules/mod_proxy_connect.so |
490 |
-</IfDefine> |
491 |
-<IfDefine PROXY> |
492 |
-LoadModule proxy_http_module modules/mod_proxy_http.so |
493 |
-</IfDefine> |
494 |
-LoadModule rewrite_module modules/mod_rewrite.so |
495 |
-LoadModule setenvif_module modules/mod_setenvif.so |
496 |
-LoadModule speling_module modules/mod_speling.so |
497 |
-<IfDefine SSL> |
498 |
-LoadModule ssl_module modules/mod_ssl.so |
499 |
-</IfDefine> |
500 |
-<IfDefine STATUS> |
501 |
-LoadModule status_module modules/mod_status.so |
502 |
-</IfDefine> |
503 |
-<IfDefine SUEXEC> |
504 |
-LoadModule suexec_module modules/mod_suexec.so |
505 |
-</IfDefine> |
506 |
-LoadModule unique_id_module modules/mod_unique_id.so |
507 |
-<IfDefine USERDIR> |
508 |
-LoadModule userdir_module modules/mod_userdir.so |
509 |
-</IfDefine> |
510 |
-LoadModule usertrack_module modules/mod_usertrack.so |
511 |
-LoadModule vhost_alias_module modules/mod_vhost_alias.so |
512 |
- |
513 |
-# |
514 |
-# HostnameLookups: Log the names of clients or just their IP addresses |
515 |
-# e.g., www.apache.org (on) or 204.62.129.132 (off). |
516 |
-# The default is off because it'd be overall better for the net if people |
517 |
-# had to knowingly turn this feature on, since enabling it means that |
518 |
-# each client request will result in AT LEAST one lookup request to the |
519 |
-# nameserver. |
520 |
-# |
521 |
-HostnameLookups Off |
522 |
- |
523 |
-# If you wish httpd to run as a different user or group, you must run |
524 |
-# httpd as root initially and it will switch. |
525 |
-# |
526 |
-# User/Group: The name (or #number) of the user/group to run httpd as. |
527 |
-# It is usually good practice to create a dedicated user and group for |
528 |
-# running httpd, as with most system services. |
529 |
-User backuppc |
530 |
-Group backuppc |
531 |
- |
532 |
-# Supplemental configuration |
533 |
-# |
534 |
-# Most of the configuration files in the /etc/apache2/modules.d/ directory can |
535 |
-# be turned on using APACHE2_OPTS in /etc/conf.d/apache2 to add extra features |
536 |
-# or to modify the default configuration of the server. |
537 |
-# |
538 |
-# To know which flag to add to APACHE2_OPTS, look at the first line of the |
539 |
-# the file, which will usually be an <IfDefine OPTION> where OPTION is the |
540 |
-# flag to use. |
541 |
- |
542 |
-Include /etc/apache2/modules.d/*.conf |
543 |
- |
544 |
-# Unique lock file |
545 |
-LockFile /var/lock/apache-backuppc.lock |
546 |
- |
547 |
-# Very important for init script |
548 |
-# Unique process ID file |
549 |
-PidFile /var/run/apache-backuppc.pid |
550 |
- |
551 |
-# Unique scoreboard file |
552 |
-ScoreBoardFile /var/run/apache-backuppc.scoreboard |
553 |
- |
554 |
-# Common document root |
555 |
-<IfDefine BACKUPPC_VHOST> |
556 |
- |
557 |
- |
558 |
-# Common document root |
559 |
-DocumentRoot HTDOCSDIR |
560 |
-# see bug #178966 why this is in here |
561 |
- |
562 |
-# Listen: Allows you to bind Apache to specific IP addresses and/or |
563 |
-# ports, instead of the default. See also the <VirtualHost> |
564 |
-# directive. |
565 |
-# |
566 |
-# Change this to Listen on specific IP addresses as shown below to |
567 |
-# prevent Apache from glomming onto all bound IP addresses. |
568 |
-# |
569 |
-#Listen 12.34.56.78:80 |
570 |
-Listen 80 |
571 |
- |
572 |
-# Use name-based virtual hosting. |
573 |
-NameVirtualHost *:80 |
574 |
- |
575 |
-# When virtual hosts are enabled, the main host defined in the default |
576 |
-# httpd.conf configuration will go away. We redefine it here so that it is |
577 |
-# still available. |
578 |
-# |
579 |
-# If you disable this vhost by removing -D DEFAULT_VHOST from |
580 |
-# /etc/conf.d/apache2, the first defined virtual host elsewhere will be |
581 |
-# the default. |
582 |
-<VirtualHost *:80> |
583 |
- ServerName backuppc |
584 |
- |
585 |
- # Redirect requests to "/" to the CGI script |
586 |
- RedirectMatch "^/$" /BackupPC_Admin |
587 |
- |
588 |
- <IfDefine SSL> |
589 |
- <IfModule ssl_module> |
590 |
- RewriteEngine On |
591 |
- RewriteCond %{HTTPS} !=on |
592 |
- RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L] |
593 |
- |
594 |
- ## SSL Engine Switch: |
595 |
- # Enable/Disable SSL for this virtual host. |
596 |
- SSLEngine on |
597 |
- SSLOptions +StrictRequire |
598 |
- |
599 |
- ## SSL Cipher Suite: |
600 |
- # List the ciphers that the client is permitted to negotiate. |
601 |
- # See the mod_ssl documentation for a complete list. |
602 |
- SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL |
603 |
- |
604 |
- ## Server Certificate: |
605 |
- # Point SSLCertificateFile at a PEM encoded certificate. If the certificate |
606 |
- # is encrypted, then you will be prompted for a pass phrase. Note that a |
607 |
- # kill -HUP will prompt again. Keep in mind that if you have both an RSA |
608 |
- # and a DSA certificate you can configure both in parallel (to also allow |
609 |
- # the use of DSA ciphers, etc.) |
610 |
- SSLCertificateFile /etc/ssl/apache2/server.crt |
611 |
- |
612 |
- ## Server Private Key: |
613 |
- # If the key is not combined with the certificate, use this directive to |
614 |
- # point at the key file. Keep in mind that if you've both a RSA and a DSA |
615 |
- # private key you can configure both in parallel (to also allow the use of |
616 |
- # DSA ciphers, etc.) |
617 |
- SSLCertificateKeyFile /etc/ssl/apache2/server.key |
618 |
- <FilesMatch "\.(cgi|shtml|phtml|php)$"> |
619 |
- SSLOptions +StdEnvVars |
620 |
- </FilesMatch> |
621 |
- |
622 |
- ## ssl-accurate-shutdown: |
623 |
- # This forces an accurate shutdown when the connection is closed, i.e. a |
624 |
- # SSL close notify alert is send and mod_ssl waits for the close notify |
625 |
- # alert of the client. This is 100% SSL/TLS standard compliant, but in |
626 |
- # practice often causes hanging connections with brain-dead browsers. Use |
627 |
- # this only for browsers where you know that their SSL implementation works |
628 |
- # correctly. |
629 |
- # Notice: Most problems of broken clients are also related to the HTTP |
630 |
- # keep-alive facility, so you usually additionally want to disable |
631 |
- # keep-alive for those clients, too. Use variable "nokeepalive" for this. |
632 |
- # Similarly, one has to force some clients to use HTTP/1.0 to workaround |
633 |
- # their broken HTTP/1.1 implementation. Use variables "downgrade-1.0" and |
634 |
- # "force-response-1.0" for this. |
635 |
- <IfModule setenvif_module> |
636 |
- BrowserMatch ".*MSIE.*" \ |
637 |
- nokeepalive ssl-unclean-shutdown \ |
638 |
- downgrade-1.0 force-response-1.0 |
639 |
- </IfModule> |
640 |
- |
641 |
- ## Per-Server Logging: |
642 |
- # The home of a custom SSL log file. Use this when you want a compact |
643 |
- # non-error SSL logfile on a virtual host basis. |
644 |
- <IfModule log_config_module> |
645 |
- CustomLog /var/log/apache2/ssl_request_log \ |
646 |
- "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" |
647 |
- </IfModule> |
648 |
- </IfModule> |
649 |
- </IfDefine> |
650 |
- |
651 |
-<Directory "HTDOCSDIR"> |
652 |
- # Possible values for the Options directive are "None", "All", |
653 |
- # or any combination of: |
654 |
- # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews |
655 |
- # |
656 |
- # Note that "MultiViews" must be named *explicitly* --- "Options All" |
657 |
- # doesn't give it to you. |
658 |
- # |
659 |
- # The Options directive is both complicated and important. Please see |
660 |
- # https://httpd.apache.org/docs/2.2/mod/core.html#options |
661 |
- # for more information. |
662 |
- Options Indexes FollowSymLinks |
663 |
- |
664 |
- # AllowOverride controls what directives may be placed in .htaccess files. |
665 |
- # It can be "All", "None", or any combination of the keywords: |
666 |
- # Options FileInfo AuthConfig Limit |
667 |
- AllowOverride None |
668 |
- |
669 |
- <IfDefine SSL> |
670 |
- <IfModule ssl_module> |
671 |
- SSLOptions +StdEnvVars |
672 |
- </IfModule> |
673 |
- </IfDefine> |
674 |
- |
675 |
- SetHandler perl-script |
676 |
- PerlResponseHandler ModPerl::Registry |
677 |
- PerlOptions +ParseHeaders |
678 |
- Options +ExecCGI |
679 |
- |
680 |
- Order allow,deny |
681 |
- Allow from all |
682 |
- |
683 |
- AuthName "Backup Admin" |
684 |
- AuthType Basic |
685 |
- AuthUserFile AUTHFILE |
686 |
- Require valid-user |
687 |
-</Directory> |
688 |
- |
689 |
-<Directory "HTDOCSDIR/image"> |
690 |
- SetHandler None |
691 |
- Options Indexes FollowSymLinks |
692 |
- Order allow,deny |
693 |
- Allow from all |
694 |
-</Directory> |
695 |
- |
696 |
- |
697 |
- <IfModule mpm_peruser_module> |
698 |
- ServerEnvironment backuppc backuppc |
699 |
- </IfModule> |
700 |
-</VirtualHost> |
701 |
-</IfDefine> |
702 |
- |
703 |
- |
704 |
-# vim: ts=4 filetype=apache |