Questions tagged [proxypass]

ProxyPass in Apache, and proxy_pass in nginx, are directives used to specify which backend or remote server should process the request

ProxyPass in , and proxy_pass in , are directives of the default module that are used to specify which or server should process the .


ProxyPass in :

https://httpd.apache.org/docs/current/mod/mod_proxy.html#proxypass


proxy_pass in :

http://nginx.org/r/proxy_pass

http://ngx.su/src/http/modules/ngx_http_proxy_module.c#ngx_http_proxy_pass

578 questions
0
votes
1 answer

Apache, Docker, Proxy - change adress in browser to 127.0.0.1

I have Apache server with few sites. I would like to run on this server docker container with Mercure and share it on the Internet. I found information on the Internet that I need to use ProxyPass and ProxyPassReverse in the vhost configuration. My…
0
votes
1 answer

Nginx redirects to http://localhost

Brief image of the situation I can't use domain address for server_name because I can't control DNS server. I must use public IP to connect to my web server. So I set server_name to _;, but when I request http://firewall-public-ip:5000 it redirects…
Lunartist
  • 125
  • 1
  • 8
0
votes
0 answers

Bad nginx URI redirection

I am trying to authenticate in a keycloak server however the redirect_uri doesnt come with the context (/admin/). Nginx is producing a wrong URI redirect_uri:…
Winter
  • 131
  • 1
  • 5
0
votes
1 answer

Using Apache ProxyPass to point to express server?

I'm trying to use proxypass for a specific directory so I can point it to my express.js server https://othersite.life:1447/ Been stuck on this one for hours now. Would really appreciate some insight. I have enabled these mods and I'm editing…
0
votes
0 answers

nginx proxypass not working for embedded links

I've an EC2 machine which is behind a ALB. Listener rules in the ALB are like IF Path is/blog* Host is abc.example.com THEN Forward to target-group-1 My nginx config looks like this: ## # Default server configuration server { listen 80…
Axel
  • 421
  • 2
  • 8
  • 18
0
votes
1 answer

Rolling updates of backend with udp server sockets

I have a backend system used for IOT devices which use UDP protocol for communications. And there are certain TCP (HTTP2) based APIs for mobile apps from the same backend. I am trying to build a rolling update feature to enable 0 downtime patching…
0
votes
0 answers

Cloudflare in front of Nginx Reverse - redirect users with certain IP to special page

I'm running a nginx reverse proxy in front of webpage. In front of this nginx reverse proxy is also cloudflare reverse proxy running. Now I'm trying to redirect users with certain ip-addresses to a special webpage. I'm trying to do this from the…
micebutt
  • 1
  • 1
0
votes
0 answers

nginx always serves 502 Bad Gateway

I am trying to run a proxy with Nginx and I implemented the following tutorial as preparation. I did exactly as instructed here and I was served a 502 Bad Gateway result when I entered…
Mnemosyne
  • 131
  • 1
  • 7
0
votes
1 answer

Nginx robot proxy_pass to another port with change url

I Have a problem with nginx configuration. If user agent is "robot" - then proxy pass to another port with setting corrent uri as argument for example : have two services localhost:5000 and localhost:6000 port all non robots pass to 5000 and robots…
0
votes
1 answer

Nginx L4 Proxy Works with HTTPS but not with HTTP

I have the following configuration as L4 proxy over Nginx and everything works fine. stream { map $ssl_preread_server_name $name { hostnames; .ipchicken.com $ssl_preread_server_name; .bbc.com …
Zareh Kasparian
  • 753
  • 5
  • 20
0
votes
0 answers

Proxy all requests to backend server

I currently have an Angular app that gets its data from a Symfony backend. When developing, I used the ng serve development server proxy system for redirecting the /api, /oauth-token and /media routes to the backend server, and this worked fine. Now…
BSoD
  • 1
  • 1
0
votes
1 answer

Redirect to external asset nginx

My goal is to have one nginx that can proxy_pass to other server. Desired input https://example.com/https://assets1.com/image.jpg?utm=whatever Desired output https://assets1.com/image.jpg?utm=whatever Here my location block server { index…
Imnl
  • 103
  • 3
0
votes
0 answers

Proxying to a proxy with nginx

I'm trying to use the proxy_pass directive to proxy requests to different servers. In the following conf, /api1 and api2 are proxied correctly but api3 is not. The server api3.server3.com runs an Apache server that proxies /api-alt to the correct…
Askirkela
  • 131
  • 5
0
votes
1 answer

Nginx Proxy pass returns 50x error

How can I use or configure proxy_pass in NGINX in order to display my react application when someone visits my website? Below you can read the configuration I am using, but it is not working as I expect and redirecting to website.com:3000. # For…
0
votes
1 answer

Nginx rewrites correctly for one but not the other

Basically, I am trying to use the proxy_pass directive to call a remote API. So far, this is what I got: server { location /a { proxy_pass https://a.com; rewrite ^/a(.*)$ $1 break; # no trailing slash, defined in application code } …
Askirkela
  • 131
  • 5