Avoid scary SSL / HTTPS errors in Apache configuration
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 8 Oct 2010 03:30:00 +0000 (03:30 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 8 Oct 2010 03:30:00 +0000 (03:30 +0000)
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

index 77cd6d0..f44ae92 100644 (file)
@@ -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
-<VirtualHost *: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
-</VirtualHost>
-
-
-
-
-
 # ----------------------------------------------------------------------------------
 # Set up our SSL virtual host
 # ----------------------------------------------------------------------------------
@@ -147,4 +127,18 @@ NameVirtualHost *:443
 
 </VirtualHost>
 
+# ----------------------------------------------------------------------------------
+# 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
+<VirtualHost *: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
+</VirtualHost>