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, redirection on subfolder not working

I can make Nginx respond to www.example.com. But I'd like to redirect www.example.com/site0 to one specific server and www.example.com/site1 to another. It works When I point to the root location www.example.com. But I can't make Nginx resolve…
Mr Bonjour
  • 121
  • 1
  • 1
  • 4
0
votes
1 answer

Apache ProxyPass to TP-Link router

We sometimes need to access one or more of our routers from outside the office. Doing that from our website would be very handy. Our server runs Apache under Windows 2008 server. Since it serves a few domains, changes were made to the…
alvaroc
  • 119
  • 8
0
votes
1 answer

nginx resolve (point) everything to different ip except specific file and subdirectory

So i have posted similar question on stackoverflow but i think this is more appropriate section for this. What i have now is one travel blog and on that blog i have whitelabel for tickets/booking. whitelabel website is basically subdomain which is…
lonerunner
  • 124
  • 1
  • 4
  • 16
0
votes
2 answers

How do I merge these two nginx rules so that it works properly?

I was running Apache before using an htaccess rule but switched to nginx running a docker instance of the Discourse forum software. I am running nginx outside of the docker instance and then using proxypass so that it is located in domain.com/forum.…
MostHated
  • 11
  • 3
0
votes
1 answer

Apache2 proxy preserve domain name

I'm trying to implement the scheme Browser Client -> Apache2 Proxy -> Tomcat Application Server. Apache2 and Tomcat on separate servers. But the proxy does not work as I expected. Apache2 virtual host setting:
Flyer H
  • 1
  • 3
0
votes
1 answer

httpd ProxyPass with sticky sessions and DNS RR

I'm using apache httpd with ProxyPass and DNS RR and sticky Java sessions for Tomcat. It's not working. My apache config is: ProxyPass "/" "balancer://mycluster/" stickysession=JSESSIONID|jsessionid scolonpathdelim=On
mikeb
  • 306
  • 1
  • 4
  • 12
0
votes
0 answers

Keep redirect URL after redirecting in destination server reverse proxy

I use Apache as reverse proxy for email web access. Proxy works fine when I connect to login page. I see url email-test.example.com. Unfortunately after login in email server is redirect back to email.example.com(I cant change in email server). So…
Ian
  • 1
  • 1
0
votes
1 answer

NGINX http proxy_pass over SSL throws error 502

I'm trying to set up SSL on my nginx server, it works on the plain site wich is just the nginx welcome default page, but when I try any of the configured proxy_pass locations I get a cloudflare 526 Invalid SSL certificate error wich rapidly flicks…
Checkium
  • 11
  • 4
0
votes
1 answer

What faster proxy_pass or redirect to resource

I transfer my website to new webserver, without assets. I have flolowing links: site.com/img/image.png on new website but now, it's got 404 error also I have old server with images on the same paths, it's look like old.site.com/img/image.png I have…
0
votes
1 answer

Nginx proxy_pass with dynamic fallback

I'm running nginx as reverse proxy on 3 different hosts. The DNS resolves production.example.com to all 3 hosts' IP addresses. Thus I have some sort of load balancing and fallback if one host is not available. Every host is running several docker…
Sn0opy
  • 157
  • 1
  • 10
0
votes
2 answers

Nginx reverse proxy pass to separate Tomcat server not going through

This is my file in the NginX /sites-enabled directory: upstream tomcat_server { server 192.168.1.100:8080 fail_timeout=0; } server { listen 80 default_server; listen [::]:80 default_server; server_name _____.com www._____.com; …
Mingle Li
  • 103
  • 4
0
votes
1 answer

nginx reverse_proxy with multiple servers/Locations block and prerendering

I have specific needs for an Nginx proxy I have a brand new JS app (+ nginx) under the main url new.example.com, and an old app running on a different url old.example.com I need to handle prerendering for search engines for my new app (I'm using…
0
votes
1 answer

Nginx can not redirect HTTP to HTTPS in the proxy mode

When I access with https protocol, it works. But I access with http protocol, it doesn't work at all. My Nginx version is 1.12.1. Here is the config: /etc/nginx/sites-available/***: server { listen 80; server_name ***; …
fishfree
  • 5
  • 1
  • 3
0
votes
0 answers

nginx rewrite proxy_pass config not working

I have an nginx server with configuration; server { listen 9090; server_name localhost; root /Users/anonuser/Desktop/workspace/ttttt/portal/design; which has a set of rewrite and proxy_pass commands; rewrite ^.*(/account/.*)$ $1 last; …
Olgun Kaya
  • 137
  • 2
  • 10
0
votes
1 answer

ProxyPassMatch not working

I have a server running at localhost:3030 and I can access a number of web pages. When I do a wget on localhost:3030/index.html, I obtain the web page. Using a ProxyPassMatch, I was trying to redirect a request on example.com/sparql/ to…
user203788
  • 103
  • 1