/[apache]/trunk/dist/2.2/conf/vhosts.d/ssl-vhost.conf.example
Gentoo

Diff of /trunk/dist/2.2/conf/vhosts.d/ssl-vhost.conf.example

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 158 Revision 159
35 # 35 #
36 DocumentRoot "/var/www/example.com/htdocs-secure" 36 DocumentRoot "/var/www/example.com/htdocs-secure"
37 37
38 # This should match the DocumentRoot above 38 # This should match the DocumentRoot above
39 <Directory "/var/www/example.com/htdocs-secure"> 39 <Directory "/var/www/example.com/htdocs-secure">
40
41 # Some sane defaults - see httpd.conf for details 40 # Some sane defaults - see httpd.conf for details
42 Options Indexes FollowSymLinks 41 Options Indexes FollowSymLinks
43 AllowOverride None 42 AllowOverride None
44 43
45 Order allow,deny 44 Order allow,deny
46 Allow from all 45 Allow from all
47
48 </Directory> 46 </Directory>
49
50
51 47
52 # By default cgi-bin points to the global cgi-bin in /var/www/localhost 48 # By default cgi-bin points to the global cgi-bin in /var/www/localhost
53 # If you want site specific executable scripts, then uncomment this section 49 # If you want site specific executable scripts, then uncomment this section
54 # 50 #
55 # If you have enabled suexec, you will want to make sure that the cgi-bin 51 # If you have enabled suexec, you will want to make sure that the cgi-bin
68 # 64 #
69 # Set the user and group that scripts in this virtual host will run as. 65 # Set the user and group that scripts in this virtual host will run as.
70 <IfDefine SUEXEC> 66 <IfDefine SUEXEC>
71 SuexecUserGroup billybob users 67 SuexecUserGroup billybob users
72 </IfDefine> 68 </IfDefine>
73
74
75 69
76 # If you want custom error documents uncomment this section 70 # If you want custom error documents uncomment this section
77 # See /etc/apache2/modules.d/00_error_documents.conf for the file 71 # See /etc/apache2/modules.d/00_error_documents.conf for the file
78 # name to use for the various error types 72 # name to use for the various error types
79 73
100 # AllowOverride None 94 # AllowOverride None
101 # Order allow,deny 95 # Order allow,deny
102 # Allow from all 96 # Allow from all
103 #</Directory> 97 #</Directory>
104 98
105
106 # Create a logfile for this vhost 99 # Create a logfile for this vhost
107 CustomLog /var/log/apache2/example.com.ssl_log combined 100 CustomLog /var/log/apache2/example.com.ssl_log combined
108 101
109 # Turn on SSL 102 # Turn on SSL
110 SSLEngine on 103 SSLEngine on
111 104
112 # You will need a seperate key and certificate for every vhost 105 # You will need a seperate key and certificate for every vhost
113 SSLCertificateFile /etc/apache2/ssl/example.com.crt 106 SSLCertificateFile /etc/apache2/ssl/example.com.crt
114 SSLCertificateKeyFile /etc/apache2/ssl/example.com.key 107 SSLCertificateKeyFile /etc/apache2/ssl/example.com.key
115
116</VirtualHost> 108</VirtualHost>
117
118
119 109
120# If you want to force SSL for a virtualhost, you can uncomment this section 110# If you want to force SSL for a virtualhost, you can uncomment this section
121 111
122# Make sure there is a proper NameVirtualHost already setup, if not, you 112# Make sure there is a proper NameVirtualHost already setup, if not, you
123# can uncomment this one. See name-based-vhost.conf.example for details. 113# can uncomment this one. See name-based-vhost.conf.example for details.
124#NameVirtualHost *:80 114#NameVirtualHost *:80
125 115
126# You can optionally use the IP address here instead, if you want every 116# You can optionally use the IP address here instead, if you want every
127# connection to this IP address to be forced to SSL 117# connection to this IP address to be forced to SSL
128#<VirtualHost *:80> 118#<VirtualHost *:80>
129
130 # Match the ServerName from above 119 # Match the ServerName from above
131# ServerName example.com 120# ServerName example.com
132 121
133 # Add any necessary aliases if you are using name-based vhosts 122 # Add any necessary aliases if you are using name-based vhosts
134# ServerAlias www.example.com 123# ServerAlias www.example.com
135 124
136# Redirect permanent / https://example.com/ 125# Redirect permanent / https://example.com/
137
138#</Virtualhost> 126#</Virtualhost>
139 127
140# vim: ts=4 128# vim: ts=4 filetype=apache

Legend:
Removed from v.158  
changed lines
  Added in v.159

  ViewVC Help
Powered by ViewVC 1.1.20