43 lines
1.3 KiB
Django/Jinja
43 lines
1.3 KiB
Django/Jinja
<IfModule mod_ssl.c>
|
|
<Virtualhost *:443>
|
|
DocumentRoot /home/registrator/registrator
|
|
<Directory "/home/registrator/registrator">
|
|
#
|
|
# Possible values for the Options directive are "None", "All",
|
|
# or any combination of:
|
|
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
|
|
#
|
|
# Note that "MultiViews" must be named *explicitly* --- "Options All"
|
|
# doesn't give it to you.
|
|
#
|
|
# The Options directive is both complicated and important. Please see
|
|
# http://httpd.apache.org/docs/2.4/mod/core.html#options
|
|
# for more information.
|
|
#
|
|
Options Indexes FollowSymLinks
|
|
|
|
#
|
|
# AllowOverride controls what directives may be placed in .htaccess files.
|
|
# It can be "All", "None", or any combination of the keywords:
|
|
# AllowOverride FileInfo AuthConfig Limit
|
|
#
|
|
AllowOverride None
|
|
|
|
#
|
|
# Controls who can get stuff from this server.
|
|
#
|
|
AuthType openid-connect
|
|
Require valid-user
|
|
</Directory>
|
|
|
|
ServerName {{ dns_name }}
|
|
Include /etc/letsencrypt/options-ssl-apache.conf
|
|
SSLCertificateFile /etc/letsencrypt/live/{{dns_name}}/fullchain.pem
|
|
SSLCertificateKeyFile /etc/letsencrypt/live/{{dns_name}}/privkey.pem
|
|
</Virtualhost>
|
|
</IfModule>
|
|
<IfModule mod_ssl.c>
|
|
<Virtualhost *:80>
|
|
ServerName {{ dns_name }}
|
|
</Virtualhost>
|
|
</IfModule>
|