forked from yumin9822/zmirror-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apache2-http.conf
25 lines (20 loc) · 985 Bytes
/
apache2-http.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
<VirtualHost _default_:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerName yet-another-zmirror-site
# Force HTTPS
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
</IfModule>
ServerAdmin admin@localhost
ErrorLog ${APACHE_LOG_DIR}/zmirror_http_error.log
CustomLog ${APACHE_LOG_DIR}/zmirror_http_access.log combined
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet