From: dbs Date: Fri, 8 Oct 2010 03:26:59 +0000 (+0000) Subject: Avoid scary SSL / HTTPS errors in Apache configuration X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=31fa395d7cae80337ec1871bc243d4518c4335e2;p=working%2FEvergreen.git 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/branches/rel_1_6_1@18236 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/examples/apache/eg.conf b/Open-ILS/examples/apache/eg.conf index 17eb787bc7..03fb503fe9 100644 --- a/Open-ILS/examples/apache/eg.conf +++ b/Open-ILS/examples/apache/eg.conf @@ -76,26 +76,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 # ---------------------------------------------------------------------------------- @@ -124,4 +104,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 +