-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtemplate_apache_conf
More file actions
36 lines (30 loc) · 986 Bytes
/
template_apache_conf
File metadata and controls
36 lines (30 loc) · 986 Bytes
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
<VirtualHost *:80>
DocumentRoot WEBDIRPH/www.PLACEHOLDER
ServerName www.PLACEHOLDER
ErrorLog ${APACHE_LOG_DIR}/www.PLACEHOLDER-error_log
CustomLog ${APACHE_LOG_DIR}/www.PLACEHOLDER-access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAlias PLACEHOLDER
RedirectMatch permanent ^/(.*) http://www.PLACEHOLDER/$1
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName www.PLACEHOLDER
DocumentRoot WEBDIRPH/www.PLACEHOLDER
# Enable SSL for this virtual host.
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/www.PLACEHOLDER.crt
SSLCertificateKeyFile /etc/apache2/ssl/www.PLACEHOLDER.key
</VirtualHost>
</IfModule>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAlias PLACEHOLDER
RedirectMatch permanent ^/(.*) https://www.PLACEHOLDER/$1
# Enable SSL for this virtual host.
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/www.PLACEHOLDER.crt
SSLCertificateKeyFile /etc/apache2/ssl/www.PLACEHOLDER.key
</VirtualHost>
</IfModule>