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

565 questions
6
votes
4 answers

REMOTE_USER through Apache reverse proxy

I have an Apache webserver with mod_proxy enabled and a Virtualhost, proxy.domain.com. This proxy is configured to prompt the user for credentials with AuthType Basic. Then, the content of web.domain.com is available through the proxy with ProxyPass…
Laurent Nominé
  • 557
  • 1
  • 5
  • 16
5
votes
1 answer

Nginx: Forcing upstream server to log proxy server's request id instead of it's own request id

I've setup a proxy server that forwards client requests to an upstream server which works fine so far. However, the issue I am trying to solve is that forcing upstream server to log the request id of the proxy server. Is this possible? Just to let…
BentCoder
  • 321
  • 6
  • 20
5
votes
2 answers

Fall-back location for Apache's ProxyPass directive?

I've set up Apache to send requests to camera.example.com to an a webcam accessible via an IP address not associated with the server Apache's running on, using ProxyPass: [camera] -- [nat / prt frwrd] -- [11.22.33.44]-- [internets] --…
klokop
  • 163
  • 1
  • 4
5
votes
1 answer

ProxyPassReverse Not Working with 302 Redirect

I'm using Apache HTTPD to proxy a local Tomcat server: ProxyPass / http://localhost:8080/ ProxyPassReverse / http://localhost:8080/ Everything works fine except when I have a 302 redirect. For some reason the ProxyPassReverse doesn't rewrite the…
DD.
  • 3,024
  • 10
  • 34
  • 50
5
votes
1 answer

nginx reverse proxy not passing requests

I have a domain (example.com) and a subdomain (sub.example.com) both hosted on the same server. I want to proxy a request so any file requested on http://sub.example.com/api/ will be requested on http://example.com/api/ (along with the…
4
votes
1 answer

Nginx proxy cookies not set

Here's my situation, I have a Rails 4 app that can be accessed by multiple domains, depending on the domain, the content changes. Say the main domain is domain1 and all the other domains just use Nginx's proxy_pass to forward the requests to…
Julien
  • 222
  • 1
  • 2
  • 13
4
votes
1 answer

Configuring multiple ProxyPassReverseCookiePath in Apache HTTP

I have a server with an Apache reverse proxy in front. The server machine contains 2 web applications running under: localhost:8000/app and exposed as my.url.com/app1 localhost:8001/app and exposed as my.url.com/app2 They are essentially different…
PentaKon
  • 191
  • 1
  • 6
4
votes
1 answer

Nginx Proxy Pass SSL Verification

I am using proxy_pass directive to upstream https server. The proxy server is meant for LAN clients. The upstream https server uses letsencrypt. How do I configure SSL verification? proxy_pass https://upstream.backend proxy_verify_ssl…
Mr Hyde
  • 153
  • 1
  • 7
4
votes
1 answer

Nginx proxy_pass to wordpress docker container

Hi guys sorry if I'm making a elementary mistake but I am really lost here. I have set up my Ubuntu 16.04 server is Nginx(Not in a docker container, running on host machine) and wordpress(In a docker container). Docker Hub Wordpress repo: (I can't…
kawaijoe
  • 143
  • 1
  • 5
4
votes
0 answers

Set CORS headers on nginx

Addresses like http://vpsxxx.ovh.net/g/search?q=ok or http://vpsxxx.ovh.net/so/questions/34738694/how-to-move-items-on-the-screen-for-a-game-using-javascript are proxied well, when trying them from the browser url bar But not from JS, even after…
caub
  • 149
  • 1
  • 4
4
votes
1 answer

Multiple Client Certificates in SSLProxyMachineCertificateFile

Here is my use case. I want to learn how to setup Apache, so this is just for learning. Feel free to suggest better alternatives. I'm using Apache 2.4 in RHEL5. I want to use a ProxyPassMatch to proxy to two different sites ProxyPassMatch…
ssedano
  • 214
  • 4
  • 9
4
votes
2 answers

nginx - why i can't use variables in proxy_pass path?

Why i can't use variable $user in proxy_pass - like in example below? server { listen 80; server_name ~^(?P[a-z|A-Z|0-9|_|-]+)\.example\.net$; root /home/$user/webapps/; location /app/ { proxy_set_header…
Abc Xyz
  • 608
  • 1
  • 8
  • 16
4
votes
2 answers

Using nginx to proxy multiple instances of sockets.io

I have two separate node.js applications running behind nginx. Both the apps use socket.io and express. One is served on port 5000 and the other on port 5001. But we need them both accessed through port 80 so that when a client accesses…
BarthesSimpson
  • 143
  • 1
  • 6
4
votes
1 answer

How apache reverse proxy can be configured without breaking the https tunnel between client & server?

I have configured apache reverse proxy. In that configuration https connection is possible between client to reverse proxy and again reverse proxy to server. But I want https connection between client to server like forward proxy. The https…
4
votes
2 answers

NGINX: can I use a mapping of upstream servers with proxy_pass directive?

I have an NGINX server that acts as reverse proxy to a bunch of backend IIS servers. I would like to pass each incoming HTTPS request to a certain backend (upstream) server, depending on the URI specified, WHILE keeping the same URL in the address…
user202985
  • 43
  • 1
  • 1
  • 3
1 2
3
37 38