HTTPS, Proxy und Webhooks in Apache

393
Tom Damon

Ich arbeite mit einem Kunden zusammen, der einen Apache-Server für die Verwendung von https und eines Proxys konfiguriert hat, aber wir erhalten keine Informationen von Webhooks. Was müssen wir zur Konfiguration hinzufügen, damit http-Rückrufe funktionieren können?

<IfModule mod_ssl.c> RequestHeader set X-Forwarded-Proto 'https' <VirtualHost _default_:443> ServerAdmin webmaster@localhost DocumentRoot /home/xxx/ui/current <Directory /home/xxx/ui/current> Options FollowSymlinks AllowOverride none Require all granted </Directory>  <Directory "/home/xxx/src/static"> Options FollowSymLinks AllowOverride None Require all granted </Directory>  ## Proxy rules ProxyRequests Off ProxyPass /ws ws://127.0.0.1:8001 ProxyPassReverse ws://127.0.0.1:8001 ## Rewrite rules RewriteEngine On RewriteRule ^/api/(static|sd)/?$ /api/static/docs/ [R,L] RewriteRule ^/api/static(.*) /home/xxx/src/static$1 [L] RewriteRule ^/api(|/|/doc|/docs)$ /api/docs/ [R,L] RewriteRule ^/api(/(.*))? http://localhost:8000/api$1 [P,L] RewriteCond % !^/ws/ RewriteCond % !-f RewriteCond % !-d RewriteRule ^ /index.html [L,NS] ErrorLog $/error.log CustomLog $/access.log combined # SSL Engine Switch: # Enable/Disable SSL for this virtual host. SSLEngine on SSLCertificateFile /etc/apache2/ssl/server.crt 
0

0 Antworten auf die Frage