]> Raphaël G. Git Repositories - ihttpd/commitdiff
Add missing servername, remove trailing one
authorRaphaël Gertz <git@rapsys.eu>
Sun, 19 Jun 2016 05:19:38 +0000 (07:19 +0200)
committerRaphaël Gertz <rapsys@rapsys.eu>
Sun, 19 Jun 2016 05:19:38 +0000 (07:19 +0200)
SOURCES/ihttpd.conf

index 2286c1eeb9251f7db6f0995d03463c64e88d47aa..beadf2363d40914194f78711c4bab0f4d17574dc 100644 (file)
@@ -6,6 +6,9 @@ ServerRoot "/etc"
 Listen 80
 Listen 443
 
+# Server name
+ServerName localhost
+
 # Server admin
 ServerAdmin root@localhost
 
@@ -66,7 +69,6 @@ RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
 
 # SSL vhost
 <VirtualHost *:443>
-       ServerName localhost
        SSLEngine on
        SSLCertificateFile /etc/pki/tls/certs/ihttpd.pem
        SSLCertificateKeyFile /etc/pki/tls/private/ihttpd.pem