linux:anwendungen:nextcloud:webserver:apache2
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| linux:anwendungen:nextcloud:webserver:apache2 [2023/10/11 14:38] – angelegt max | linux:anwendungen:nextcloud:webserver:apache2 [Unbekanntes Datum] (aktuell) – Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1 | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | ====== Die Konfiguration von Apache2 für eine Nextcloud Instanz ====== | ||
| + | |||
| + | Im folgenden wird eine HTTPS Konfiguration für einen Aapache2 Webserver aufgezeigt: | ||
| + | |||
| + | Zeilen welche mit "# PLEASE CHANGE" | ||
| + | |||
| + | |||
| + | / | ||
| + | <code bash> | ||
| + | |||
| + | < | ||
| + | SSLEngine on | ||
| + | DocumentRoot / | ||
| + | ServerName nextcloud.nikomax.de # PLEASE CHANGE | ||
| + | Protocols http/1.1 | ||
| + | LoadModule remoteip_module modules/ | ||
| + | RemoteIPHeader X-Forwarded-For | ||
| + | RemoteIPTrustedProxy 10.0.10.1 # PLEASE CHANGE | ||
| + | Header always set Strict-Transport-Security " | ||
| + | #Header edit Set-Cookie ^(.*)$ " | ||
| + | < | ||
| + | SSLOptions +StdEnvVars | ||
| + | SetHandler proxy: | ||
| + | </ | ||
| + | <Proxy " | ||
| + | # we must declare a parameter in here (doesn' | ||
| + | # it'll not register the proxy ahead of time | ||
| + | ProxySet disablereuse=off | ||
| + | # Note: If you configure php-fpm to use the "pm = ondemand" | ||
| + | #then use " | ||
| + | </ | ||
| + | #Alias /nextcloud "/ | ||
| + | ProxyPass /push/ws ws:// | ||
| + | ProxyPass /push/ http:// | ||
| + | ProxyPassReverse /push/ http:// | ||
| + | < | ||
| + | Options +FollowSymlinks | ||
| + | AllowOverride All | ||
| + | Require all granted | ||
| + | < | ||
| + | Dav off | ||
| + | </ | ||
| + | SetEnv HOME / | ||
| + | SetEnv HTTP_HOME / | ||
| + | </ | ||
| + | ErrorLog / | ||
| + | CustomLog / | ||
| + | # ServerAlias nextcloud.bitbone.de **# PLEASE CHANGE and UNCOMMENT IF NEEDED** | ||
| + | SSLCertificateFile / | ||
| + | SSLCertificateKeyFile / | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | <WRAP center round info 60%> | ||
| + | Falls nur diese Konfiguration vorgenommen wird, ist der Server nur per HTTPS erreichbar. Das heißt eine unverschlüsselte Verbindung per HTTP wird auf der Standard-Apache2 Seite landen oder gar nichts anzeigen! | ||
| + | </ | ||
