I can test without the custom configuration, because i’m on a isolated network.
Here is my apache configuration :
------------------------------------------------------- apache2.yml --------------------------------------------------------------------------
services:
apache:
image: httpd:latest
restart: unless-stopped
container_name: apache-proxy
ports:
- 80:80
- 443:443
volumes:
- “/var/run/docker.sock:/var/run/docker.sock”
- “/opt/apache2/conf:/usr/local/apache2/conf”
- “/opt/apache2/conf/extra/httpd-ssl.conf:/usr/local/apache2/conf/extra/httpd-ssl.conf”
- “/opt/apache2/conf/wildcard_symta_fr.key:/usr/local/apache2/conf/private/wildcard_symta_fr.key”
- “/opt/apache2/conf/wildcard_symta_fr.crt:/usr/local/apache2/conf/private/wildcard_symta_fr.crt”
- “/opt/apache2/conf/IntermediateCA:/usr/local/apache2/conf/private/IntermediateCA”
networks:
- frontend-net
- default
healthcheck:
test: ["CMD-SHELL", "curl --fail http://localhost:2019/metrics || exit 1"]
start_period: 20s
interval: 20s
timeout: 5s
retries: 3
networks:
default:
name: seatable-compose_default
frontend-net:
name: frontend-net
----------------------------------------------------------------------------- end yml----------------------------------------------------------
--------------------------------------------------- httpd-ssl.conf--------------------------------------------------------------------
<VirtualHost *:80>
#Information sur le serveur
ServerAdmin vincent.dousset@symta.fr
ServerName seatablev5.symta.fr
Redirect / https://seatablev5.symta.fr
ServerAdmin vincent.dousset@symta-pieces.fr
ServerName seatablev5.symta.fr
DocumentRoot /usr/local/apache2
Order Deny,Allow
Deny from all
Options None
AllowOverride None
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
SSLEngine on
SSLCertificateFile ./conf/wildcard_symta_fr.crt
SSLCertificateKeyFile ./conf/private/wildcard_symta_fr.key
SSLCertificateChainFile ./conf/IntermediateCA.crt
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
# MSIE 7 and newer should be able to use keepalive
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
#Reverse proxy conf seatable
SetEnvIf Cookie "(^|;\ *)csrftoken=([^;\ ]+)" csrftoken=$2
RequestHeader set X-CSRFToken "%{csrftoken}e"
ProxyPreserveHost On
AllowEncodedSlashes On
ProxyPass / http://172.18.0.3:80/
ProxyPassReverse / http://172.18.0.3:80/
ProxyRequests Off
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS}
</VirtualHost>
SSLSessionCache “shmcb:logs/ssl_scache(512000)”
-------------------------------------------------------- end httpd-ssl.conf------------------------------------------------------------