Nextcloud Server hinter einem Nginx Reverse Proxy Server: Unterschied zwischen den Versionen

Aus Privates Wiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 10: Zeile 10:
     Options +FollowSymlinks
     Options +FollowSymlinks
     AllowOverride All
     AllowOverride All
  Require all granted
    Require all granted
  <IfModule mod_dav.c>
    <IfModule mod_dav.c>
    Dav off
      Dav off
  </IfModule>
    </IfModule>
  SetEnv HOME /var/www/nextcloud
    SetEnv HOME /var/www/nextcloud
  SetEnv HTTP_HOME /var/www/nextcloud
    SetEnv HTTP_HOME /var/www/nextcloud
   </Directory>
   </Directory>
   ErrorLog ${APACHE_LOG_DIR}/error.log
   ErrorLog ${APACHE_LOG_DIR}/error.log

Version vom 10. Mai 2023, 12:54 Uhr

  1. create new conf
nano /etc/apache2/sites-available/nextcloud.conf 
<VirtualHost *:80> ServerAdmin master@domain.com DocumentRoot /var/www/nextcloud/ ServerName demo.domain.com ServerAlias www.demo.domain.com Alias /nextcloud "/var/www/nextcloud/"
<Directory /var/www/nextcloud/> Options +FollowSymlinks AllowOverride All Require all granted <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/nextcloud SetEnv HTTP_HOME /var/www/nextcloud </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>
  1. neuer Eintrag mit Anweisungen
  2. :das ist ein test
mit 3 Zeilen
das ist die 3. Zeile