wombat.ch

your Partner for Network Design and CMS

Apache

Nextclound 14 | 




 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
-
-
-
- Add a comment

RSS Feed


Warning: Invalid argument supplied for foreach() in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 39

neusten Links


Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/clients/client2/web2/web/j/modules/mod_quicklistweblinks/helper.php on line 78
many More Links »

part of ...

Linux Counter

Disqus

 

Learning Network

Seti@home & Boinc

myBonic

statistik

 


Who is Online

We have 362 guests and no members online

We have 391 guests, no bots and no members online