From 18c01097acfd437e8a8832e3c50f4b99914b5887 Mon Sep 17 00:00:00 2001 From: Bryan Roessler Date: Thu, 21 Oct 2021 15:35:26 -0400 Subject: [PATCH] Reverse proxy --- script-install-reverse-proxy | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/script-install-reverse-proxy b/script-install-reverse-proxy index a0fd4b08..d06a9f67 100644 --- a/script-install-reverse-proxy +++ b/script-install-reverse-proxy @@ -9,18 +9,23 @@ is_root dnf install -y nginx || exit $? cat <<- 'EOF' > /etc/nginx/conf.d/hartmanlab.conf + server { listen 80; - server_name localhost.cockpit; + listen [::]:80; + server_name baeldung.com; location / { proxy_pass http://127.0.0.1:9090/; + proxy_redirect http://127.0.0.1:9090/; } } server { listen 80; - server_name localhost.robot; + listen [::]:80; + server_name baeldung.com; location / { proxy_pass http://127.0.0.1:8888/; + proxy_redirect http://127.0.0.1:8888/; } } EOF