forked from plume/documentation
Merge pull request 'Apache config: fix a typo & allow to copy/paste' (#127) from pilou/documentation:doc_apache_add_slash into main
Reviewed-on: plume/documentation#127
This commit is contained in:
commit
1fc1873a54
1 changed files with 6 additions and 4 deletions
|
@ -57,19 +57,21 @@ Since Apache httpd 2.4.30, there's a new *experimental* module called [mod_md](h
|
|||
```apache
|
||||
MDBaseServer on
|
||||
MDCertificateAgreement https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf
|
||||
MDRequireHttps permanent # This means our http vhost will be automatically redirect to https
|
||||
ServerAdmin you@DOMAIN_NAME # This is required to register with Let's Encrypt
|
||||
# The next configuration directive means our http vhost will be automatically redirect to https
|
||||
MDRequireHttps permanent
|
||||
# ServerAdmin is required to register with Let's Encrypt
|
||||
ServerAdmin you@DOMAIN_NAME
|
||||
|
||||
MDomain DOMAIN_NAME auto
|
||||
|
||||
<VirtualHost *:80>
|
||||
ServerName DOMAIN_NAME
|
||||
<VirtualHost>
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:443>
|
||||
ServerName DOMAIN_NAME
|
||||
ProxyPass / http://127.0.0.1:7878/
|
||||
ProxyPassReverse / http://127.0.0.1:7878/
|
||||
SSLEngine On
|
||||
<VirtualHost>
|
||||
</VirtualHost>
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue