{"id":31,"date":"2022-01-07T13:41:30","date_gmt":"2022-01-07T12:41:30","guid":{"rendered":"http:\/\/192.168.41.160:8081\/?p=31"},"modified":"2024-10-21T15:17:21","modified_gmt":"2024-10-21T13:17:21","slug":"nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching","status":"publish","type":"post","link":"https:\/\/timo-brunn.de\/index.php\/2022\/01\/07\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\/","title":{"rendered":"NGINX Reverse Proxy (+SSL Termination, IP Forwarding &#038; Proxy Caching)"},"content":{"rendered":"\n<div class=\"wp-block-columns alignwide is-layout-flex wp-container-core-columns-is-layout-3a88641f wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\"><div class=\"has-text-align-right wp-block-post-date\"><time datetime=\"2022-01-07T13:41:30+01:00\">Januar 7, 2022<\/time><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"Vorwort\">Vorwort<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Wie die meisten gr\u00f6\u00dferen Firmen nutze auch ich f\u00fcr diese Webseite und weitere Webdienste die ich anbiete einen Reverse Proxy.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Hierbei nutze ich einen nginx. Auf Vor- und Nachteile von nginx gegen\u00fcber seinen Konkurrenten gehen wir hier erstmal nicht ein. Ob es das passende Tool f\u00fcr Ihren Anwendungsfall ist, sollte vorher gepr\u00fcft werden.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-dots\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Vorbereitung\">Vorbereitung<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Als Betriebssysteme verwende ich in diesem Fall ein <strong>AlmaLinux 8.5<\/strong>. Die Anleitung kann aber mit kleinen Anpassungen auch auf anderen Linux Systemen angewendet werden.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>NGINX installieren:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo yum makecache\nsudo yum install nginx<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Mit folgendem Befehlt l\u00e4sst sich die Installierte nginx version ausgeben:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">nginx -v<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In meinem Fall ist die Ausgabe:<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"font-size:11px\"><code lang=\"bash\" class=\"language-bash\">nginx version: nginx\/1.14.1<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-black-color has-css-opacity has-black-background-color has-background is-style-dots\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Reverse-Proxy\">Reverse Proxy<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Hierf\u00fcr legen wir eine neue Konfigurationsdatei &#8222;root.conf&#8220; im Standard &#8222;include&#8220; Verzeichnis an:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo nano \/etc\/nginx\/conf.d\/root.conf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Hier m\u00fcssen wir jetzt folgende Konfiguration vornehmen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"nginx\" class=\"language-nginx\">server {\n     listen 80;\n     server_name sleepeehead.club;\n\n     location \/{\n          proxy_pass        http:\/\/192.168.43.26\/;\n     }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Hierbei z\u00e4hlt Folgendes:<br><strong>listen<\/strong> = Hier kann man den Port oder IP:Port eingeben auf den nginx lauscht<br><br><strong>server_name<\/strong> = Hier kommt die URL auf die dieser &#8222;Server&#8220; antwortet. Man kann mehrere mit einem Leerzeichen trennen.<br><br><strong>location<\/strong> = Gibt den Pfad an den der Client anfordert. In dem Beispiel oben gibt &#8222;\/&#8220; an das es sich um http:\/\/sleepehead.club\/ handelt.<br><br><strong>proxy_pass<\/strong> = gibt das Ziel an, an das die Daten weitergeleitet werden sollen.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity aligncenter is-style-dots\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"SSL-Termination\">SSL Termination<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">SSL Termination erfordert in nginx die gleiche Konfiguration wie ein einfacher nginx Webserver:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"nginx\" class=\"language-nginx\">server {\n     listen 443 ssl;\n     server_name sleepeehead.club;\n     ssl_certificate \/etc\/ssl\/certs\/pub.pem;\n     ssl_certificate_key \/etc\/ssl\/certs\/priv.pem;\n\n     location \/{\n          proxy_pass        http:\/\/192.168.43.26\/;\n     }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Hier haben wir jetzt unseren Lauschport auf 443 ge\u00e4ndert und nginx mitgeteilt das dieser Server ssl\/tls nutzen soll.<br><br><strong>ssl_certificate<\/strong> = Gibt den Pfad zum SSL Zertifikat an <br><strong>ssl_certificate_key<\/strong> = Gibt den Pfad zum SSL <strong><em>privaten Schl\u00fcssel<\/em><\/strong> an.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-dots\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"IP-Forwarding\">IP Forwarding<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Damit unser Backend Server wei\u00df von welcher IP-Adresse unser Client zugreift, m\u00fcssen wir den X-Forwarded-For Header setzen.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"nginx\" class=\"language-nginx\">server {\n     listen 443 ssl;\n     server_name sleepeehead.club;\n     ssl_certificate \/etc\/ssl\/certs\/pub.pem;\n     ssl_certificate_key \/etc\/ssl\/certs\/priv.pem;\n\n     location \/{\n          proxy_set_header  Host $host;\n          proxy_set_header  X-Real-IP $remote_addr;\n          proxy_set_header  X-Forwarded-For $remote_addr;\n          proxy_set_header  X-Forwarded-Host $remote_addr;\n          proxy_pass        http:\/\/192.168.43.26\/;\n     }\n}\n\n\n \n\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>proxy_set_header<\/strong> = setzt den angegebenen Header f\u00fcr das Backend.<br><br>Im Normalfall gen\u00fcgt es X-Forwarded-For zu setzen.<br>Weitere Infos hierzu: <a href=\"https:\/\/distinctplace.com\/2014\/04\/23\/story-behind-x-forwarded-for-and-x-real-ip-headers\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/distinctplace.com\/2014\/04\/23\/story-behind-x-forwarded-for-and-x-real-ip-headers\/<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-dots\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Proxy-Caching\">Proxy Caching<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Der Cache in nginx wird in einem Verzeichnis abgelegt, also m\u00fcssen wir dieses zuerst anlegen<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo mkdir \/srv\/nginx_cache\nsudo mkdir \/srv\/nginx_cache\/root\/\nsudo chown nginx: \/srv\/nginx_cache\/ -R\nsudo chmod 700 \/srv\/nginx_cache -R<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Danach muss der cache im nginx server hinterlegt werden<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"nginx\" class=\"language-nginx\">\nserver {\n     listen 443 ssl;\n     server_name sleepeehead.club;\n     ssl_certificate \/etc\/ssl\/certs\/pub.pem;\n     ssl_certificate_key \/etc\/ssl\/certs\/priv.pem;\n\n     proxy_cache_path \/srv\/nginx_cache\/root\/ levels=1:2 keys_zone=root_cache:10m max_size=512m inactive=60m use_temp_path=off;\n\n\n     location \/{\n          proxy_cache root_cache;\n          proxy_set_header  Host $host;\n          proxy_set_header  X-Real-IP $remote_addr;\n          proxy_set_header  X-Forwarded-For $remote_addr;\n          proxy_set_header  X-Forwarded-Host $remote_addr;\n          proxy_pass        http:\/\/192.168.43.26\/;\n     }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>proxy_cache_path<\/strong> = Gibt den Pfad und Gr\u00f6\u00dfe des Caches an<br><br><strong>levels <\/strong>= Das ist die Menge an Unterordnern, die erstellt werden.<br>Das sollte man basierend auf Dateisystem erh\u00f6hen oder eben nicht.<br><br><strong>keys_zone <\/strong>= Name der Key Zone und Gr\u00f6\u00dfe. Ein MB kann ca. 8 Tausend Keys Speichern.<br><br><strong>max_size<\/strong> = Maximale Gr\u00f6\u00dfe des Caches.<br><br><strong>inactive<\/strong> = Gibt an wie lange Dateien im Cache behalten werden. <br><br><strong>use_temp_path <\/strong>= Gibt an welcher Pfad als tempor\u00e4rer Pfad verwendet werden soll.<br>Wenn der Wert auf &#8222;off&#8220; steht werden diese im gleichen Verzeichnis gespeichert.<br><br><strong>proxy_cache<\/strong> = Gibt an welche Key Zone verwendet werden soll.<br><br>Siehe: <a rel=\"noreferrer noopener\" href=\"https:\/\/nginx.org\/en\/docs\/http\/ngx_http_proxy_module.html#proxy_cache_path\" target=\"_blank\">https:\/\/nginx.org\/en\/docs\/http\/ngx_http_proxy_module.html#proxy_cache_path<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Zus\u00e4tzlich k\u00f6nnte man noch angeben, dass der Cache Control Header ignoriert werden soll:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"nginx\" class=\"language-nginx\"> proxy_ignore_headers Cache-Control;\n proxy_cache_valid any 60m;<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-dots\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Abschluss\">Abschluss<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Zum Schluss am besten die Konfiguration einmal validieren<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo nginx -t<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Und dann den nginx einmal neu laden<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo systemctl reload nginx.service<\/code><\/pre>\n<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vorwort Wie die meisten gr\u00f6\u00dferen Firmen nutze auch ich f\u00fcr diese Webseite und weitere Webdienste die ich anbiete einen Reverse Proxy. Hierbei nutze ich einen nginx. Auf Vor- und Nachteile von nginx gegen\u00fcber seinen Konkurrenten gehen wir hier erstmal nicht ein. Ob es das passende Tool f\u00fcr Ihren Anwendungsfall ist, sollte vorher gepr\u00fcft werden. Vorbereitung [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,9,12,11,31,5,6,10,4],"tags":[23,17,15,14,19,25,16,20,26,22,21,18,24],"class_list":["post-31","post","type-post","status-publish","format-standard","hentry","category-almalinux","category-cache","category-german","category-language","category-linux","category-nginx","category-reverse-proxy","category-ssl-tls","category-webserver","tag-cache","tag-centos","tag-deutsch","tag-german","tag-ip-forwarding","tag-ip-weiterleitung","tag-nginx","tag-proxy","tag-proxy-cache","tag-proxy-caching","tag-reverse-proxy","tag-ssl-termination","tag-webserver"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Vorwort Wie die meisten gr\u00f6\u00dferen Firmen nutze auch ich f\u00fcr diese Webseite und weitere Webdienste die ich anbiete einen Reverse Proxy. Hierbei nutze ich einen nginx. Auf Vor- und Nachteile von nginx gegen\u00fcber seinen Konkurrenten gehen wir hier erstmal nicht ein. Ob es das passende Tool f\u00fcr Ihren Anwendungsfall ist, sollte vorher gepr\u00fcft werden. Vorbereitung\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"timo\"\/>\n\t<meta name=\"keywords\" content=\"cache,centos,deutsch,german,ip forwarding,ip weiterleitung,nginx,proxy,proxy cache,proxy caching,reverse proxy,ssl termination,webserver,almalinux,language,linux,ssl\/tls\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/timo-brunn.de\/index.php\/2022\/01\/07\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"de_DE\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Timo Brunn - IT-Service in Enterprise-Qualit\u00e4t\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"NGINX Reverse Proxy (+SSL Termination, IP Forwarding &amp; Proxy Caching) - Timo Brunn\" \/>\n\t\t<meta property=\"og:description\" content=\"Vorwort Wie die meisten gr\u00f6\u00dferen Firmen nutze auch ich f\u00fcr diese Webseite und weitere Webdienste die ich anbiete einen Reverse Proxy. Hierbei nutze ich einen nginx. Auf Vor- und Nachteile von nginx gegen\u00fcber seinen Konkurrenten gehen wir hier erstmal nicht ein. Ob es das passende Tool f\u00fcr Ihren Anwendungsfall ist, sollte vorher gepr\u00fcft werden. Vorbereitung\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/timo-brunn.de\/index.php\/2022\/01\/07\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/timo-brunn.de\/wp-content\/uploads\/2024\/09\/logo-e1726011270432.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/timo-brunn.de\/wp-content\/uploads\/2024\/09\/logo-e1726011270432.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2022-01-07T12:41:30+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-10-21T13:17:21+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"NGINX Reverse Proxy (+SSL Termination, IP Forwarding &amp; Proxy Caching) - Timo Brunn\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Vorwort Wie die meisten gr\u00f6\u00dferen Firmen nutze auch ich f\u00fcr diese Webseite und weitere Webdienste die ich anbiete einen Reverse Proxy. Hierbei nutze ich einen nginx. Auf Vor- und Nachteile von nginx gegen\u00fcber seinen Konkurrenten gehen wir hier erstmal nicht ein. Ob es das passende Tool f\u00fcr Ihren Anwendungsfall ist, sollte vorher gepr\u00fcft werden. Vorbereitung\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/timo-brunn.de\/wp-content\/uploads\/2024\/09\/logo-e1726011270432.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/2022\\\/01\\\/07\\\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\\\/#blogposting\",\"name\":\"NGINX Reverse Proxy (+SSL Termination, IP Forwarding & Proxy Caching) - Timo Brunn\",\"headline\":\"NGINX Reverse Proxy (+SSL Termination, IP Forwarding &#038; Proxy Caching)\",\"author\":{\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/author\\\/timo\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/timo-brunn.de\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/logo_tiny.jpg\",\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/#articleImage\",\"width\":100,\"height\":72},\"datePublished\":\"2022-01-07T13:41:30+01:00\",\"dateModified\":\"2024-10-21T15:17:21+02:00\",\"inLanguage\":\"de-DE\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/2022\\\/01\\\/07\\\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/2022\\\/01\\\/07\\\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\\\/#webpage\"},\"articleSection\":\"AlmaLinux, Cache, German, Language, Linux, NGINX, Reverse Proxy, SSL\\\/TLS, Webserver, cache, centos, deutsch, german, ip forwarding, IP weiterleitung, nginx, proxy, Proxy cache, proxy caching, reverse proxy, ssl termination, webserver\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/2022\\\/01\\\/07\\\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/timo-brunn.de#listItem\",\"position\":1,\"name\":\"Zu Hause\",\"item\":\"https:\\\/\\\/timo-brunn.de\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/category\\\/netzwerk\\\/#listItem\",\"name\":\"Netzwerk\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/category\\\/netzwerk\\\/#listItem\",\"position\":2,\"name\":\"Netzwerk\",\"item\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/category\\\/netzwerk\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/category\\\/netzwerk\\\/webserver\\\/#listItem\",\"name\":\"Webserver\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/timo-brunn.de#listItem\",\"name\":\"Zu Hause\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/category\\\/netzwerk\\\/webserver\\\/#listItem\",\"position\":3,\"name\":\"Webserver\",\"item\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/category\\\/netzwerk\\\/webserver\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/category\\\/netzwerk\\\/webserver\\\/nginx\\\/#listItem\",\"name\":\"NGINX\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/category\\\/netzwerk\\\/#listItem\",\"name\":\"Netzwerk\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/category\\\/netzwerk\\\/webserver\\\/nginx\\\/#listItem\",\"position\":4,\"name\":\"NGINX\",\"item\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/category\\\/netzwerk\\\/webserver\\\/nginx\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/2022\\\/01\\\/07\\\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\\\/#listItem\",\"name\":\"NGINX Reverse Proxy (+SSL Termination, IP Forwarding &#038; Proxy Caching)\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/category\\\/netzwerk\\\/webserver\\\/#listItem\",\"name\":\"Webserver\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/2022\\\/01\\\/07\\\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\\\/#listItem\",\"position\":5,\"name\":\"NGINX Reverse Proxy (+SSL Termination, IP Forwarding &#038; Proxy Caching)\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/category\\\/netzwerk\\\/webserver\\\/nginx\\\/#listItem\",\"name\":\"NGINX\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/#organization\",\"name\":\"Timo Brunn\",\"description\":\"IT-Service in Enterprise-Qualit\\u00e4t\",\"url\":\"https:\\\/\\\/timo-brunn.de\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/timo-brunn.de\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/logo_tiny.jpg\",\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/2022\\\/01\\\/07\\\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\\\/#organizationLogo\",\"width\":100,\"height\":72},\"image\":{\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/2022\\\/01\\\/07\\\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/instagram.com\\\/computerswithtimo\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/timo-brunn-a7954126a\\\/\",\"https:\\\/\\\/github.com\\\/ComputersWithTimo\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/author\\\/timo\\\/#author\",\"url\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/author\\\/timo\\\/\",\"name\":\"timo\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/2022\\\/01\\\/07\\\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0bf07e6eb632b47b5b77100e335a73eb2fbae15619aa71509ec109103cde09de?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"timo\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/2022\\\/01\\\/07\\\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\\\/#webpage\",\"url\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/2022\\\/01\\\/07\\\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\\\/\",\"name\":\"NGINX Reverse Proxy (+SSL Termination, IP Forwarding & Proxy Caching) - Timo Brunn\",\"description\":\"Vorwort Wie die meisten gr\\u00f6\\u00dferen Firmen nutze auch ich f\\u00fcr diese Webseite und weitere Webdienste die ich anbiete einen Reverse Proxy. Hierbei nutze ich einen nginx. Auf Vor- und Nachteile von nginx gegen\\u00fcber seinen Konkurrenten gehen wir hier erstmal nicht ein. Ob es das passende Tool f\\u00fcr Ihren Anwendungsfall ist, sollte vorher gepr\\u00fcft werden. Vorbereitung\",\"inLanguage\":\"de-DE\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/2022\\\/01\\\/07\\\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/author\\\/timo\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/index.php\\\/author\\\/timo\\\/#author\"},\"datePublished\":\"2022-01-07T13:41:30+01:00\",\"dateModified\":\"2024-10-21T15:17:21+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/#website\",\"url\":\"https:\\\/\\\/timo-brunn.de\\\/\",\"name\":\"Timo Brunn\",\"description\":\"IT-Service in Enterprise-Qualit\\u00e4t\",\"inLanguage\":\"de-DE\",\"publisher\":{\"@id\":\"https:\\\/\\\/timo-brunn.de\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"NGINX Reverse Proxy (+SSL Termination, IP Forwarding & Proxy Caching) - Timo Brunn","description":"Vorwort Wie die meisten gr\u00f6\u00dferen Firmen nutze auch ich f\u00fcr diese Webseite und weitere Webdienste die ich anbiete einen Reverse Proxy. Hierbei nutze ich einen nginx. Auf Vor- und Nachteile von nginx gegen\u00fcber seinen Konkurrenten gehen wir hier erstmal nicht ein. Ob es das passende Tool f\u00fcr Ihren Anwendungsfall ist, sollte vorher gepr\u00fcft werden. Vorbereitung","canonical_url":"https:\/\/timo-brunn.de\/index.php\/2022\/01\/07\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\/","robots":"max-image-preview:large","keywords":"cache,centos,deutsch,german,ip forwarding,ip weiterleitung,nginx,proxy,proxy cache,proxy caching,reverse proxy,ssl termination,webserver,almalinux,language,linux,ssl\/tls","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/timo-brunn.de\/index.php\/2022\/01\/07\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\/#blogposting","name":"NGINX Reverse Proxy (+SSL Termination, IP Forwarding & Proxy Caching) - Timo Brunn","headline":"NGINX Reverse Proxy (+SSL Termination, IP Forwarding &#038; Proxy Caching)","author":{"@id":"https:\/\/timo-brunn.de\/index.php\/author\/timo\/#author"},"publisher":{"@id":"https:\/\/timo-brunn.de\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/timo-brunn.de\/wp-content\/uploads\/2024\/09\/logo_tiny.jpg","@id":"https:\/\/timo-brunn.de\/#articleImage","width":100,"height":72},"datePublished":"2022-01-07T13:41:30+01:00","dateModified":"2024-10-21T15:17:21+02:00","inLanguage":"de-DE","mainEntityOfPage":{"@id":"https:\/\/timo-brunn.de\/index.php\/2022\/01\/07\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\/#webpage"},"isPartOf":{"@id":"https:\/\/timo-brunn.de\/index.php\/2022\/01\/07\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\/#webpage"},"articleSection":"AlmaLinux, Cache, German, Language, Linux, NGINX, Reverse Proxy, SSL\/TLS, Webserver, cache, centos, deutsch, german, ip forwarding, IP weiterleitung, nginx, proxy, Proxy cache, proxy caching, reverse proxy, ssl termination, webserver"},{"@type":"BreadcrumbList","@id":"https:\/\/timo-brunn.de\/index.php\/2022\/01\/07\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/timo-brunn.de#listItem","position":1,"name":"Zu Hause","item":"https:\/\/timo-brunn.de","nextItem":{"@type":"ListItem","@id":"https:\/\/timo-brunn.de\/index.php\/category\/netzwerk\/#listItem","name":"Netzwerk"}},{"@type":"ListItem","@id":"https:\/\/timo-brunn.de\/index.php\/category\/netzwerk\/#listItem","position":2,"name":"Netzwerk","item":"https:\/\/timo-brunn.de\/index.php\/category\/netzwerk\/","nextItem":{"@type":"ListItem","@id":"https:\/\/timo-brunn.de\/index.php\/category\/netzwerk\/webserver\/#listItem","name":"Webserver"},"previousItem":{"@type":"ListItem","@id":"https:\/\/timo-brunn.de#listItem","name":"Zu Hause"}},{"@type":"ListItem","@id":"https:\/\/timo-brunn.de\/index.php\/category\/netzwerk\/webserver\/#listItem","position":3,"name":"Webserver","item":"https:\/\/timo-brunn.de\/index.php\/category\/netzwerk\/webserver\/","nextItem":{"@type":"ListItem","@id":"https:\/\/timo-brunn.de\/index.php\/category\/netzwerk\/webserver\/nginx\/#listItem","name":"NGINX"},"previousItem":{"@type":"ListItem","@id":"https:\/\/timo-brunn.de\/index.php\/category\/netzwerk\/#listItem","name":"Netzwerk"}},{"@type":"ListItem","@id":"https:\/\/timo-brunn.de\/index.php\/category\/netzwerk\/webserver\/nginx\/#listItem","position":4,"name":"NGINX","item":"https:\/\/timo-brunn.de\/index.php\/category\/netzwerk\/webserver\/nginx\/","nextItem":{"@type":"ListItem","@id":"https:\/\/timo-brunn.de\/index.php\/2022\/01\/07\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\/#listItem","name":"NGINX Reverse Proxy (+SSL Termination, IP Forwarding &#038; Proxy Caching)"},"previousItem":{"@type":"ListItem","@id":"https:\/\/timo-brunn.de\/index.php\/category\/netzwerk\/webserver\/#listItem","name":"Webserver"}},{"@type":"ListItem","@id":"https:\/\/timo-brunn.de\/index.php\/2022\/01\/07\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\/#listItem","position":5,"name":"NGINX Reverse Proxy (+SSL Termination, IP Forwarding &#038; Proxy Caching)","previousItem":{"@type":"ListItem","@id":"https:\/\/timo-brunn.de\/index.php\/category\/netzwerk\/webserver\/nginx\/#listItem","name":"NGINX"}}]},{"@type":"Organization","@id":"https:\/\/timo-brunn.de\/#organization","name":"Timo Brunn","description":"IT-Service in Enterprise-Qualit\u00e4t","url":"https:\/\/timo-brunn.de\/","logo":{"@type":"ImageObject","url":"https:\/\/timo-brunn.de\/wp-content\/uploads\/2024\/09\/logo_tiny.jpg","@id":"https:\/\/timo-brunn.de\/index.php\/2022\/01\/07\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\/#organizationLogo","width":100,"height":72},"image":{"@id":"https:\/\/timo-brunn.de\/index.php\/2022\/01\/07\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\/#organizationLogo"},"sameAs":["https:\/\/instagram.com\/computerswithtimo","https:\/\/www.linkedin.com\/in\/timo-brunn-a7954126a\/","https:\/\/github.com\/ComputersWithTimo\/"]},{"@type":"Person","@id":"https:\/\/timo-brunn.de\/index.php\/author\/timo\/#author","url":"https:\/\/timo-brunn.de\/index.php\/author\/timo\/","name":"timo","image":{"@type":"ImageObject","@id":"https:\/\/timo-brunn.de\/index.php\/2022\/01\/07\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/0bf07e6eb632b47b5b77100e335a73eb2fbae15619aa71509ec109103cde09de?s=96&d=mm&r=g","width":96,"height":96,"caption":"timo"}},{"@type":"WebPage","@id":"https:\/\/timo-brunn.de\/index.php\/2022\/01\/07\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\/#webpage","url":"https:\/\/timo-brunn.de\/index.php\/2022\/01\/07\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\/","name":"NGINX Reverse Proxy (+SSL Termination, IP Forwarding & Proxy Caching) - Timo Brunn","description":"Vorwort Wie die meisten gr\u00f6\u00dferen Firmen nutze auch ich f\u00fcr diese Webseite und weitere Webdienste die ich anbiete einen Reverse Proxy. Hierbei nutze ich einen nginx. Auf Vor- und Nachteile von nginx gegen\u00fcber seinen Konkurrenten gehen wir hier erstmal nicht ein. Ob es das passende Tool f\u00fcr Ihren Anwendungsfall ist, sollte vorher gepr\u00fcft werden. Vorbereitung","inLanguage":"de-DE","isPartOf":{"@id":"https:\/\/timo-brunn.de\/#website"},"breadcrumb":{"@id":"https:\/\/timo-brunn.de\/index.php\/2022\/01\/07\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\/#breadcrumblist"},"author":{"@id":"https:\/\/timo-brunn.de\/index.php\/author\/timo\/#author"},"creator":{"@id":"https:\/\/timo-brunn.de\/index.php\/author\/timo\/#author"},"datePublished":"2022-01-07T13:41:30+01:00","dateModified":"2024-10-21T15:17:21+02:00"},{"@type":"WebSite","@id":"https:\/\/timo-brunn.de\/#website","url":"https:\/\/timo-brunn.de\/","name":"Timo Brunn","description":"IT-Service in Enterprise-Qualit\u00e4t","inLanguage":"de-DE","publisher":{"@id":"https:\/\/timo-brunn.de\/#organization"}}]},"og:locale":"de_DE","og:site_name":"Timo Brunn - IT-Service in Enterprise-Qualit\u00e4t","og:type":"article","og:title":"NGINX Reverse Proxy (+SSL Termination, IP Forwarding &amp; Proxy Caching) - Timo Brunn","og:description":"Vorwort Wie die meisten gr\u00f6\u00dferen Firmen nutze auch ich f\u00fcr diese Webseite und weitere Webdienste die ich anbiete einen Reverse Proxy. Hierbei nutze ich einen nginx. Auf Vor- und Nachteile von nginx gegen\u00fcber seinen Konkurrenten gehen wir hier erstmal nicht ein. Ob es das passende Tool f\u00fcr Ihren Anwendungsfall ist, sollte vorher gepr\u00fcft werden. Vorbereitung","og:url":"https:\/\/timo-brunn.de\/index.php\/2022\/01\/07\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\/","og:image":"https:\/\/timo-brunn.de\/wp-content\/uploads\/2024\/09\/logo-e1726011270432.png","og:image:secure_url":"https:\/\/timo-brunn.de\/wp-content\/uploads\/2024\/09\/logo-e1726011270432.png","article:published_time":"2022-01-07T12:41:30+00:00","article:modified_time":"2024-10-21T13:17:21+00:00","twitter:card":"summary_large_image","twitter:title":"NGINX Reverse Proxy (+SSL Termination, IP Forwarding &amp; Proxy Caching) - Timo Brunn","twitter:description":"Vorwort Wie die meisten gr\u00f6\u00dferen Firmen nutze auch ich f\u00fcr diese Webseite und weitere Webdienste die ich anbiete einen Reverse Proxy. Hierbei nutze ich einen nginx. Auf Vor- und Nachteile von nginx gegen\u00fcber seinen Konkurrenten gehen wir hier erstmal nicht ein. Ob es das passende Tool f\u00fcr Ihren Anwendungsfall ist, sollte vorher gepr\u00fcft werden. Vorbereitung","twitter:image":"https:\/\/timo-brunn.de\/wp-content\/uploads\/2024\/09\/logo-e1726011270432.png"},"aioseo_meta_data":{"post_id":"31","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2024-09-10 23:18:41","updated":"2025-06-04 04:26:10","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/timo-brunn.de\" title=\"Zu Hause\">Zu Hause<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/timo-brunn.de\/index.php\/category\/netzwerk\/\" title=\"Netzwerk\">Netzwerk<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/timo-brunn.de\/index.php\/category\/netzwerk\/webserver\/\" title=\"Webserver\">Webserver<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/timo-brunn.de\/index.php\/category\/netzwerk\/webserver\/nginx\/\" title=\"NGINX\">NGINX<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tNGINX Reverse Proxy (+SSL Termination, IP Forwarding &amp; Proxy Caching)\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Zu Hause","link":"https:\/\/timo-brunn.de"},{"label":"Netzwerk","link":"https:\/\/timo-brunn.de\/index.php\/category\/netzwerk\/"},{"label":"Webserver","link":"https:\/\/timo-brunn.de\/index.php\/category\/netzwerk\/webserver\/"},{"label":"NGINX","link":"https:\/\/timo-brunn.de\/index.php\/category\/netzwerk\/webserver\/nginx\/"},{"label":"NGINX Reverse Proxy (+SSL Termination, IP Forwarding &#038; Proxy Caching)","link":"https:\/\/timo-brunn.de\/index.php\/2022\/01\/07\/nginx-reverse-proxy-ssl-termination-ip-forwarding-proxy-caching\/"}],"_links":{"self":[{"href":"https:\/\/timo-brunn.de\/index.php\/wp-json\/wp\/v2\/posts\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/timo-brunn.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/timo-brunn.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/timo-brunn.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/timo-brunn.de\/index.php\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":17,"href":"https:\/\/timo-brunn.de\/index.php\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"predecessor-version":[{"id":280,"href":"https:\/\/timo-brunn.de\/index.php\/wp-json\/wp\/v2\/posts\/31\/revisions\/280"}],"wp:attachment":[{"href":"https:\/\/timo-brunn.de\/index.php\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/timo-brunn.de\/index.php\/wp-json\/wp\/v2\/categories?post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/timo-brunn.de\/index.php\/wp-json\/wp\/v2\/tags?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}