summaryrefslogtreecommitdiff
path: root/files/vhosts.d/00_default_centos_vhost.conf
blob: 315fa1340f512d74f0ce5b9a45deb6c0a9835d60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# ###########################################################
# # copyleft 2008 immerda.ch
# ###########################################################
# ### this file is managed by PUPPET                     ####
# ### only modify in svn or you will loose the changes ! ####
# ###########################################################

NameVirtualHost *:80

<VirtualHost *:80>
	DocumentRoot /var/www/html

    RewriteEngine on
      RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
      RewriteRule .* - [F]
    ServerSignature Off
</VirtualHost>

<VirtualHost _default_:443>
	DocumentRoot /var/www/html

	SSLEngine on

    SSLCipherSuite HIGH:MEDIUM:!ADH:-SSLv2
 
    SSLCertificateFile /etc/pki/tls/certs/localhost.crt
    SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
    <Files ~ "\.(cgi|shtml|phtml|php3?)$">
        SSLOptions +StdEnvVars
    </Files>

    RewriteEngine on
      RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
      RewriteRule .* - [F]
    ServerSignature Off

</VirtualHost>

# vim: ts=4 filetype=apache