wombat.ch

your Partner for Network Design and CMS

Message
  • Failed loading XML...
  • Failed loading XML... Opening and ending tag mismatch: link line 1 and head Entity 'hellip' not defined Entity 'hellip' not defined Entity 'hellip' not defined Entity 'hellip' not defined Entity 'hellip' not defined Entity 'hellip' not defined Entity 'hellip' not defined Entity 'raquo' not defined Entity 'nbsp' not defined Entity 'nbsp' not defined Entity 'nbsp' not defined Entity 'nbsp' not defined Entity 'nbsp' not defined Opening and ending tag mismatch: link line 1 and html Premature end of data in tag meta line 1
  • Failed loading XML... Opening and ending tag mismatch: link line 1 and head Opening and ending tag mismatch: img line 1 and a Opening and ending tag mismatch: a line 1 and div Opening and ending tag mismatch: input line 1 and p Opening and ending tag mismatch: input line 1 and form Opening and ending tag mismatch: input line 1 and div Opening and ending tag mismatch: p line 1 and div Opening and ending tag mismatch: form line 1 and div Opening and ending tag mismatch: hr line 1 and div Entity 'nbsp' not defined Entity 'agrave' not defined Entity 'nbsp' not defined Entity 'ntilde' not defined Entity 'ccedil' not defined Entity 'nbsp' not defined Entity 'nbsp' not defined Entity 'nbsp' not defined Entity 'aring' not defined Entity 'ecirc' not defined Entity 'acirc' not defined Entity 'nbsp' not defined Entity 'uuml' not defined Entity 'ccedil' not defined Entity 'nbsp' not defined Entity 'emsp' not defined Entity 'copy' not defined Opening and ending tag mismatch: br line 1 and p Opening and ending tag mismatch: br line 1 and div Opening and ending tag mismatch: p line 1 and div Opening and ending tag mismatch: div line 1 and body Opening and ending tag mismatch: hr line 1 and html Premature end of data in tag hr line 1

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

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 576 guests and no members online

We have 388 guests, no bots and no members online