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

Is there any point in having proxy config instead a match-all Location?

I have inherited a system and there are a few things that no one knows why there are how there are anymore. In the httpd configuration, I've come across a few occurrences of Location directives that match all paths: ProxyPass…
garci560
  • 101
  • 1
  • 3
0
votes
0 answers

Apache ProxyPass with links and content

I try proxypass "test" directory and all content with further links via apache config ProxyPass /test/ http://manobatai/ ProxyPass works and it could be fine, but when i click on link i get that URL not found.
Darius S
  • 11
  • 2
  • 5
0
votes
1 answer

Proxypass for certain folder

Using Apache (Apache/2.4.18 (Ubuntu), ProxyPass (mod_proxy), how can I serve content from one host to a folder on another host? Example: pears.com/folder oranges.com/folder I would like requests made on oranges.com/folder to be served the content…
akjones
  • 1
  • 2
0
votes
0 answers

Nginx proxy_pass to basex

I have BasexHttp running on port 8984 and Nginx is proxying it to port 80. server { listen 80; location / { proxy_pass http://212.71.232.36:8984/rest/; proxy_set_header Authorization "Basic YWRtaW46YWRtaW4="; …
Kudos
  • 21
  • 2
0
votes
1 answer

Nginx proxy_pass exclude url with regex

I'm trying to proxy pass a location excluding only a casistic with a regex. I have this url /autocomplete// and I want to proxy pass only if var1 is different from a, so b/foo, c/foo ecc will be proxied. In apache I used…
Theraloss
  • 103
  • 5
0
votes
0 answers

NGIX, Apache and Wordpress using proxy_pass

Background/Setup Information: Our main server uses NGIX as its base and we also have a cPanel server running our Wordpress installs etc. On the main server I have used the following to point the url to the cPanel server NGIX.conf: location…
0
votes
4 answers

Apache ProxyPass Reverse DNS - Forward all source files?

I've got some websites in the local network, which have no access to the internet. So I want to set up one machine which has the access, and use it as a reverse proxy. My apache config looks like this: ProxyPass "/website1"…
lemon
  • 21
  • 1
  • 6
0
votes
1 answer

Nginx not preserving domain name for wordpress proxy_pass

In my /etc/hosts file I added an alias to localhost like this: 127.0.0.1 example.local My wordpress server is hosted on port 8000 so I use proxy_pass: server{ listen 80; server_name example.local; root…
0
votes
1 answer

geoserver nginx proxy_pass not working well

i have this config to access geoserver : location /geoserver { proxy_set_header Host $host; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For…
Hisham Karam
  • 101
  • 5
0
votes
1 answer

Is it correct to specify your actual internal IP in proxy_pass field in nginx?

I'm now going to deploy my node.js app on Google Compute Engine via nginx, but after all the configurations are done, I hit the wall with "502 Bad Gateway" error. Then, after digging out for so many hours, I finally found that the proxy_pass field…
Blaszard
  • 352
  • 2
  • 6
  • 14
0
votes
0 answers

NGINX reverse proxy starts returning 502 errors

I have a API First app that has separate servers for the front end and back end. The frontend is just an NGINX server that serves a static Angular site. The backend is a Play Scala server. Recently, to avoid having to use CORS anymore, I made…
cdmckay
  • 101
  • 1
  • 9
0
votes
2 answers

Nnginx map urls to proxy_pass in one location directive

I have multiple node websockets that are available through a url matching the UNIX socket paths. Instead of duplicating the location directive, I would like to have something like a list of Urls that will be used as socket name. Using a regex does…
zuim
  • 180
  • 1
  • 7
0
votes
1 answer

Issues with httpd config to proxy most requests to tomcat

I have had some difficulty in getting the following working in Apache: We have an apache/tomcat instance sitting behind an AWS ELB. The ELB is doing SSL termination so we have a redirect on the server to handle this. I need /health to be reachable…
sysadmiral
  • 331
  • 2
  • 3
0
votes
1 answer

apache rule to proxy external images

I would like to proxy images calls from external domains, for example that url: https://example.com/proxy/http://externaldomain.com/image.jpg Would respond the image (not a redirection).
0
votes
1 answer

NGINX Enable CORS for a Google Places API call

I would like to enable CORS for Google Places API in order to call it from an Ionic 2 app with a WkWebView. I am doing this in my nginx default config: server { listen 80 default_server; listen [::]:80 default_server; root…
Eusthace
  • 121
  • 1
  • 6