Rev | Line | |
---|
[71] | 1 | <VirtualHost *:80>
|
---|
| 2 | ServerName mai.example.com
|
---|
| 3 | ServerAlias mai.example.com
|
---|
| 4 | RewriteEngine on
|
---|
| 5 | RewriteCond %{SERVER_NAME} =mai.example.com
|
---|
| 6 | RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
|
---|
| 7 | </VirtualHost>
|
---|
| 8 | <VirtualHost *:443>
|
---|
| 9 | ServerName mai.example.com
|
---|
| 10 | ServerAlias mai.example.com
|
---|
| 11 | SSLEngine on
|
---|
| 12 | SSLCertificateFile /usr/pkg/etc/letsencrypt/live/example.com/fullchain.pem
|
---|
| 13 | SSLCertificateKeyFile /usr/pkg/etc/letsencrypt/live/example.com/privkey.pem
|
---|
| 14 | ProxyRequests off
|
---|
| 15 | ProxyPass / http://127.0.0.1:5000/
|
---|
| 16 | ProxyPassReverse / http://127.0.0.1:5000/
|
---|
| 17 | ProxyPreserveHost On
|
---|
| 18 | </VirtualHost>
|
---|
| 19 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.