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
6
votes
3 answers

Duplicate max-age header

I'm using Apache 2.4.25 to expose a number of back-end services using proxy pass. Apache also sets the cache control headers based on mime type. The current cache configuration looks like this: ExpiresActive on ExpiresDefault "now" ExpiresByType…
6
votes
1 answer

Apache Remote proxy for a reverse proxy SNI mismatch

Having an issue with our setup of an Apache-2.2 and a reverse proxy which is proxied to via another device. flow is: Apache A -> proxy.abc.net -> Apache B The error we get on Apache B is Hostname proxy.abc.net provided via SNI and hostname…
5
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
  • 211
  • 2
  • 6
5
votes
3 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
2 answers

encode URL wihthin URL - apache mod-proxy (ProxyPass)

I have a ProxyPass configured to reach the following: On my server I start a service which provides a Rest-API listening on port 7777. From the client side, I want to be able to call this API like this: http://example.org/servicename/PARAMETER A…
beta
  • 205
  • 1
  • 3
  • 7
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,114
  • 11
  • 35
  • 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…
5
votes
1 answer

Unexpected 301 redirects from Nginx when behind Nginx reverse proxy

Similar questions have been asked before here and here but none of them matched or solved the issue I am having. After a few hours of desperate problem solving I found a solution that was so unexpected yet simple that I wanted to share it in Q&A…
Akseli Palén
  • 191
  • 1
  • 7
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
  • 242
  • 1
  • 3
  • 13
4
votes
4 answers

apache reverse proxy with SSL gives '400 bad request'

I have an Odoo instance running on port 9069 in an Ubuntu server. Right now, apache is listening on port 8069 and is proxypass-ing this to 9069 (which works fine). The working URL is http://example.com:8069 Now, I need to make this work with SSL on…
Kishor N
  • 53
  • 1
  • 1
  • 5
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
  • 2
  • 7
4
votes
0 answers

Can Apache ProxyPass retry a request on backend connection failure

I'm using Apache as Reverse Proxy into App server layer - using ProxyPass. The App Server is single instance (no load balancing). Periodically (potentially due to some lower level network problem) Apache logs the following error. [Mon Jul 10…
Dazed
  • 256
  • 2
  • 10
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
1 answer

nginx proxy_pass is being ignored

I have an Nginx server which works as a proxy server. I also have 3 different NodeJS Express servers running on ports 8080, 9090 and 8888 (all working correctly). Servers 8080 and 9090 execute the same APP. Server on 8888 currently should return…
Amit4got
  • 41
  • 2
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
1 2
3
38 39