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

nginx proxy pass forward subdirectory & preserve url

I have setup two servers with nginx - https://dev.imagecompressor.io at 35.231.119.158 https://imagecompressor.io at 176.9.41.138 I am trying to forward https://imagecompressor.io/site to https://dev.imagecompressor.io/site & want the url remain…
A G
  • 163
  • 1
  • 7
0
votes
1 answer

Apache proxypass not retrieving the expected content

Have been trying to get an apache proxy set up to serve all content in a sub directory from a new application server If I use this rewrite rule it works and I get redirected to the new site RewriteRule ^/blog/(.+)/$…
Jameel
  • 79
  • 5
0
votes
1 answer

Apache destination virtual host certificate when using mod_rewrite or ProxyPass

I am trying to use mod_rewrite or ProxyPass to redirect (PT) the client's request from virtual host A on 443 to different virtual host B on port 4434, also with SSL. Like that: SSLProxyEngine on SSLProxyVerify none SSLProxyCheckPeerCN…
0
votes
1 answer

How to remove the path with an nginx proxy_pass in http and https?

I have read the similar issue below but got a problem that will explain later in the question: How to remove the path with an nginx proxy_pass I have a config like below that proxy_pass to an upstream: location /api2/ { client_max_body_size…
Alireza
  • 583
  • 4
  • 9
  • 27
0
votes
0 answers

Nginx is not passing request to App server in case of => special character in URL

I have strange problem, I have special characters(=>) in URL which is more of business requirement(sorry, so I can't change it). Here is specific scenario- I'm using nginx as web server and proxy passing it to App server(typical setup). GET…
Red Boy
  • 101
  • 1
0
votes
1 answer

Apache proxy redirect URLs with specific string

I have a server which runs 2 applications. I am using a public IP address and I want to parse the url in a way if a specific text occurs the call is redirect to a specific port. In my case I want that if the url contains: /myapp1/a1 -> port…
Simone Ceccolini
  • 81
  • 1
  • 1
  • 5
0
votes
1 answer

Proxy pass in http.conf apache not forwarding

I'm currently trying to forward this url https://example.com/screenshot to http://localhost:8443 the reason why I'm trying to do this is because I have an express js server running that I need to be accessed via https. All the documentation I read…
FabricioG
  • 167
  • 1
  • 7
0
votes
1 answer

ReverseProxy Wildcard?

Is it possible to have a wildcard for a reverse Proxy using ProxyPass? I've seen similar config below for ProxypassMatch, so I tried to model it off of that using just proxypass ProxyPass ^/retirement-readiness-savings(.*)$…
POPEYE1716
  • 39
  • 1
  • 5
0
votes
0 answers

Is it possible to exclude a directory with ProxyPassReverse?

I'm looking to exclude a directory from a site is behind a reverse proxy. examples I'm seeing are using ! , but I haven't been able to solve this See examples that I've tried below. Legacy system using mod_proxy module located in httpd.conf (just…
POPEYE1716
  • 39
  • 1
  • 5
0
votes
0 answers

Nginx proxy_pass to wordpress blog

I'm trying to serve a wordpress blog from another domain using proxy_pass. https://blog.domain.example/ to https://domain.example/blog I clearly also want to rewrite all the urls accordingly. What I did: location /blog { rewrite /blog(.*) /$1 …
ngw
  • 1,261
  • 3
  • 13
  • 15
0
votes
0 answers

Shorten URL with Nginx

I have this long URL with http://shortk8s.com/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard:/proxy/#!/workload?namespace=default I'd like to http://shortk8s.com to go directly to the full URL while appending the query strings…
Proximo
  • 101
  • 2
0
votes
1 answer

ProxyPass changes 304 status to 200 and adds content-type

The probelm I am running a node server (sqlpad) through an Apache2 reverse proxy. On some requests, the node server returns a 304 status code with no Content-Type when accessed directly. However, when accessed via the reverse proxy, the status code…
Tom Aranda
  • 101
  • 1
  • 5
0
votes
1 answer

NGINX SSL Pass-thru and Docker

I have a server with 2 websites. Let's call them foo.com and bar.com. foo.com has a subdomain, called mail.foo.com. Both foo.com and bar.com are WordPress sites, and their NGINX configuration is the usual WP configuration you'd find in WP's…
alexandernst
  • 534
  • 3
  • 9
  • 21
0
votes
0 answers

Nginx proxy_pass in special location doesn't work

I just try to make a specific location for my domain, with a proxy_pass: location /new/ { proxy_pass http://192.168.9.6:10061; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For…
0
votes
1 answer

2 ProxyPass SSL wildcard on HTTPD2

So basically I am trying to setup 3 different SSL virtualhosts. I have the following setup beta.website.com api-beta.website.com app-beta.website.com beta is our old platform, api and app our part of our new platform and they live on port 8000 (node…
CMOS
  • 101
  • 4