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
4
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
  • 161
  • 1
  • 6
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
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
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
  • 43
  • 1
  • 1
  • 5
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
  • 173
  • 1
  • 6
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
3
votes
1 answer

Trailing slashes with nginx and shiny server

Trying to get Shiny apps to load without using trailing slashes. Here is my sites-enabled server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; index index.html index.htm index.nginx-debian.html; …
Michael
  • 31
  • 2
3
votes
1 answer

Apache httpd mod_proxy POST issue on home page like abc.com

I have apache server 2.4.18 on centos as a web server in the front end. Now I have multiple websites which are deployed on tomcat 8.0.33 as webapps in the default webapps folder of tomcat. Configuration on apache end:
3
votes
1 answer

No Response on NGINX when using upstream

I'm trying to load balance a web application through nginx, It works fine for all will my web application calls a service with sub-path. for example it works http://example.com/luna/ but not for http://example.com/luna/sales My nginx.conf user …
3
votes
1 answer

nginx proxy_pass two ports into subfolders

So I had my last "reverse proxy" problem fixed regarding "mapping" a port to a subfolder Thanks again to this awesome community. I have been able to work with this solution for a while but now I am facing a new problem. The situation is: There is a…
pAt84
  • 301
  • 1
  • 2
  • 6
3
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
  • 31
  • 2
3
votes
1 answer

Nginx proxy image/javascript hosted externally

I'm trying to proxy a javascript and image hosted by a external party with nginx I'm running my site on https and they only offer the files through http, I have already had contact with them about this but the can't give timeline when they are gone…
Aegis
  • 133
  • 1
  • 6
3
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
  • 175
  • 1
  • 2
  • 7