summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Orton <jorton@redhat.com>2012-04-20 12:38:40 +0100
committerJoe Orton <jorton@redhat.com>2012-04-20 12:38:40 +0100
commitea6aac8abd84867119fd84a057daceb75e160bc1 (patch)
tree57128c180cac7adbd7e689b8a33677527e884ab8
parentb72df69f2e73d3b5b4648ad4ad443720e9009ce6 (diff)
downloadhttpd-ea6aac8abd84867119fd84a057daceb75e160bc1.tar.gz
httpd-ea6aac8abd84867119fd84a057daceb75e160bc1.tar.xz
httpd-ea6aac8abd84867119fd84a057daceb75e160bc1.zip
tweak default ssl.conf
- fix restart handling (#814645) - use graceful restart by default Resolves: rhbz#814645
-rw-r--r--httpd-2.4.2-restart.patch29
-rw-r--r--httpd.service3
-rw-r--r--httpd.spec7
-rw-r--r--ssl.conf3
4 files changed, 37 insertions, 5 deletions
diff --git a/httpd-2.4.2-restart.patch b/httpd-2.4.2-restart.patch
new file mode 100644
index 0000000..07ff452
--- /dev/null
+++ b/httpd-2.4.2-restart.patch
@@ -0,0 +1,29 @@
+
+https://bugzilla.redhat.com/show_bug.cgi?id=814645
+
+--- httpd-2.4.2/server/main.c.restart
++++ httpd-2.4.2/server/main.c
+@@ -671,6 +671,11 @@ int main(int argc, const char * const ar
+ }
+ }
+
++ /* If our config failed, deal with that here. */
++ if (rv != OK) {
++ destroy_and_exit_process(process, 1);
++ }
++
+ signal_server = APR_RETRIEVE_OPTIONAL_FN(ap_signal_server);
+ if (signal_server) {
+ int exit_status;
+@@ -680,11 +685,6 @@ int main(int argc, const char * const ar
+ }
+ }
+
+- /* If our config failed, deal with that here. */
+- if (rv != OK) {
+- destroy_and_exit_process(process, 1);
+- }
+-
+ apr_pool_clear(plog);
+
+ if ( ap_run_open_logs(pconf, plog, ptemp, ap_server_conf) != OK) {
diff --git a/httpd.service b/httpd.service
index fda59d2..c1172b4 100644
--- a/httpd.service
+++ b/httpd.service
@@ -7,8 +7,7 @@ Type=forking
PIDFile=/var/run/httpd/httpd.pid
EnvironmentFile=/etc/sysconfig/httpd
ExecStart=/usr/sbin/httpd $OPTIONS
-ExecReload=/usr/sbin/httpd $OPTIONS -t
-ExecReload=/usr/sbin/httpd -HUP $MAINPID
+ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop
PrivateTmp=true
diff --git a/httpd.spec b/httpd.spec
index 1a12e55..a41c80f 100644
--- a/httpd.spec
+++ b/httpd.spec
@@ -8,7 +8,7 @@
Summary: Apache HTTP Server
Name: httpd
Version: 2.4.2
-Release: 1%{?dist}
+Release: 2%{?dist}
URL: http://httpd.apache.org/
Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
Source1: index.html
@@ -554,6 +554,11 @@ rm -rf $RPM_BUILD_ROOT
%{_sysconfdir}/rpm/macros.httpd
%changelog
+* Fri Apr 20 2012 Joe Orton <jorton@redhat.com> - 2.4.2-2
+- tweak default ssl.conf
+- fix restart handling (#814645)
+- use graceful restart by default
+
* Wed Apr 18 2012 Jan Kaluza <jkaluza@redhat.com> - 2.4.2-1
- update to 2.4.2
diff --git a/ssl.conf b/ssl.conf
index 5791eaf..c6b89e3 100644
--- a/ssl.conf
+++ b/ssl.conf
@@ -20,8 +20,7 @@ SSLPassPhraseDialog exec:/usr/libexec/httpd-ssl-pass-dialog
# Inter-Process Session Cache:
# Configure the SSL Session Cache: First the mechanism
# to use and second the expiring timeout (in seconds).
-#SSLSessionCache dc:UNIX:/var/cache/mod_ssl/distcache
-SSLSessionCache shmcb:/var/cache/mod_ssl/scache(512000)
+SSLSessionCache shmcb:/var/run/httpd/sslcache(512000)
SSLSessionCacheTimeout 300
# Pseudo Random Number Generator (PRNG):