-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.apache-vhost.conf.template
More file actions
45 lines (32 loc) · 999 Bytes
/
.apache-vhost.conf.template
File metadata and controls
45 lines (32 loc) · 999 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
36
37
38
39
40
41
42
43
44
45
<VirtualHost *:80>
# Available URL(s)
ServerName m.cyclestreets.net
# Logging
CustomLog /var/log/apache2/mobileweb_http-access.log combined
ErrorLog /var/log/apache2/mobileweb_http-error.log
# Redirect to HTTPS
Redirect Permanent / https://m.cyclestreets.net/
</VirtualHost>
# Main host, running SSL
<VirtualHost *:443>
# Available URL(s)
ServerName m.cyclestreets.net
# Certificates
SSLEngine on
SSLCertificateFile /etc/apache2/sslcerts/m.cyclestreets.net.crt
SSLCertificateKeyFile /etc/apache2/sslcerts/m.cyclestreets.net.key
SSLCACertificateFile /etc/apache2/sslcerts/m.cyclestreets.net.ca-bundle
# Logging
CustomLog /var/log/apache2/mobileweb-access.log combined
ErrorLog /var/log/apache2/mobileweb-error.log
# Where the files are
DocumentRoot /var/www/mobileweb/mobileweb/
# Allow access
<Directory />
Require all granted
</Directory>
# Allow redirects in .htaccess
<Directory />
AllowOverride FileInfo
</Directory>
</VirtualHost>