{"id":1176,"date":"2017-02-10T17:17:05","date_gmt":"2017-02-10T17:17:05","guid":{"rendered":"https:\/\/www.taywa.ch\/blog\/?p=1176"},"modified":"2018-08-13T15:48:20","modified_gmt":"2018-08-13T15:48:20","slug":"https-einstellungen-fuer-typo3-bei-nginx-vor-apache","status":"publish","type":"post","link":"https:\/\/www.taywa.ch\/blog\/typo3\/https-einstellungen-fuer-typo3-bei-nginx-vor-apache\/","title":{"rendered":"HTTPS Einstellungen f\u00fcr Typo3 bei NGINX vor Apache"},"content":{"rendered":"<p><strong>Problem:<\/strong><br \/>\nLiefert der Typo3 Webserver das HTML nicht direkt an den Browser, weil es noch Caching Frameworks \/ CDN&#8217;s oder NGINX dazwischen hat, versucht das Typo3 Backend, Rescourcen \u00fcber http nachzuladen. Diese werden vom Browser blockiert.<\/p>\n<p><strong>L\u00f6sung:<\/strong><br \/>\nUm SSL\/HTTPS f\u00fcr Typo3 \u00fcber Apache hinter nginX einzurichten muss man die Proxy-Einstellungen in der Typo3 Systemkonfiguration (Install Tool \/ LocalConfiguration.php) anpassen:<br \/>\n(Getestet mit Typo3 v6.2 LTS und v7.6 LTS)<\/p>\n<div class=\"php dean_ch\"><span class=\"st_h\">&#8218;SYS&#8216;<\/span> <span class=\"sy0\">=&gt;;<\/span> <a href=\"http:\/\/www.php.net\/array\"><span class=\"kw3\">array<\/span><\/a><span class=\"br0\">&#40;<\/span><br \/>\n&nbsp; &nbsp; <span class=\"co1\">\/\/ &#8230;<\/span><br \/>\n&nbsp; &nbsp; <span class=\"st_h\">&#8218;reverseProxyHeaderMultiValue&#8216;<\/span> <span class=\"sy0\">=&gt;;<\/span> <span class=\"st_h\">&#8218;last&#8216;<\/span><span class=\"sy0\">,<\/span><br \/>\n&nbsp; &nbsp; <span class=\"st_h\">&#8218;reverseProxyIP&#8216;<\/span> <span class=\"sy0\">=&gt;;<\/span> <span class=\"st_h\">&#8218;127.0.0.1&#8216;<\/span><span class=\"sy0\">,<\/span><br \/>\n&nbsp; &nbsp; <span class=\"st_h\">&#8218;reverseProxySSL&#8216;<\/span> <span class=\"sy0\">=&gt;;<\/span> <span class=\"st_h\">&#8218;*&#8216;<\/span><span class=\"sy0\">,<\/span><br \/>\n&nbsp; &nbsp; <span class=\"st_h\">&#8218;trustedHostsPattern&#8216;<\/span> <span class=\"sy0\">=&gt;;<\/span> <span class=\"st_h\">&#8218;.*\\.domainderseite\\.ch&#8216;<\/span><span class=\"sy0\">,<\/span><br \/>\n&nbsp; &nbsp; <span class=\"co1\">\/\/ &#8230;<\/span><br \/>\n<span class=\"br0\">&#41;<\/span><\/div>\n<p><strong>Hintergrund:<\/strong><br \/>\nNGINX kummuniziert intern \u00fcber http zu Apache. Die URL im Browser ist aber https. ohne die reverseProxy Einstellungen denkt typo3, es w\u00e4re im http modus und schreibt die entsprechnden Pfade ins HTML des backends.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problem: Liefert der Typo3 Webserver das HTML nicht direkt an den Browser, weil es noch Caching Frameworks \/ CDN&#8217;s oder NGINX dazwischen hat, versucht das Typo3 Backend, Rescourcen \u00fcber http nachzuladen. Diese werden vom Browser blockiert. L\u00f6sung: Um SSL\/HTTPS f\u00fcr Typo3 \u00fcber Apache hinter nginX einzurichten muss man die Proxy-Einstellungen in der Typo3 Systemkonfiguration (Install<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[60,3,136,171],"tags":[189,199,55,180],"class_list":["post-1176","post","type-post","status-publish","format-standard","hentry","category-apache","category-typo3","category-typo3-6","category-typo3-7-lts","tag-apache","tag-https","tag-localconf-php","tag-typo3"],"_links":{"self":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/1176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/comments?post=1176"}],"version-history":[{"count":10,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/1176\/revisions"}],"predecessor-version":[{"id":1330,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/1176\/revisions\/1330"}],"wp:attachment":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/media?parent=1176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/categories?post=1176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/tags?post=1176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}