Parcourir la source

keep in sync with apache package: provide reasonable virtual host entry for out-of-the-box SSL support

Christoph Schug il y a 18 ans
Parent
commit
12e370c0ad
2 fichiers modifiés avec 36 ajouts et 1 suppressions
  1. 1 1
      apache-php4/apache-php4.spec
  2. 35 0
      apache-php4/apache.conf

+ 1 - 1
apache-php4/apache-php4.spec

@@ -68,7 +68,7 @@ Class:        PLUS
 Group:        Web
 License:      ASF
 Version:      %{V_apache}
-Release:      20070313
+Release:      20070315
 
 #   package options (suexec related)
 %option       with_suexec               yes

+ 35 - 0
apache-php4/apache.conf

@@ -8,6 +8,10 @@ Include "@l_prefix@/etc/apache/apache.base"
 Listen          127.0.0.1:80
 NameVirtualHost 127.0.0.1:80
 
+<IfModule mod_ssl.c>
+Listen          127.0.0.1:443
+</IfModule>
+
 <VirtualHost 127.0.0.1:80>
     ServerName        @l_hostname@.@l_domainname@
     ServerAlias       localhost.@l_domainname@
@@ -31,3 +35,34 @@ NameVirtualHost 127.0.0.1:80
     </Directory>
 </VirtualHost>
 
+<IfModule mod_ssl.c>
+<VirtualHost 127.0.0.1:443>
+    ServerName        @l_hostname@.@l_domainname@
+    ServerAlias       localhost.@l_domainname@
+    ServerAdmin       root@localhost.@l_domainname@
+    ServerSignature   on
+
+    DocumentRoot @l_prefix@/share/apache/htdocs
+    <Directory @l_prefix@/share/apache/htdocs>
+        Options       Indexes FollowSymLinks MultiViews
+        AllowOverride none
+        Order         allow,deny
+        Allow         from all
+    </Directory>
+
+    ScriptAlias /cgi-bin @l_prefix@/cgi
+    <Directory @l_prefix@/cgi>
+        Options       Indexes FollowSymLinks MultiViews ExecCGI
+        AllowOverride None
+        Order         allow,deny
+        Allow         from all
+    </Directory>
+
+    SSLEngine             on
+    SSLCertificateFile    @l_prefix@/etc/apache/ssl.crt/snakeoil-rsa.crt
+    SSLCertificateKeyFile @l_prefix@/etc/apache/ssl.key/snakeoil-rsa.key
+    SSLCertificateFile    @l_prefix@/etc/apache/ssl.crt/snakeoil-dsa.crt
+    SSLCertificateKeyFile @l_prefix@/etc/apache/ssl.key/snakeoil-dsa.key
+</VirtualHost>
+</IfModule>
+