summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-04-08 08:35:22 +0000
committerintrigeri <intrigeri@boum.org>2016-04-08 08:35:22 +0000
commite4c13870b17ee1ee813fb06229952ffacbeb5816 (patch)
treeb19773724efb9717973cbb25853131e071d6a168
parent5084d4a5c04aa884d22fc61477c5ccd765312a5c (diff)
Provide an example Apache config snippet for the setup that will (likely) be the most common soon.
refs: #11334
-rw-r--r--wiki/src/contribute/how/mirror.mdwn21
1 files changed, 20 insertions, 1 deletions
diff --git a/wiki/src/contribute/how/mirror.mdwn b/wiki/src/contribute/how/mirror.mdwn
index a66b294..e781456 100644
--- a/wiki/src/contribute/how/mirror.mdwn
+++ b/wiki/src/contribute/how/mirror.mdwn
@@ -134,7 +134,26 @@ context, this requires a certificate that is considered valid by
mainstream web browsers; you can get such a certificate free of charge,
from [Let's Encrypt](https://letsencrypt.org/) for example.
-#### Apache configuration example using your own domain and HTTPS
+#### Apache configuration example using your own domain
+
+ <VirtualHost YOUR_WEBSERVER_IP:80>
+ ServerName yourdomain.org
+ ServerAlias dl.amnesia.boum.org
+ ServerAlias *.dl.amnesia.boum.org
+ ServerAdmin YOUR_EMAIL
+
+ DocumentRoot /var/www/YOUR_PATH/
+ <Directory /var/www/YOUR_PATH/>
+ Options Indexes
+ FileETag None
+ AllowOverride None
+ IndexIgnore README.html
+ IndexOptions FancyIndexing FoldersFirst IgnoreCase NameWidth=50
+ IndexOrderDefault Descending Date
+ </Directory>
+ </VirtualHost>
+
+And if you want to enable HTTPS:
<VirtualHost YOUR_WEBSERVER_IP:80>
ServerName yourdomain.org