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

How to point static folder in Nginx for a Django application

I have deployed a simple Django application in the AWS server and created a config file in the Nginx as follows. But its static files are not detecting. Location of my static folder location: /path/static. This application checks for static files by…
aks
  • 57
  • 2
  • 7
0
votes
1 answer

Nginx proxy_pass domain to sub directory

I have a multi tenancy application that runs on port 3000, this app will dinamically load and generate contents for variuos websites ex. localhost:3000/webiste1.com/home , localhost:3000/webiste2.com/contacts and so on. Of course i would like to…
Nico
  • 101
  • 3
0
votes
1 answer

How to write nginx proxy pass for the Django application

I have deployed a simple Django application in the AWS server and created a config file in the Nginx as follows. server { listen 80; server_name 127.0.0.1; …
aks
  • 57
  • 2
  • 7
0
votes
0 answers

Nginx conditional proxy pass configuration

I have 2 different ( Node & Angular ) applications running under a domain. I am trying to configure nginx in way to serve like, whenever anyone access "domain.com" it should serve the node app running on port 4200 and if someone access…
Chris
  • 1
0
votes
0 answers

Issue with NGINX proxy_pass

Disclaimer: I have opened a similar question of stack overflow before realize that stack overflow is mean to code questions... My problem: I am trying to access a a web service connected to my nginx server over a ssh tunnel. It works perfectly if I…
0
votes
1 answer

Apache ProxyPass doesn't seem to be proxying content from remote host

I am trying to create a proxy at a URL on my "master" site to a remote site, "east", but I get stuck in a redirection loop. This isn't the behaviour I was expecting - I understood ProxyPass would rewrite the content to the URL, but I think it's…
Tim
  • 231
  • 1
  • 4
  • 11
0
votes
1 answer

Making the same website accessible from the subdirectory

I want my same website to accessible from a subdirectory. For example, right now my website is https://example.com What I want is, that it should also be reachable using: https://example.com/hi That means each path that is accessible from…
Amanda
  • 125
  • 1
  • 6
0
votes
0 answers

Nginx proxy_pass works for sub-paths but not for root path

I have Nginx running on Ubuntu20 with a proxy_pass from https://example.com to 0.0.0.0:8000 which is a docker container. When I hit https://example.com/literally/any/path/at/all the proxy works as expected, but when I hit the root path…
0
votes
2 answers

Apache crash if I try to use ProxyPass on localhost to expose different services as subdomain

I have the following directory structure for multiple websites and services /var/www/html/site1 /var/www/html/site2 /var/www/html/site3 /var/www/html/serv1 /var/www/html/serv2 site1 folder hosts a website site1domain.com I want to expose the…
AndreaF
  • 215
  • 2
  • 10
0
votes
1 answer

Nginx: Proxy requests to external server during DNS transition

I am migrating a site to a new location with another ip address. To smooth the transition for users and avoid as much downtime as possible, I plan to change DNS and then proxy requests from the old to the new server. But my proxy test in nginx is…
Jette
  • 113
  • 5
0
votes
1 answer

Nginx how to show IP blocked page?

I have a config like this for my Nginx server: server { listen 80; listen 443 ssl; ssl_certificate /etc/nginx/cert/domain.csr; ssl_certificate_key /etc/nginx/cert/domain.key; server_name ~^(\w+)\.(\w+)$ ; location / { rewrite…
M_F
  • 101
0
votes
1 answer

Sending cache headers only for a single request [or for a request following a certain path string]

I have the proxy pass in nginx config defined as follows: location / { proxy_pass http://localhost:3001; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; add_header…
Amanda
  • 125
  • 1
  • 6
0
votes
0 answers

apache web server 502 error proxy error when direct to an image url

Good day, I have an Apache web server, and I configure ProxyPass it to my application server. Everything is work unless the connection to the image in application server. I will hit 502 for the request to image url. The following is my configuration…
0
votes
0 answers

Nginx proxy_pass ungracefully close connection

I got a Nginx over Nginx configuration on my server. Server scheme Nginx A -> Nginx B -> PHP FPM (If you want to know the reason hidden below, it's because one of the two is in a Docker container.) Problem description When a client wants to download…
Doubidou
  • 131
  • 5
0
votes
0 answers

Relative path link ignores proxy nginx

Gitlab server running pages at https://pages.example.com Gitlab pages correctly setup to serve one page at https://example.com/ instead of https://user.pages.example.com Because inabilty to cname from https://user.pages.example.com/ to…