-
Notifications
You must be signed in to change notification settings - Fork 15
/
Apache-PHP-7-x64_vhost.conf
59 lines (43 loc) · 1.67 KB
/
Apache-PHP-7-x64_vhost.conf
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#-----------------------------------------------#
# Íà÷àëî áëîêà êîíôèãóðàöèè HTTP õîñòà
#-----------------------------------------------#
<VirtualHost *:%httpport%>
DocumentRoot "%hostdir%/web"
ServerName "%host%"
ServerAlias "%host%" %aliases%
ScriptAlias /cgi-bin/ "%hostdir%/cgi-bin/"
</VirtualHost>
#-----------------------------------------------#
# Êîíåö áëîêà êîíôèãóðàöèè HTTP õîñòà
#-----------------------------------------------#
#-----------------------------------------------#
# Íà÷àëî áëîêà êîíôèãóðàöèè HTTPS õîñòà
#-----------------------------------------------#
<IfModule ssl_module>
<VirtualHost *:%httpsport%>
DocumentRoot "%hostdir%/web"
ServerName "%host%"
ServerAlias "%host%" %aliases%
ScriptAlias /cgi-bin/ "%hostdir%/cgi-bin/"
SSLEngine on
#Header always set Strict-Transport-Security "max-age=94608000"
#SSLCACertificateFile ""
#SSLCertificateChainFile ""
SSLCertificateFile "%sprogdir%/userdata/config/cert_files/server.crt"
SSLCertificateKeyFile "%sprogdir%/userdata/config/cert_files/server.key"
SetEnvIf User-Agent ".*MSIE [1-5].*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
SetEnvIf User-Agent ".*MSIE [6-9].*" \
ssl-unclean-shutdown
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "%hostdir%/cgi-bin/">
SSLOptions +StdEnvVars
</Directory>
</VirtualHost>
</IfModule>
#-----------------------------------------------#
# Êîíåö áëîêà êîíôèãóðàöèè HTTPS õîñòà
#-----------------------------------------------#