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
0 answers

Appending all incoming path parameters to the proxy_pass URL

I want to create a mapping such that, if a request comes in with a path some-path gets appended to the proxy_pass URL. For example as shown below: location /hi/[some-path] { proxy_pass https://mywebsite.com/[some-path] } Is there a way to do…
Amanda
  • 125
  • 1
  • 6
0
votes
1 answer

nginx: How to add URI path to host in proxy_pass directive?

Problem: I use a nginx proxy_pass directive to redirect https requests with a specific location path in the URI, e.g., https://domain/path/index.html to http://container_ip:port/index.html. This works fine for the initial request. However, if the…
thando
  • 135
  • 5
0
votes
1 answer

Apache Conditional Reverse Proxy with RewriteCond

I have a website that has a mobile version page, and since my website is behind the reverse proxy, I need a conditional function that can decide which version to be shown to visitors. I'm using Apache 2.4, the ProxyPass and ProxyReverse doesn't…
0
votes
1 answer

Using nginx to create corporate umbrella site

My client requires to combine all his ventures into one umbrella without moving them from their original locations. For example, he already has a site running as realestate.com and movers.com and now he wants to combine them under corporate.com such…
Abdul
  • 3
  • 1
0
votes
1 answer

Stop nginx processing further rules

I am using nginx to proxy a directory to a remote server, with the code: location /directory/ { proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host sub.domain.io; proxy_pass …
Kohjah Breese
  • 171
  • 2
  • 13
0
votes
1 answer

Forwarding request when serving from NGINX cache - Is this possible?

I have enabled caching with Nginx. I followed the official docs and it works fine. What happens is, when the request comes in for the first time, it is proxy passed to a server. The response is cached. From there on, all requests are served from the…
Suhail Gupta
  • 159
  • 1
  • 9
0
votes
2 answers

proxy pass http 2 with nginx

I tried to proxy pass all inbound traffic with nginx. I use this repo with thisnginx.conf and works properly. http{ server { listen 80 default_server; server_name _; resolver ${RESOLVER} ipv6=off; location / { …
sajad sadra
  • 1
  • 1
  • 1
0
votes
1 answer

Leading slash when sending request from nginx to squid

I am facing a weird situation. I want to load a webpage sitting behind Nginx. So I proxy pass a webpage request to squid as shown below in the snippet: location /about-me/yellow { proxy_pass…
Amanda
  • 125
  • 1
  • 6
0
votes
1 answer

nginx, handle 404s in another location with proxy_pass location

I have a basic django application setup under nginx. So far everything runs fine. What I need is a setup so I can handle 404s under /media/ with my proxy_pass application. Currently, it shows a bare nginx 404 error when no file is found. I've read…
benzkji
  • 111
  • 5
0
votes
0 answers

Kibana+nginx reverse_proxy issue

Greetings! I had to face issue with NginX reverse_proxy and Kibana. If I make Kibana index - nothing shows until I clear browser cache or visit page from Private Tab in browser. Here is my server.conf (without server {}) include…
Alex R.
  • 103
  • 3
0
votes
1 answer

Nginx proxy_pass shows port if get without slash

I have an app with endpoint http://localhost:3000/seller/ and I use nginx proxy_pass server { include default_proxy_headers; listen 80; listen 443 ssl http2; listen [::]:443 ssl http2; server_name domain.my; location /seller…
Alex R.
  • 103
  • 3
0
votes
1 answer

Host multiple sites on the same box

I have multiple tools running on different ports on the same machine. Jenkins, gitea, etc. I have a CNAME setup for each. jenkins.foo.bar, gitea.foo.bar, etc. I'm trying to set it up so when I go to jenkins.foo.bar it actually loads foo.bar:8080 and…
0
votes
1 answer

Nginx proxypass to app folder's subfolder works only with trailing slash

There is a partially related question here but it doesn't help me. For site.com I have location /sub/ { proxy_set_header Accept-Encoding ""; proxy_pass http://192.168.1.1/ ; } The 192.168.1.1 IP has a VM with an Apache server on it. Now…
ahron
  • 365
  • 3
  • 14
0
votes
1 answer

Pi-Hole Apache vHost Configuration - Reverse Proxy

I have installed Pi-Hole on my Ubuntu 18.04.4 box running apache 2.4.29. The admin dashboard is working when I navigate to the server's IP address, however I would like to use a vHost to point a subdomain to it. The vHost I have has been reproduced…
0
votes
1 answer

ProxyPass Apache 2.4 simple proxypass not working

i have the following situation: i need to call the following url http://myapp.mydomain.com and the url should reply as following http://myapp.mydomain.com/index.jsp On my apache 2.4 i tryied different setup but none seems to work, First…