ich habe ein Problem bei der Erstellung einer config file für Apache2. Bisher hat immer alles funktioniert nur die reverse proxys machen mir etwas Probleme.
Ich habe einen Nextcloud signaling server aufgesetzt und für die Konfiguration des Apache webservers an folgende Anleitung gehalten https://kaamoscreations.com/blog/complete-guide-how-setup-nextcloud-spreed-signaling-server-ie-talk-high-performance-backend.
- Code: Select all
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin admin@localhost
ServerName localhost
ServerAlias signaling.your.domain
SSLEngine on
# Enable http2
Protocols h2 http/1.1
# Use HSTS
Header always set Strict-Transport-Security "max-age=63072000; preload"
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
ProxyPass "/standalone-signaling/""ws://127.0.0.1:8080/"
RewriteEngine On
# Websocket connections from the clients.
RewriteRule ^/standalone-signaling/spreed$ - [L]
# Backend connections from Nextcloud.
RewriteRule ^/standalone-signaling/api/(.*) http://127.0.0.1:8080/api/$1 [L,P]
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
</IfModule>
Das ganze lässt sich aktivieren und der webserver auch neu starten. Nur wenn ich dann Certbot starte bekomme ich folgende Meldung
- Code: Select all
Certbot doesn't know how to automatically configure the web server on this system. However, it can still get a certificate for you. Please run "certbot certonly" to do so. You'll need to manually configure your web server to use the resulting certificate.
Bisher ist diese Meldung nicht aufgetaucht und Certbot hat mir immer brav Zertifikate ausgestellt. Daher gehe ich davon aus, dass ich etwas vermasselt habe.
Gibt es hier jemanden der sich diesbezüglich etwas besser auskennt und mir weiterhelfen würde? Ich wäre sehr Dankbar für die Hilfe!