first commit

This commit is contained in:
DigitalInfinity committed 2022-11-29 18:09:10 +01:00
commit 44328d4172
5 files changed
+202

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerName {{ domainname }}
ServerAdmin webmaster@{{ domainname }}
DocumentRoot "{{ docroot }}"
<Directory "{{ docroot }}">
Options Indexes MultiViews Includes FollowSymLinks
AddOutputFilter Includes html
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/{{ domainname }}.error.log
CustomLog ${APACHE_LOG_DIR}/{{ domainname }}.access.log combined
SSLEngine on
SSLCertificateFile /etc/ssl/certs/{{ domainname }}.pem
SSLCertificateKeyFile /etc/ssl/private/{{ domainname }}.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
IncludeOptional /etc/apache2/conf-available/{{ domainname }}-ssl-optionalDirectives.conf
</VirtualHost>
</IfModule>
+15
View File
@@ -0,0 +1,15 @@
<VirtualHost *:80>
ServerName {{ domainname }}
ServerAdmin webmaster@{{ domainname }}
DocumentRoot "{{ docroot }}"
ErrorLog ${APACHE_LOG_DIR}/{{ domainname }}.error.log
CustomLog ${APACHE_LOG_DIR}/{{ domainname }}.access.log combined
#rewrite transparent to https, keep uri
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/\.well\-known/acme\-challenge/
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
</VirtualHost>
+1
View File
@@ -0,0 +1 @@
{{ optionalDirectives | default('')}}