nginx-reverse-proxy

NGINX Run multiple application on same port with different route path

萝らか妹 提交于 2021-02-16 14:58:05
问题 I have two applications, app1 is developed in reactJS and app2 in angularJS sharing same login session, - Application 1 http://application-1:1234/ - APplication 2 http://application-2:2345/ My needs is to have a seemless navigation between both apps, as they share the same login credentials. I have created NGINX reverse proxy configuration, server { listen 8080; server_name http://global-ip:8080; location / { proxy_pass http://application-1:1234; proxy_http_version 1.1; proxy_set_header

Nginx Reverse Proxy Location Rewrite

断了今生、忘了曾经 提交于 2021-02-11 12:36:28
问题 Using Nginx as reverse proxy, authentication with facebook is not working as it should. My proxy_pass is set to origin.example.com and main site is at main.example.com. proxy_pass https://origin.example.com; proxy_ssl_server_name on; proxy_set_header Connection ""; proxy_set_header Host origin.example.com; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection keep-alive; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; Redirection for facebook

Docker- nginx -Reverse proxy : host not found in upstream when building with docker-compose

徘徊边缘 提交于 2021-02-09 06:58:19
问题 I am using NGINX container to redirect certain requests to another container.While running docker-compose up -d , i am getting bellow error. " 2019/09/26 18:05:00 [emerg] 1#1: host not found in upstream "abcplus-visualize:61613" in /etc/nginx/nginx.conf:10 nginx: [emerg] host not found in upstream "abcplus-visualize:61613" in /etc/nginx/nginx.conf:10 " below is my docker-compose.yml file version: '2' services: reverseproxy: image: reverseproxy ports: - 49665:2181 restart: always abcplus

how to do reverse proxy on docker

流过昼夜 提交于 2021-02-05 11:13:07
问题 I have a server and I am using Ubuntu 20.04, nginx , mosquitto and node-red and docker , let's call the website http://mywebsite.com . The problem that I am facing that I have created a client lets call it client1 in docker so the URL will be http://mywebsite.com/client1 and I want to establish an MQTT connection via mosquitto and I'm sending the data on topic test The problem that on node red node of MQTT when I write the IP address of my mosquitto container it works But if I change the IP

how to do reverse proxy on docker

强颜欢笑 提交于 2021-02-05 11:12:55
问题 I have a server and I am using Ubuntu 20.04, nginx , mosquitto and node-red and docker , let's call the website http://mywebsite.com . The problem that I am facing that I have created a client lets call it client1 in docker so the URL will be http://mywebsite.com/client1 and I want to establish an MQTT connection via mosquitto and I'm sending the data on topic test The problem that on node red node of MQTT when I write the IP address of my mosquitto container it works But if I change the IP

Set proxy_pass in nginx based on request_method

二次信任 提交于 2021-01-29 13:02:14
问题 I have two application and a nginx server on top of that. I want to proxy all GET requests coming on nginx to one app running on http://127.0.0.1:9101/ and proxy all other request methods to http://10.41.115.241:8000/ I have tried couple of options but none worked I have tried using limit_exempt location /api/v1/executions { error_page 502 = @apiError; rewrite ^/api/(.*) /$1 break; proxy_pass http://127.0.0.1:9101/; limit_except PUT POST DELETE { proxy_pass http://10.41.115.241:8000/; } proxy

Set proxy_pass in nginx based on request_method

前提是你 提交于 2021-01-29 12:21:16
问题 I have two application and a nginx server on top of that. I want to proxy all GET requests coming on nginx to one app running on http://127.0.0.1:9101/ and proxy all other request methods to http://10.41.115.241:8000/ I have tried couple of options but none worked I have tried using limit_exempt location /api/v1/executions { error_page 502 = @apiError; rewrite ^/api/(.*) /$1 break; proxy_pass http://127.0.0.1:9101/; limit_except PUT POST DELETE { proxy_pass http://10.41.115.241:8000/; } proxy

Nginx reverse proxy - Internal servers separated by trailing slash

烂漫一生 提交于 2021-01-29 11:24:17
问题 I'm a newbie at Nginx, and have been searching a lot for the right answer to my question, but couldn't find it; not because it is not there, but my newbie condition limits me to adapt a generic solution to my issue. The situation is this: I have a Mantis Bug Tracker in my private LAN (http://10.111.111.12). On the other hand, i have an OwnCloud website also on my LAN (IP 10.111.111.5), with URL http://10.111.111.5/owncloud/. What i want to do is to deploy a Nginx Reverse Proxy that handles

How to expose sentry on subpath in nginx ingress?

倖福魔咒の 提交于 2021-01-29 09:47:26
问题 I have Sentry running in my cluster and i want to expose it on subpath using nginx ingress but it seems that it only works on root path, i tried several ways but it didn't work. Is there any configuration i can perform in order to make it work on a subpath because i've seen some examples using these two variables in the sentry.conf.py file: SENTRY_URL_PREFIX = '/sentry' FORCE_SCRIPT_NAME = '/sentry' But i don't know if it works Here is the ingress resource for sentry : apiVersion: networking

react - docker host not found in upstream

流过昼夜 提交于 2021-01-29 08:49:18
问题 I released my reactJs application. I have code information as below. But I get the error "11 # 11: host not found in upstream". where could i have made a mistake Could you help ? I get an upStream error even though my docker, nginx, and docker-compose file is correct. I had run the same codes before but I could not find where I made changes. default.conf ` upstream frontend_server{ server web:3000; } server{ listen 80; resolver 127.0.0.11; location /.well-known/acme-challenge/ { root /var/www