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
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
  • 10
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
  • 17
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
  • 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
4
votes
1 answer

Cockpit via NGINX - settings make other services not reachable

I have a server (Ubuntu-Server) with some Docker-based servers (Gitlab, Redmine) and NGINX as Proxy. gitlab. => NGINX -> :port => Gitlab-container redmine. => NGINX -> :port =>…
Alex44
  • 181
  • 1
  • 9
4
votes
0 answers

Proxy_pass vs Fastcgi_pass

With one server/container on with nginx and another one with fpm, is it better to fastcgi_pass from the nginx to the fpm or proxy_pass to the fpm with addional installtion of nginx on the fpm? Both methods can load balance right? In that case does't…
3
votes
1 answer

Unable to serve NextJS static assets through Nginx

I have a NextJS app running on port 3000 and I have a test.ico file located at the following location: /static/images/icons/ I want this file to be served off the root rather than the actual path. I mean instead of…
TheLearner
  • 157
  • 1
  • 6
3
votes
0 answers

Using Environment variable in proxy_pass nginx

I have nginx container where I want to forward an api call to another server. I want to pass in environment variables from Docker Compose to be able to change sites, without rebuilding the Docker Image. My setup: #docker-compose.yml services: …
ChrKong
  • 31
  • 1
  • 2
3
votes
1 answer

nginx set directive not working

I'm facing the same issue as described in How to force nginx to resolve DNS (of a dynamic hostname) everytime when doing proxy_pass? and thus wanted to apply the same solution. My NginX, version 1.15.2, config now looks like this: server { resolver…
ThomasVdBerge
  • 218
  • 3
  • 8
3
votes
2 answers

Apache ProxyPass to Tomcat - how to remove context path from URL?

I have Apache conf: ServerName project.example.com ServerAlias ci ProxyRequests Off Order deny,allow Allow from all ProxyPreserveHost on …
Justas
  • 221
  • 1
  • 6
  • 12
3
votes
2 answers

Configure Nginx as reverse proxy with upstream SSL using server_name

I facing trouble using Nginx reverse proxy. I have a server on a private network that provide the following website: a.example.com : 10.32.58.01 (internal DNS resolution) b.other.com : 10.32.58.01 (internal DNS resolution) I created a Nginx…
3
votes
2 answers

Apache VirtualHost with ProxyPass to node.js server refuses to work ('Could not resolve host name')

I'm running local Apache on my mac for development, and also have node.js server running at http://127.0.0.1:8000/. I use .dev domain for Apache projects and would like .node domain to redirect to node.js server. I have virtual hosts set up as…
CBlew
  • 181
  • 1
  • 7
3
votes
1 answer

Nginx proxy: deny all apart from sub-path

I'm trying to setup an Nginx proxy for a node app that is currently under development. I'm trying to allow only whitelisted IPs to access the main site, but I have an /api path that I would like to be accessible by any IP. I've tried defining the…
Jaffa
  • 71
  • 1
  • 7
3
votes
0 answers

Apache + mod_auth_tkt + mod_rewrite + mod_proxy from root directory

I have a web application running on a tomcat server which is "behind" an Apache httpd server and I am using mod_proxy to forward requests from the httpd to the tomcat server. The httpd server is using mod_auth_tkt for authentication, which stores…
Matjaž
  • 31
  • 2