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: file_get_contents(https://www.bsi.bund.de/SiteGlobals/Functions/RSSFeed/RSSNewsfeed/RSSNewsfeed_WID.xml): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(https://www.bsi.bund.de/SiteGlobals/Functions/RSSFeed/RSSNewsfessBSIFB/RSSNewsfeed_BuergerCERT.xml): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(http://feeds.joomla.org/JoomlaAnnouncements): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(http://feeds.joomla.org/JoomlaSecurityNews): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

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

We have 312 guests, 2 bots and no members online


2 bots:
2 x BOT for JCE