This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c072eb1
Showing
57 changed files
with
4,509 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# | ||
# This file loads most of the modules included with the Apache HTTP | ||
# Server itself. | ||
# | ||
|
||
LoadModule access_compat_module modules/mod_access_compat.so | ||
LoadModule actions_module modules/mod_actions.so | ||
LoadModule alias_module modules/mod_alias.so | ||
LoadModule allowmethods_module modules/mod_allowmethods.so | ||
LoadModule auth_basic_module modules/mod_auth_basic.so | ||
LoadModule auth_digest_module modules/mod_auth_digest.so | ||
LoadModule authn_anon_module modules/mod_authn_anon.so | ||
LoadModule authn_core_module modules/mod_authn_core.so | ||
LoadModule authn_dbd_module modules/mod_authn_dbd.so | ||
LoadModule authn_dbm_module modules/mod_authn_dbm.so | ||
LoadModule authn_file_module modules/mod_authn_file.so | ||
LoadModule authn_socache_module modules/mod_authn_socache.so | ||
LoadModule authz_core_module modules/mod_authz_core.so | ||
LoadModule authz_dbd_module modules/mod_authz_dbd.so | ||
LoadModule authz_dbm_module modules/mod_authz_dbm.so | ||
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so | ||
LoadModule authz_host_module modules/mod_authz_host.so | ||
LoadModule authz_owner_module modules/mod_authz_owner.so | ||
LoadModule authz_user_module modules/mod_authz_user.so | ||
LoadModule autoindex_module modules/mod_autoindex.so | ||
LoadModule cache_module modules/mod_cache.so | ||
LoadModule cache_disk_module modules/mod_cache_disk.so | ||
LoadModule data_module modules/mod_data.so | ||
LoadModule dbd_module modules/mod_dbd.so | ||
LoadModule deflate_module modules/mod_deflate.so | ||
LoadModule dir_module modules/mod_dir.so | ||
LoadModule dumpio_module modules/mod_dumpio.so | ||
LoadModule echo_module modules/mod_echo.so | ||
LoadModule env_module modules/mod_env.so | ||
LoadModule expires_module modules/mod_expires.so | ||
LoadModule ext_filter_module modules/mod_ext_filter.so | ||
LoadModule filter_module modules/mod_filter.so | ||
LoadModule headers_module modules/mod_headers.so | ||
LoadModule include_module modules/mod_include.so | ||
LoadModule info_module modules/mod_info.so | ||
LoadModule log_config_module modules/mod_log_config.so | ||
LoadModule logio_module modules/mod_logio.so | ||
LoadModule macro_module modules/mod_macro.so | ||
LoadModule mime_magic_module modules/mod_mime_magic.so | ||
LoadModule mime_module modules/mod_mime.so | ||
LoadModule negotiation_module modules/mod_negotiation.so | ||
LoadModule remoteip_module modules/mod_remoteip.so | ||
LoadModule reqtimeout_module modules/mod_reqtimeout.so | ||
LoadModule request_module modules/mod_request.so | ||
LoadModule rewrite_module modules/mod_rewrite.so | ||
LoadModule setenvif_module modules/mod_setenvif.so | ||
LoadModule slotmem_plain_module modules/mod_slotmem_plain.so | ||
LoadModule slotmem_shm_module modules/mod_slotmem_shm.so | ||
LoadModule socache_dbm_module modules/mod_socache_dbm.so | ||
LoadModule socache_memcache_module modules/mod_socache_memcache.so | ||
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so | ||
LoadModule status_module modules/mod_status.so | ||
LoadModule substitute_module modules/mod_substitute.so | ||
LoadModule suexec_module modules/mod_suexec.so | ||
LoadModule unique_id_module modules/mod_unique_id.so | ||
LoadModule unixd_module modules/mod_unixd.so | ||
LoadModule userdir_module modules/mod_userdir.so | ||
LoadModule version_module modules/mod_version.so | ||
LoadModule vhost_alias_module modules/mod_vhost_alias.so | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
LoadModule dav_module modules/mod_dav.so | ||
LoadModule dav_fs_module modules/mod_dav_fs.so | ||
LoadModule dav_lock_module modules/mod_dav_lock.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
LoadModule lua_module modules/mod_lua.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Select the MPM module which should be used by uncommenting exactly | ||
# one of the following LoadModule lines: | ||
|
||
# prefork MPM: Implements a non-threaded, pre-forking web server | ||
# See: http://httpd.apache.org/docs/2.4/mod/prefork.html | ||
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so | ||
|
||
# worker MPM: Multi-Processing Module implementing a hybrid | ||
# multi-threaded multi-process web server | ||
# See: http://httpd.apache.org/docs/2.4/mod/worker.html | ||
# | ||
#LoadModule mpm_worker_module modules/mod_mpm_worker.so | ||
|
||
# event MPM: A variant of the worker MPM with the goal of consuming | ||
# threads only for connections with active processing | ||
# See: http://httpd.apache.org/docs/2.4/mod/event.html | ||
# | ||
#LoadModule mpm_event_module modules/mod_mpm_event.so | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# | ||
# This file lists modules included with the Apache HTTP Server | ||
# which are not enabled by default. | ||
# | ||
|
||
#LoadModule buffer_module modules/mod_buffer.so | ||
#LoadModule watchdog_module modules/mod_watchdog.so | ||
#LoadModule heartbeat_module modules/mod_heartbeat.so | ||
#LoadModule heartmonitor_module modules/mod_heartmonitor.so | ||
#LoadModule usertrack_module modules/mod_usertrack.so | ||
#LoadModule dialup_module modules/mod_dialup.so | ||
#LoadModule charset_lite_module modules/mod_charset_lite.so | ||
#LoadModule log_debug_module modules/mod_log_debug.so | ||
#LoadModule ratelimit_module modules/mod_ratelimit.so | ||
#LoadModule reflector_module modules/mod_reflector.so | ||
#LoadModule sed_module modules/mod_sed.so | ||
#LoadModule speling_module modules/mod_speling.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# This file configures all the proxy modules: | ||
LoadModule proxy_module modules/mod_proxy.so | ||
LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so | ||
LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so | ||
LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so | ||
LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so | ||
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so | ||
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so | ||
LoadModule proxy_connect_module modules/mod_proxy_connect.so | ||
LoadModule proxy_express_module modules/mod_proxy_express.so | ||
LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so | ||
LoadModule proxy_fdpass_module modules/mod_proxy_fdpass.so | ||
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so | ||
LoadModule proxy_http_module modules/mod_proxy_http.so | ||
LoadModule proxy_scgi_module modules/mod_proxy_scgi.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# This file configures mod_proxy_html and mod_xml2enc: | ||
LoadModule xml2enc_module modules/mod_xml2enc.so | ||
LoadModule proxy_html_module modules/mod_proxy_html.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
LoadModule ssl_module modules/mod_ssl.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# This file configures systemd module: | ||
LoadModule systemd_module modules/mod_systemd.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This configuration file loads a CGI module appropriate to the MPM | ||
# which has been configured in 00-mpm.conf. mod_cgid should be used | ||
# with a threaded MPM; mod_cgi with the prefork MPM. | ||
|
||
<IfModule mpm_worker_module> | ||
LoadModule cgid_module modules/mod_cgid.so | ||
</IfModule> | ||
<IfModule mpm_event_module> | ||
LoadModule cgid_module modules/mod_cgid.so | ||
</IfModule> | ||
<IfModule mpm_prefork_module> | ||
LoadModule cgi_module modules/mod_cgi.so | ||
</IfModule> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# This file configures the LDAP modules: | ||
LoadModule ldap_module modules/mod_ldap.so | ||
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
LoadModule session_module modules/mod_session.so | ||
LoadModule session_cookie_module modules/mod_session_cookie.so | ||
LoadModule session_dbd_module modules/mod_session_dbd.so | ||
LoadModule auth_form_module modules/mod_auth_form.so | ||
|
||
#LoadModule session_crypto_module modules/mod_session_crypto.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This file is part of mod_ssl. It enables listening on port 443 when | ||
# socket activation is used. | ||
|
||
[Socket] | ||
ListenStream=443 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
This directory holds configuration files for the Apache HTTP Server; | ||
any files in this directory which have the ".conf" extension will be | ||
processed as httpd configuration files. The directory is used in | ||
addition to the directory /etc/httpd/conf.modules.d/, which contains | ||
configuration files necessary to load modules. | ||
|
||
Files are processed in alphabetical order. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
This directory holds configuration files for the Apache HTTP Server; | ||
any files in this directory which have the ".conf" extension will be | ||
processed as httpd configuration files. This directory contains | ||
configuration fragments necessary only to load modules. | ||
Administrators should use the directory "/etc/httpd/conf.d" to modify | ||
the configuration of httpd, or any modules. | ||
|
||
Files are processed in alphanumeric order. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
exec /sbin/apachectl configtest "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
exec /sbin/apachectl graceful "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=Disk Cache Cleaning Daemon for Apache HTTP Server | ||
After=httpd.service | ||
|
||
[Service] | ||
Type=forking | ||
User=apache | ||
PIDFile=/run/httpd/htcacheclean/pid | ||
EnvironmentFile=/etc/sysconfig/htcacheclean | ||
ExecStart=/usr/sbin/htcacheclean -P /run/httpd/htcacheclean/pid -d $INTERVAL -p $CACHE_ROOT -l $LIMIT $OPTIONS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# | ||
# Configuration options for systemd service, htcacheclean.service. | ||
# See htcacheclean(8) for more information on available options. | ||
# | ||
|
||
# Interval between cache clean runs, in minutes | ||
INTERVAL=15 | ||
|
||
# Default cache root. | ||
CACHE_ROOT=/var/cache/httpd/proxy | ||
|
||
# Cache size limit in bytes (K=Kbytes, M=Mbytes) | ||
LIMIT=100M | ||
|
||
# Any other options... | ||
OPTIONS= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
|
||
- fail gracefully if links is not installed on target system | ||
- source sysconfig/httpd for custom env. vars etc. | ||
- make httpd -t work even in SELinux | ||
- pass $OPTIONS to all $HTTPD invocation | ||
|
||
Upstream-HEAD: vendor | ||
Upstream-2.0: vendor | ||
Upstream-Status: Vendor-specific changes for better initscript integration | ||
|
||
--- httpd-2.4.1/support/apachectl.in.apctl | ||
+++ httpd-2.4.1/support/apachectl.in | ||
@@ -44,19 +44,25 @@ ARGV="$@" | ||
# the path to your httpd binary, including options if necessary | ||
HTTPD='@exp_sbindir@/@progname@' | ||
# | ||
-# pick up any necessary environment variables | ||
-if test -f @exp_sbindir@/envvars; then | ||
- . @exp_sbindir@/envvars | ||
-fi | ||
# | ||
# a command that outputs a formatted text version of the HTML at the | ||
# url given on the command line. Designed for lynx, however other | ||
# programs may work. | ||
-LYNX="@LYNX_PATH@ -dump" | ||
+if [ -x "@LYNX_PATH@" ]; then | ||
+ LYNX="@LYNX_PATH@ -dump" | ||
+else | ||
+ LYNX=none | ||
+fi | ||
# | ||
# the URL to your server's mod_status status page. If you do not | ||
# have one, then status and fullstatus will not work. | ||
STATUSURL="http://localhost:@PORT@/server-status" | ||
+ | ||
+# Source /etc/sysconfig/httpd for $HTTPD setting, etc. | ||
+if [ -r /etc/sysconfig/httpd ]; then | ||
+ . /etc/sysconfig/httpd | ||
+fi | ||
+ | ||
# | ||
# Set this variable to a command that increases the maximum | ||
# number of file descriptors allowed per child process. This is | ||
@@ -76,9 +82,27 @@ if [ "x$ARGV" = "x" ] ; then | ||
ARGV="-h" | ||
fi | ||
|
||
+function checklynx() { | ||
+if [ "$LYNX" = "none" ]; then | ||
+ echo "The 'links' package is required for this functionality." | ||
+ exit 8 | ||
+fi | ||
+} | ||
+ | ||
+function testconfig() { | ||
+# httpd is denied terminal access in SELinux, so run in the | ||
+# current context to get stdout from $HTTPD -t. | ||
+if test -x /usr/sbin/selinuxenabled && /usr/sbin/selinuxenabled; then | ||
+ runcon -- `id -Z` $HTTPD $OPTIONS -t | ||
+else | ||
+ $HTTPD $OPTIONS -t | ||
+fi | ||
+ERROR=$? | ||
+} | ||
+ | ||
case $ACMD in | ||
start|stop|restart|graceful|graceful-stop) | ||
- $HTTPD -k $ARGV | ||
+ $HTTPD $OPTIONS -k $ARGV | ||
ERROR=$? | ||
;; | ||
startssl|sslstart|start-SSL) | ||
@@ -88,17 +112,18 @@ startssl|sslstart|start-SSL) | ||
ERROR=2 | ||
;; | ||
configtest) | ||
- $HTTPD -t | ||
- ERROR=$? | ||
+ testconfig | ||
;; | ||
status) | ||
+ checklynx | ||
$LYNX $STATUSURL | awk ' /process$/ { print; exit } { print } ' | ||
;; | ||
fullstatus) | ||
+ checklynx | ||
$LYNX $STATUSURL | ||
;; | ||
*) | ||
- $HTTPD "$@" | ||
+ $HTTPD $OPTIONS "$@" | ||
ERROR=$? | ||
esac | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
Bump up the core size limit if CoreDumpDirectory is | ||
configured. | ||
|
||
Upstream-Status: Was discussed but there are competing desires; | ||
there are portability oddities here too. | ||
|
||
--- httpd-2.4.1/server/core.c.corelimit | ||
+++ httpd-2.4.1/server/core.c | ||
@@ -4433,6 +4433,25 @@ static int core_post_config(apr_pool_t * | ||
} | ||
apr_pool_cleanup_register(pconf, NULL, ap_mpm_end_gen_helper, | ||
apr_pool_cleanup_null); | ||
+ | ||
+#ifdef RLIMIT_CORE | ||
+ if (ap_coredumpdir_configured) { | ||
+ struct rlimit lim; | ||
+ | ||
+ if (getrlimit(RLIMIT_CORE, &lim) == 0 && lim.rlim_cur == 0) { | ||
+ lim.rlim_cur = lim.rlim_max; | ||
+ if (setrlimit(RLIMIT_CORE, &lim) == 0) { | ||
+ ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, NULL, | ||
+ "core dump file size limit raised to %lu bytes", | ||
+ lim.rlim_cur); | ||
+ } else { | ||
+ ap_log_error(APLOG_MARK, APLOG_NOTICE, errno, NULL, | ||
+ "core dump file size is zero, setrlimit failed"); | ||
+ } | ||
+ } | ||
+ } | ||
+#endif | ||
+ | ||
return OK; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
Link straight against .la files. | ||
|
||
Upstream-Status: vendor specific | ||
|
||
--- httpd-2.4.1/configure.in.deplibs | ||
+++ httpd-2.4.1/configure.in | ||
@@ -707,9 +707,9 @@ APACHE_HELP_STRING(--with-suexec-umask,u | ||
|
||
dnl APR should go after the other libs, so the right symbols can be picked up | ||
if test x${apu_found} != xobsolete; then | ||
- AP_LIBS="$AP_LIBS `$apu_config --avoid-ldap --link-libtool --libs`" | ||
+ AP_LIBS="$AP_LIBS `$apu_config --avoid-ldap --link-libtool`" | ||
fi | ||
-AP_LIBS="$AP_LIBS `$apr_config --link-libtool --libs`" | ||
+AP_LIBS="$AP_LIBS `$apr_config --link-libtool`" | ||
APACHE_SUBST(AP_LIBS) | ||
APACHE_SUBST(AP_BUILD_SRCLIB_DIRS) | ||
APACHE_SUBST(AP_CLEAN_SRCLIB_DIRS) |
Oops, something went wrong.