maybe chmod 0644 'apache2/sites-available/000-default.conf'
maybe chmod 0644 'apache2/sites-available/001-nextcloud-ssl.conf'
maybe chmod 0644 'apache2/sites-available/001-nextcloud.conf'
+maybe chmod 0644 'apache2/sites-available/002-nextcloud-redir-ssl.conf'
maybe chmod 0644 'apache2/sites-available/default-include.conf'
maybe chmod 0644 'apache2/sites-available/default-ssl.conf'
maybe chmod 0644 'apache2/sites-available/include-nextcloud.conf'
maybe chmod 0644 'cron.d/apticron'
maybe chmod 0644 'cron.d/certbot'
maybe chmod 0644 'cron.d/greetings'
+maybe chmod 0644 'cron.d/nextcloud'
maybe chmod 0644 'cron.d/php'
maybe chmod 0644 'cron.d/sync-pkgs'
maybe chmod 0755 'cron.daily'
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
- Include sites-available/include-nextcloud.conf
+ ServerName cloud.uhu-banane.de
+
+ ServerAdmin webmaster@uhu-banane.de
+ DocumentRoot /var/www/nextcloud
+
+ ErrorLog ${APACHE_LOG_DIR}/nextcloud.error.log
+ CustomLog ${APACHE_LOG_DIR}/nextcloud.access.log full_combined
+
+ <Directory /var/www/nextcloud/>
+ Options +FollowSymlinks
+ AllowOverride All
+
+ <IfModule mod_dav.c>
+ Dav off
+ </IfModule>
+
+ SetEnv HOME /var/www/nextcloud
+ SetEnv HTTP_HOME /var/www/nextcloud
+
+ </Directory>
SSLEngine on
# MSIE 7 and newer should be able to use keepalive
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
+ <IfModule mod_headers.c>
+ Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
+ </IfModule>
+
</VirtualHost>
</IfModule>
-# vim: filetype=apache ts=8 sw=4 sts=4 sr noet
+# vim: filetype=apache ts=8 sw=8 sts=8 sr noet
<VirtualHost *:80>
- Include sites-available/include-nextcloud.conf
+ ServerName cloud.uhu-banane.de
+ ServerAlias cloud
+ ServerAlias cloud.brehm-berlin.de
+ ServerAlias cloud.brehm-online.com
+ ServerAlias cloud.brehm-online.eu
+ ServerAlias cloud.frankepedia.eu
+ ServerAlias cloud.hennig-berlin.org
+ ServerAlias cloud.uhu-banane.com
+ ServerAlias cloud.uhu-banane.eu
+ ServerAlias cloud.uhu-banane.net
+ ServerAlias cloud.uhu-banane.org
+ ServerAlias nextcloud
+ ServerAlias nextcloud.brehm-berlin.de
+ ServerAlias nextcloud.brehm-online.com
+ ServerAlias nextcloud.brehm-online.eu
+ ServerAlias nextcloud.frankepedia.eu
+ ServerAlias nextcloud.hennig-berlin.org
+ ServerAlias nextcloud.uhu-banane.com
+ ServerAlias nextcloud.uhu-banane.de
+ ServerAlias nextcloud.uhu-banane.eu
+ ServerAlias nextcloud.uhu-banane.net
+ ServerAlias nextcloud.uhu-banane.org
+
+ ServerAdmin webmaster@uhu-banane.de
+
+ ErrorLog ${APACHE_LOG_DIR}/nextcloud-redir.error.log
+ CustomLog ${APACHE_LOG_DIR}/nextcloud-redir.access.log full_combined
+
+ Redirect permanent / https://cloud.uhu-banane.de/
+
</VirtualHost>
-# vim: filetype=apache ts=4 sw=4 sts=4 sr noet
+# vim: filetype=apache ts=8 sw=8 sts=8 sr noet
--- /dev/null
+
+
+<IfModule mod_ssl.c>
+ <VirtualHost _default_:443>
+
+ ServerName nextcloud.uhu-banane.com
+ ServerAlias cloud
+ ServerAlias cloud.brehm-berlin.de
+ ServerAlias cloud.brehm-online.com
+ ServerAlias cloud.brehm-online.eu
+ ServerAlias cloud.frankepedia.eu
+ ServerAlias cloud.hennig-berlin.org
+ ServerAlias cloud.uhu-banane.com
+ ServerAlias cloud.uhu-banane.eu
+ ServerAlias cloud.uhu-banane.net
+ ServerAlias cloud.uhu-banane.org
+ ServerAlias nextcloud
+ ServerAlias nextcloud.brehm-berlin.de
+ ServerAlias nextcloud.brehm-online.com
+ ServerAlias nextcloud.brehm-online.eu
+ ServerAlias nextcloud.frankepedia.eu
+ ServerAlias nextcloud.hennig-berlin.org
+ ServerAlias nextcloud.uhu-banane.de
+ ServerAlias nextcloud.uhu-banane.eu
+ ServerAlias nextcloud.uhu-banane.net
+ ServerAlias nextcloud.uhu-banane.org
+
+ ServerAdmin webmaster@uhu-banane.de
+
+ ErrorLog ${APACHE_LOG_DIR}/nextcloud-redir.error.log
+ CustomLog ${APACHE_LOG_DIR}/nextcloud-redir.access.log full_combined
+
+ Redirect permanent / https://cloud.uhu-banane.de/
+
+ SSLEngine on
+
+ SSLCertificateFile /etc/letsencrypt/live/cloud.uhu-banane.de/fullchain.pem
+ SSLCertificateKeyFile /etc/letsencrypt/live/cloud.uhu-banane.de/privkey.pem
+
+ Include /etc/letsencrypt/options-ssl-apache.conf
+
+ #SSLCertificateChainFile /etc/apache2/ssl.crt/server-ca.crt
+
+ #SSLCACertificatePath /etc/ssl/certs/
+ #SSLCACertificateFile /etc/apache2/ssl.crt/ca-bundle.crt
+
+ #SSLCARevocationPath /etc/apache2/ssl.crl/
+ #SSLCARevocationFile /etc/apache2/ssl.crl/ca-bundle.crl
+
+ #SSLVerifyClient require
+ #SSLVerifyDepth 10
+
+ #SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
+
+ <FilesMatch "\.(cgi|shtml|phtml|php)$">
+ SSLOptions +StdEnvVars
+ </FilesMatch>
+ <Directory /usr/lib/cgi-bin>
+ SSLOptions +StdEnvVars
+ </Directory>
+
+ BrowserMatch "MSIE [2-6]" \
+ nokeepalive ssl-unclean-shutdown \
+ downgrade-1.0 force-response-1.0
+ # MSIE 7 and newer should be able to use keepalive
+ BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
+
+ <IfModule mod_headers.c>
+ Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
+ </IfModule>
+
+ </VirtualHost>
+</IfModule>
+
+# vim: filetype=apache ts=8 sw=8 sts=8 sr noet
--- /dev/null
+../sites-available/002-nextcloud-redir-ssl.conf
\ No newline at end of file
--- /dev/null
+# Cronjob for Nextcloud
+*/15 * * * * www-data php -f /var/www/nextcloud/cron.php
[opcache]
; Determines if Zend OPCache is enabled
;opcache.enable=0
+opcache.enable=1
; Determines if Zend OPCache is enabled for the CLI version of PHP
;opcache.enable_cli=0
+opcache.enable_cli=1
; The OPcache shared memory storage size.
;opcache.memory_consumption=64
+opcache.memory_consumption=128
; The amount of memory for interned strings in Mbytes.
;opcache.interned_strings_buffer=4
+opcache.interned_strings_buffer=8
; The maximum number of keys (scripts) in the OPcache hash table.
; Only numbers between 200 and 1000000 are allowed.
;opcache.max_accelerated_files=2000
+opcache.max_accelerated_files=10000
; The maximum percentage of "wasted" memory until a restart is scheduled.
;opcache.max_wasted_percentage=5
; memory storage allocation. ("1" means validate once per second, but only
; once per request. "0" means always validate)
;opcache.revalidate_freq=2
+opcache.revalidate_freq=1
; Enables or disables file search in include_path optimization
;opcache.revalidate_path=0
; If disabled, all PHPDoc comments are dropped from the code to reduce the
; size of the optimized code.
;opcache.save_comments=1
+opcache.save_comments=1
; If enabled, a fast shutdown sequence is used for the accelerated code
; Depending on the used Memory Manager this may cause some incompatibilities.
$dbpass='';
$basepath='';
$dbname='phpmyadmin';
-$dbserver='localhost';
+#$dbserver='localhost';
+$dbserver='sarah-v6.uhu-banane.de';
$dbport='3306';
$dbtype='mysql';