From c7e396600d5aedba23b43698e0bbfca3f60145b2 Mon Sep 17 00:00:00 2001 From: dbs Date: Fri, 8 Oct 2010 03:30:00 +0000 Subject: [PATCH] Avoid scary SSL / HTTPS errors in Apache configuration When port 443 is the last listener port, Apache generates lots of "unknown protocol speaking not SSL to HTTPS port!?" errors in the logs - which are scary, but harmless. Putting port 80 last avoids those errors entirely, per http://wiki.apache.org/httpd/InternalDummyConnection git-svn-id: svn://svn.open-ils.org/ILS/trunk@18239 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/examples/apache/eg.conf | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/Open-ILS/examples/apache/eg.conf b/Open-ILS/examples/apache/eg.conf index 77cd6d0aa2..f44ae921a2 100644 --- a/Open-ILS/examples/apache/eg.conf +++ b/Open-ILS/examples/apache/eg.conf @@ -99,26 +99,6 @@ ExpiresByType application/xhtml+xml A64800 ExpiresByType application/x-javascript A64800 ExpiresByType text/css A3000 - - - -# ---------------------------------------------------------------------------------- -# Set up our main virtual host -# ---------------------------------------------------------------------------------- -NameVirtualHost *:80 - - ServerName localhost:80 - ServerAlias 127.0.0.1:80 - DocumentRoot /openils/var/web/ - DirectoryIndex index.xml index.html index.xhtml - # - absorb the shared virtual host settings - Include eg_vhost.conf - - - - - - # ---------------------------------------------------------------------------------- # Set up our SSL virtual host # ---------------------------------------------------------------------------------- @@ -147,4 +127,18 @@ NameVirtualHost *:443 +# ---------------------------------------------------------------------------------- +# Set up our main virtual host +# Port 80 comes after 443 to avoid "unknown protocol speaking not SSL to HTTPS port!?" +# errors, per http://wiki.apache.org/httpd/InternalDummyConnection +# ---------------------------------------------------------------------------------- +NameVirtualHost *:80 + + ServerName localhost:80 + ServerAlias 127.0.0.1:80 + DocumentRoot /openils/var/web/ + DirectoryIndex index.xml index.html index.xhtml + # - absorb the shared virtual host settings + Include eg_vhost.conf + -- 2.11.0