Nextclound 14 |
-
-
- - - -
Quellen/Source:
- Nextcloud 14 Administration Manual |
- https://debian-administration.org/article/349/Setting_up_an_SSL_server_with_Apache2
- Change from http to https
-
-
-
-
steps | |||
1 | |||
# a2enmod ssl | |||
# systemctl restart apache2 | |||
# a2enmod rewrite | |||
# systemctl restart apache2 | |||
c | # vi /etc/apache2/sites-available/nextcloud.conf | ||
1 <VirtualHost *:80> 2 ServerName 10.147.42.85/ 3 Redirect permanent / https://10.147.42.85/ 4 </VirtualHost> 5 6 <VirtualHost *:443> 7 DocumentRoot "/var/www/html/nextcloud" 8 ServerName 10.147.42.85/ 9 <IfModule mod_headers.c> 10 Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains" 11 </IfModule> 12 TransferLog /var/log/apache2/nextcloud_access.log 13 ErrorLog /var/log/apache2/nextcloud_error.log 14 </VirtualHost> |
test it! <VirtualHost _default_:443> |
||
# apt install -y python-certbot-apache | |||
# certbot --apache | |||
# systemctl restart apache2 | |||
# apachectl -t Syntax OK |
|||
# apachectl configtest Syntax OK |
|||
# multitail /var/log/apache2/nextcloud_error.log /var/log/apache2/nextcloud_access.log /var/log/apache2/access.log /var/log/apache2/error.log | |||
test with | # telnet 10.147.42.85 443 Trying 10.147.42.85 Connected to 10.147.42.85 Escape character is '^]'. GET / |
-
- - - -
Quellen/Source:
- Nextcloud 14 Administration Manual |
- https://debian-administration.org/article/349/Setting_up_an_SSL_server_with_Apache2
- Change from http to https
-
-
-
-