zurück zum Proxy:
so wie es jetzt eingetragen ist funktioniert es auf
https://mydomain.de:3000 mit
http://mydomain.de:3000 nicht das ist aber ok - denn da kommt der Hinweis dass nur https funktioniert - warum auch immer ..)
Code: Alles auswählen
Listen 3000
VirtualHost VV.WW.XX.YY:3000>
DocumentRoot /opt/redmine/public
RailsEnv production
ServerName mydomain.de
ServerAlias www.mydomain.de
ServerAdmin webmaster@mydomain.de
<IfModule mod_http2.c>
Protocols h2 http/1.1
</IfModule>
<IfModule mod_brotli.c>
AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/xml text/css text/javascript application/x-javascript application/javascript application/xml application/xml+rss application/atom+xml application/json application/x-font-ttf application/vnd.ms-fontobject image/x-icon
</IfModule>
ErrorLog /var/log/ispconfig/httpd/mydomain.de/error.log
Alias /error/ "/var/www/mydomain.de/web/error/"
ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 405 /error/405.html
ErrorDocument 500 /error/500.html
ErrorDocument 502 /error/502.html
ErrorDocument 503 /error/503.html
<IfModule mod_ssl.c>
SSLEngine on
SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
# SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20[...]-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS
SSLHonorCipherOrder on
# <IfModule mod_headers.c>
# Header always add Strict-Transport-Security "max-age=15768000"
# </IfModule>
SSLCertificateFile /var/www/clients/client1/web947/ssl/mydomain.de-le.crt
SSLCertificateKeyFile /var/www/clients/client1/web947/ssl/mydomain.de-le.key
SSLUseStapling on
SSLStaplingResponderTimeout 5
SSLStaplingReturnResponderErrors off
</IfModule>
<Directory /opt/redmine/public>
# Clear PHP settings of this website
<FilesMatch ".+\.ph(p[345]?|t|tml)$">
SetHandler None
</FilesMatch>
Options +SymlinksIfOwnerMatch
AllowOverride All
Require all granted
<Files ~ '.php[s3-6]{0,1}$'>
Require all denied
</Files>
</Directory>
</VirtualHost>
<IfModule mod_ssl.c>
SSLStaplingCache shmcb:/var/run/ocsp(128000)
</IfModule>
<VirtualHost [WWWW:XXX:YYY:ZZZe::AA]:3000>
DocumentRoot /opt/redmine/public
RailsEnv production
ServerName mydomain.de
ServerAlias www.mydomain.de
ServerAdmin webmaster@mydomain.de
<IfModule mod_http2.c>
Protocols h2 http/1.1
</IfModule>
<IfModule mod_brotli.c>
AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/xml text/css text/javascript application/x-javascript application/javascript application/xml application/xml+rss application/atom+xml application/json application/x-font-ttf application/vnd.ms-fontobject image/x-icon
</IfModule>
ErrorLog /var/log/ispconfig/httpd/mydomain.de/error.log
Alias /error/ "/var/www/mydomain.de/web/error/"
ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 405 /error/405.html
ErrorDocument 500 /error/500.html
ErrorDocument 502 /error/502.html
ErrorDocument 503 /error/503.html
<IfModule mod_ssl.c>
SSLEngine on
SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
# SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE- [...] SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS
SSLHonorCipherOrder on
# <IfModule mod_headers.c>
# Header always add Strict-Transport-Security "max-age=15768000"
# </IfModule>
SSLCertificateFile /var/www/clients/client1/web947/ssl/mydomain.de-le.crt
SSLCertificateKeyFile /var/www/clients/client1/web947/ssl/mydomain.de-le.key
SSLUseStapling on
SSLStaplingResponderTimeout 5
SSLStaplingReturnResponderErrors off
</IfModule>
<Directory /opt/redmine/public>
# Clear PHP settings of this website
<FilesMatch ".+\.ph(p[345]?|t|tml)$">
SetHandler None
</FilesMatch>
Options +SymlinksIfOwnerMatch
AllowOverride All
Require all granted
<Files ~ '.php[s3-6]{0,1}$'>
Require all denied
</Files>
</Directory>
</VirtualHost>
<IfModule mod_ssl.c>
SSLStaplingCache shmcb:/var/run/ocsp(128000)
</IfModule>
Eigentlich müssten nun doch die Einträge für Port 80 und 443 in der meindedomain.de.vhost mit dem reverse Prox (siehe oben) eingetragen werden und es müsste funktionieren
da kommt aber
Code: Alles auswählen
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request
Reason: DNS lookup failure for: mydomain
Additionally, a 502 Bad Gateway error was encountered while trying to use an ErrorDocument to handle the request.
Reason: DNS lookup failure for: mydomain (Bemerkung ohne ".de")