webapp/nextcloud: Updates on vhost
gitea/ansible-roles/pipeline/head This commit looks good
Details
gitea/ansible-roles/pipeline/head This commit looks good
Details
- Add comments for SSL settinfs - Remove userlog
This commit is contained in:
parent
4f0553c057
commit
18b450b8c3
|
@ -1,10 +1,14 @@
|
|||
<VirtualHost *:80>
|
||||
<VirtualHost *:80 *:443>
|
||||
ServerName {{ nextcloud_domains[0] }}
|
||||
|
||||
{% for domain_alias in nextcloud_domains[1:] %}
|
||||
ServerAlias {{ domain_alias }}
|
||||
{% endfor %}
|
||||
|
||||
# SSLEngine on
|
||||
# SSLCertificateFile /etc/letsencrypt/live/{{ nextcloud_instance_name }}/fullchain.pem
|
||||
# SSLCertificateKeyFile /etc/letsencrypt/live/{{ nextcloud_instance_name }}/privkey.pem
|
||||
|
||||
DocumentRoot {{ nextcloud_webroot }}/
|
||||
|
||||
<Directory {{ nextcloud_webroot }}/>
|
||||
|
@ -17,16 +21,21 @@
|
|||
</IfModule>
|
||||
</Directory>
|
||||
|
||||
# user - group (thanks to sesse@debian.org)
|
||||
# SSL Redirect
|
||||
# RewriteEngine On
|
||||
# RewriteCond %{HTTPS} !=on
|
||||
# RewriteCond %{HTTP:X-Forwarded-Proto} !=https
|
||||
# RewriteRule ^ https://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent]
|
||||
|
||||
# ITK
|
||||
AssignUserID {{ nextcloud_user }} {{ nextcloud_user }}
|
||||
|
||||
# LOG
|
||||
CustomLog /var/log/apache2/access.log vhost_combined
|
||||
CustomLog /home/{{ nextcloud_instance_name }}/log/access.log combined
|
||||
ErrorLog /home/{{ nextcloud_instance_name }}/log/error.log
|
||||
ErrorLog /var/log/apache2/error.log
|
||||
|
||||
# PHP
|
||||
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f {{ nextcloud_user }}"
|
||||
php_admin_value open_basedir "/usr/share/php:{{ nextcloud_home }}:/tmp"
|
||||
|
||||
|
||||
</VirtualHost>
|
Loading…
Reference in New Issue