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
146
votes
5 answers

How to remove the path with an nginx proxy_pass

I have a running web-application at http://example.com/, and want to "mount" another application, on a separate server on http://example.com/en. Upstream servers and proxy_pass seem to work, but for one issue: upstream luscious { server…
berkes
  • 1,975
  • 3
  • 15
  • 18
67
votes
2 answers

Apache ProxyPass with SSL

I want to proxy requests from an SSL site via a non-SSL site. My Apache httpd.conf looks like this: ServerName foo.com ProxyPass / https://bar.com/ So, when I visit http://foo.com, I expect apache to…
tylerl
  • 14,885
  • 7
  • 49
  • 71
62
votes
2 answers

Nginx location regex doesn't work with proxy pass

I'm trying to get these 2 location directives working in Nginx but I'm getting some errors back when booting Nginx. location ~ ^/smx/(test|production) { proxy_pass http://localhost:8181/cxf; } location ~ ^/es/(test|production)…
Niels
  • 771
  • 2
  • 8
  • 8
37
votes
2 answers

Proxy Pass not working

I am attempting to get ProxyPass to work on my OpenSUSE 13.1 install. I have tried: a2enmod proxy a2enmod proxy_http a2enmod proxy_connect systemctl restart apache2 systemctl reload apache2 (All combinations of statements to no avail). I keep…
JosephGarrone
  • 471
  • 1
  • 5
  • 8
33
votes
3 answers

Nginx proxy domain to another domain with no change URL

My question is in the subject. I have a domain, this is the nginx config for it: server { listen 80; server_name connect3.domain.ru www.connect3.domain.ru; access_log /var/log/nginx/connect3.domain.ru.access.log; error_log…
Evgenii Iablokov
  • 630
  • 2
  • 8
  • 15
27
votes
4 answers

Configure nginx for jboss/tomcat

In order to pass traffic to JBoss/TomCat on port 80 using Apache we used to install and configure mod_jk. Is there an equivalent for nginx? Basically want all port 80 traffic to be passed to jboss.
user76328
26
votes
3 answers

How to handle relative urls correctly with a nginx reverse proxy

Sure I'm not the first one that tried to serve a domain example.com from a example.net/bbb, but I haven't found a solution yet. My NGINX configuration follows the guidelines and looks something like this: server { listen 80; server_name…
a.barbieri
  • 403
  • 1
  • 5
  • 7
24
votes
1 answer

Why am I getting an "Invalid command 'ProxyPass'" error when I start my Apache 2.2 server?

I'm having trouble getting Proxying working in Apache 2.2 When I try to start it, I get an Invalid command 'ProxyPass' error. that would be indicative of proxy_http_module not being loaded. However when I look at the debug, it seems to be there.…
BIBD
  • 1,826
  • 10
  • 29
  • 44
21
votes
2 answers

Can you use Redirect and Proxypass at the same time

I am using Apache 2.2.15 on CentOS to provide SSL for a TomCat application. ProxyPass / http://127.0.0.1:8090/ connectiontimeout=300 timeout=300 ProxyPassReverse / http://127.0.0.1:8090 This works fine and everything is great; however, I want to…
bombcar
  • 313
  • 1
  • 2
  • 5
19
votes
4 answers

How do I configure Nginx proxy_pass Node.js HTTP server via UNIX socket?

I am trying to configure a Nginx server to connect to a Node.js HTTP server via a UNIX domain socket. The Nginx configuration file: server { listen 80; location / { proxy_pass http://unix:/tmp/app.socket:/; } } (according to…
pvorb
  • 980
  • 3
  • 10
  • 15
17
votes
1 answer

ProxyPass: Redirect directory URL to non-standard port

I've been searching Google and have no had much success in finding an answer. I'm running a server on Ubuntu and I have programs installed that use various non-standard ports. Each one uses a different port, in my case they are 9090, 9091, 9092,…
Serneum
  • 273
  • 1
  • 2
  • 6
13
votes
3 answers

Help me understand how to use ProxyPass

UPDATE: I added a revised question after playing around with it two answers below. Hi there, If you're reading this you're probably familiar with Apache's mod_proxy and its ProxyPass function. Like many others, I have the issue of having an…
Bartek
13
votes
1 answer

How to prevent nginx from reverse proxy specific subdirectories

On Apache you can ProxyPass everything except one or more subdirectories (with "!"). ProxyPass /subdir ! ProxyPass / http://localhost:9999/ What is the Nginx equivalent ? My first guess is obviously not working : location /subdir { …
Falken
  • 1,682
  • 5
  • 18
  • 27
11
votes
6 answers

Forwarding PHP requests via ProxyPassMatch as a handler, or only when file exists

I am migrating my server to use mod_proxy_fcgi and php-fpm instead of mod_php. Apache is able to forward .php requests to the fcgi proxy and PHP executes correctly. I've got this working with: ProxyPassMatch ^/(.*\.php(/.*)?)$…
ide
  • 211
  • 2
  • 5
10
votes
2 answers

nginx unwanted location redirect with trailing slash

I have a location location /pass/ { proxy_pass http://localhost:12345/; } So it is supposed to proxify urls http://example.com/pass/whatever to http://localhost:12345/whatever The thing I don't like about it is that nginx is automatically…
igor
  • 163
  • 2
  • 2
  • 9
1
2 3
37 38