reverse-proxy

nginx reverse proxy - how to serve multiple apps

佐手、 提交于 2020-07-22 04:40:09
问题 I am trying to build a reverse proxy with nginx to make all Is in my project reachable from single address. For a single service the configuration below works without problem /etc/nginx/sites-enabled/reverse-proxy.conf server { listen 80; listen [::]:80; location / { resolver 127.0.0.1; allow "x.x.x.x"; deny all; proxy_pass http://consul:8500; } } So when I call server's ip x.x.x.x in my browser I see the Consul UI and the URL showing x.x.x.x/ui/dc1 . Besides that, I see that the UI did

NGINX and Docker-Compose: host not found in upstream

感情迁移 提交于 2020-07-19 06:59:19
问题 I'm trying to get docker-compose to run an NGINX reverse-proxy and I'm running into an issue. I know that what I am attempting appears possible as it is outlined here: https://dev.to/domysee/setting-up-a-reverse-proxy-with-nginx-and-docker-compose-29jg and here: https://www.digitalocean.com/community/tutorials/how-to-secure-a-containerized-node-js-application-with-nginx-let-s-encrypt-and-docker-compose#step-2-%E2%80%94-defining-the-web-server-configuration My application is very simple - it

ProxyPassReverse doesn't rewrite Location (http header)

泄露秘密 提交于 2020-07-19 06:28:26
问题 I have an apache installed in a frontend server (server1), which is as reverse proxy. I have another server (server2) with tomcat that is running a webapp. I configured my reverse proxy (server1) like that: ProxyPass /app1/ ajp://server2:8009/app1/ ProxyPassReverse /app1/ https://www.external_domain_name.com/ When I connect to: https://www.external_domain_name.com/app1/ my web app is working properly. In some pages, the web app redirects me (302) to another page. Then, I am redirected to :

Forwarding Path to Origin in Cloudfront

白昼怎懂夜的黑 提交于 2020-07-08 00:36:56
问题 I am using cloudfront with a cache behavior for /apiA* pointing to OriginBdomain.com/apiB. I would like requests with path /apiA/examplePath to be forwarded to OriginB.com/apiB/examplePath however, requests for /apiA/examplePath are only being forwarded to OriginBdomain.com/apiB is it possible to forward the path as well? 来源: https://stackoverflow.com/questions/62584582/forwarding-path-to-origin-in-cloudfront

Forwarding Path to Origin in Cloudfront

送分小仙女□ 提交于 2020-07-08 00:36:33
问题 I am using cloudfront with a cache behavior for /apiA* pointing to OriginBdomain.com/apiB. I would like requests with path /apiA/examplePath to be forwarded to OriginB.com/apiB/examplePath however, requests for /apiA/examplePath are only being forwarded to OriginBdomain.com/apiB is it possible to forward the path as well? 来源: https://stackoverflow.com/questions/62584582/forwarding-path-to-origin-in-cloudfront

Forwarding Path to Origin in Cloudfront

本小妞迷上赌 提交于 2020-07-08 00:36:10
问题 I am using cloudfront with a cache behavior for /apiA* pointing to OriginBdomain.com/apiB. I would like requests with path /apiA/examplePath to be forwarded to OriginB.com/apiB/examplePath however, requests for /apiA/examplePath are only being forwarded to OriginBdomain.com/apiB is it possible to forward the path as well? 来源: https://stackoverflow.com/questions/62584582/forwarding-path-to-origin-in-cloudfront

nginx proxy_pass to a linked docker container

亡梦爱人 提交于 2020-07-04 06:25:56
问题 I have two docker containers with nginx. container1 is linked to container2. Docker then adds an entry to /etc/hosts which I entered into the nginx configuration like so: server { location ~ ^/some_url/(.*)$ { proxy_pass http://container1/$1; } } I can ping container1 from container2 , but nginx cannot resolve it: *1 no resolver defined to resolve container1 How can I proxy_pass a request to another docker container? 回答1: Use an upstream block instead of the container name directly upstream

nginx proxy_pass to a linked docker container

可紊 提交于 2020-07-04 06:22:11
问题 I have two docker containers with nginx. container1 is linked to container2. Docker then adds an entry to /etc/hosts which I entered into the nginx configuration like so: server { location ~ ^/some_url/(.*)$ { proxy_pass http://container1/$1; } } I can ping container1 from container2 , but nginx cannot resolve it: *1 no resolver defined to resolve container1 How can I proxy_pass a request to another docker container? 回答1: Use an upstream block instead of the container name directly upstream

Invalid token issuer when running keycloak behind proxy

拈花ヽ惹草 提交于 2020-07-02 09:15:55
问题 I've placed my keycloak server behind apache proxy: ProxyRequests On ProxyVia On ProxyPreserveHost On SSLProxyEngine On SSLProxyCheckPeerCN on SSLProxyCheckPeerExpire on <LocationMatch "/auth/"> ProxyPass http://keycloak:8090/auth/ Keepalive=On </LocationMatch> ProxyPassReverse "/auth/" "http://keycloak:8090/auth/" I've succesfully told my keycloak on javascript side to use /auth for authentication: { "realm" : "local", "auth-server-url" : "/auth", "ssl-required" : "external", "resource" :

Invalid token issuer when running keycloak behind proxy

时光毁灭记忆、已成空白 提交于 2020-07-02 09:14:52
问题 I've placed my keycloak server behind apache proxy: ProxyRequests On ProxyVia On ProxyPreserveHost On SSLProxyEngine On SSLProxyCheckPeerCN on SSLProxyCheckPeerExpire on <LocationMatch "/auth/"> ProxyPass http://keycloak:8090/auth/ Keepalive=On </LocationMatch> ProxyPassReverse "/auth/" "http://keycloak:8090/auth/" I've succesfully told my keycloak on javascript side to use /auth for authentication: { "realm" : "local", "auth-server-url" : "/auth", "ssl-required" : "external", "resource" :