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

Filter by
Sorted by
Tagged with
0 votes
1 answer
370 views

nginx proxy pass forward subdirectory & preserve url

I have setup two servers with nginx - https://dev.imagecompressor.io at 35.231.119.158 https://imagecompressor.io at 176.9.41.138 I am trying to forward https://imagecompressor.io/site to https://...
0 votes
0 answers
16 views

OHS and ProxyPass and RewriteRule / RedirectMatch

i've setted up this virtualhost, <VirtualHost *:443> ServerName test.domain.org DocumentRoot "/u02/config/www/tst-12c" RewriteEngine on RewriteCond %{...
0 votes
1 answer
5k views

ReverseProxy Wildcard?

Is it possible to have a wildcard for a reverse Proxy using ProxyPass? I've seen similar config below for ProxypassMatch, so I tried to model it off of that using just proxypass ProxyPass ^/...
21 votes
4 answers
40k views

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:/...
0 votes
1 answer
6k views

NginX cannot redirect to React App

I'm quite new to NginX, so my apologies if anything I ask here sounds naive. Lets say I have a DNS www.example.com. Whenever a request comes to www.example.com/ (only /), I want NginX to redirect it ...
3 votes
2 answers
5k views

Apache ProxyPass to Tomcat - how to remove context path from URL?

I have Apache conf: <IfModule mod_ssl.c> <VirtualHost *:443> ServerName project.example.com ServerAlias ci ProxyRequests Off <Proxy *> Order deny,allow ...
1 vote
3 answers
5k views

Nginx http redirect to https when https proxy_pass

I have an nginx configuration which redirect from http to https, but on the https side the location / {} include a proxy_pass to a Go service. server { listen 80 default_server; listen [::]:80 ...
0 votes
1 answer
7k views

How to ProxyPass to a '/path/' instead of root '/'?

I am using Ubuntu-15.10 wily, Apache-2.4.12 I've been trying to use ProxyPass in an SSL enabled VirtualHost like so: ProxyRequests Off ProxyPreserveHost On <Proxy *> Require all granted &...
0 votes
1 answer
39 views

Apache referrer based reverse proxy path rewrite

I have a virtualhost that is a reverse proxy based on a path param "xmg" <VirtualHost *:443> ServerAlias some.example SSL... ProxyPass /xmg http://localhost:5553/ ...
0 votes
1 answer
7k views

How to remove the path with an nginx proxy_pass in http and https?

I have read the similar issue below but got a problem that will explain later in the question: How to remove the path with an nginx proxy_pass I have a config like below that proxy_pass to an ...
1 vote
2 answers
18k views

Authorization Header Missing Upon NGINX Proxy Pass to subdomain

Hi I'm running Laravel on NGINX server and I would like to use NGINX reverse proxy capability as an API gateway for my Laravel and other node API application. Here are my configurations: Application ...
0 votes
1 answer
159 views

NGINX proxy pass to Node.JS server SSL handshake failure

I want to setup a reverse proxy with NGINX to my express.js server, but when connecting to the website i receive a Cloudflare 525 SSL handshake failed error. This is my NGINX configuration file # ...
0 votes
2 answers
8k views

net err connection timed out

I have Apache/2.2.22 on Ubuntu 12.04. Apache is set as reverse proxy server. So when accessed from a remote system, the page and contents are displayed. But after some time the server seems to ...
0 votes
1 answer
49 views

NGINX domain conf file, how to redirect 301 and proxy_pass

I'm pretty new to nginx and I'm trying to configure a redirect from http to https and, in the same file, set as location a proxy_pass to the desired URL. My domain.com file is this: server { ...
0 votes
0 answers
70 views

How Do You Block & Unblock Internet Sites in Apache?

How do you block all internet sites and only let some sites through in Apache Proxy? I want to block all sites except some (e.g. updatemicrosoft.com, .windowsupdate.com , google.it etc.) I have ...
2 votes
1 answer
4k views

Apache 502 Error With Upstream Proxy Raising 413

We have a Python Flask API running in gunicorn being fronted by apache. ProxyPreserveHost On <Location /api/v2> ProxyPass http://127.0.0.1:8090/ disablereuse=on SetEnv proxy-sendcl </...
0 votes
0 answers
218 views

Set up proxy for Nextjs and WordPress blog

Thanks in advance. I am new to server setup. So pardon me If I used the wrong words. I am setting up an Ubuntu server to host Nextjs and WordPress blog on the same server. I have to set up Nextjs on ...
0 votes
0 answers
146 views

Apache2 folders redirect to IPs

I have installed Apache/2.4.56 (Debian), a noip URL and severals LXC containers. I need to access to the web apps inside the LXC containers: example.com/app1 -> LXC container 1 (with Zend2) example....
0 votes
1 answer
167 views

Use ProxyPass only if remote address is in subnet

I have a php application running with a mostly default config that lives in var/www/html/app: <VirtualHost *:443> ServerName myhost.com DocumentRoot /var/www/html <Directory "...
0 votes
0 answers
128 views

(Nginx proxy) Replace host in response in headers and body

It's possible in nginx to replace "Host" header in request. server_name myexample.com; location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; ...
0 votes
1 answer
99 views

Get Apache to serve example.com from a directory and all subdomains *.example.com to be ProxyPass / http://localhost:8050

Running Apache 2.4.58 I need to get Apache to serve example.com from a directory and all subdomains *.example.com to be ProxyPass / http://localhost:8050 (so they can be served from another web server ...
1 vote
1 answer
339 views

Serve multiple apps with nginx proxy_pass

I'm trying to use a basic nginx reverse proxy to access three different apps, each running inside a docker container. The nginx reverse proxy is served on http://127.0.0.1:8080 and i want to have the ...
1 vote
1 answer
139 views

Target app assets not loaded with nginx proxy_pass

I have a basic nginx proxy running on http://127.0.0.1:8080. This is the nginx.conf: events {} http { server { listen 8080; server_name 127.0.0.1; rewrite_log on; ...
0 votes
0 answers
73 views

Mask Url from path to subdomain using NGINX

I want to achieve url rewrite as such: https://documentation.domain.com/login to https://app.domain.com/login https://api.domain.com/login to https://app.domain.com/login , any sudomain with url {...
0 votes
0 answers
140 views

NGINX Rewrite path to subdomain with cloudflare results in Too many redirects

I want to achieve url rewrite as such: https://documentation.domain.com/login to https://app.domain.com/login https://api.domain.com/login to https://app.domain.com/login , any sudomain with url {...
0 votes
1 answer
254 views

Apache VirtualHost Same domain for Front and API

I have a multi-tenant application that is resolved using subdomains with the pattern *.localhost. The front-end of the application is accessible at http://localhost:3000/. To achieve the desired ...
0 votes
1 answer
139 views

nginx GET request with internal server name instead of public domain name

I have set up a nginx reverse proxy with Ubuntu Server 22.04 LTS. The Abacus web application should be accessible with https://abacus.contoso.com from the internet. The internal server name is srv06. ...
38 votes
5 answers
78k views

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 ...
2 votes
1 answer
4k views

How to use Nginx to both rewrite and proxy_pass whilst keeping the user-entered URL

I'm a beginner Nginx user trying to proxy the following: http://subdomain.example.com/mypage/login TO http://some_ip_address/login (not just /login - the site has other contexts too e.g. /static, /...
1 vote
2 answers
4k views

proxy pass http 2 with nginx

I tried to proxy pass all inbound traffic with nginx. I use this repo with thisnginx.conf and works properly. http{ server { listen 80 default_server; server_name _; ...
1 vote
2 answers
4k views

nginx reverse proxy inside docker with proxy_redirect default

I'm trying to run lets-chat inside docker behind nginx acting as a reverse proxy so that lets-chat will be accessible on /chat over HTTP. In the past when using nginx as a reverse proxy inside of ...
0 votes
1 answer
217 views

Apache module proxy_html not working

I have a Joomla 4 site running in a Ubuntu 22.04 server (hostname = web-02). The Internet facing web server running in a Ubuntu 20.04 server (hostname = web-01) has configured as a reverse proxy for ...
0 votes
0 answers
64 views

Apache websocket and web app in the same directory structure

I have a web app running in LAMP server now I want to have some features transferred to web socket without changing the directory structure which means the root directory of the web app should be ...
0 votes
0 answers
197 views

Proxypass not functioning "500 internal server error"

I am annoyed at having to constantly type in mydomain.com:10000 to access an application I have. I read on here that you can set up proxypass so I can get app.mydomain.com to serve up mydomain.com:...
0 votes
0 answers
52 views

Apache Gateway to Dockerized FPM Container?

I have a dockerized app with a web fpm interface (monica:fpm-alpine), and a vps on the internet. I want my vps to be an https gateway to this app. I thought I could use a virtual host include file and ...
2 votes
1 answer
3k views

Proxy pass on subdirectory not working

I have an api running at http://127.0.0.1:9650. For example the following is giving a json object as response: curl http://127.0.0.1:9650/ext/health I would like to make the following work at https://...
0 votes
1 answer
158 views

Apache ProxyPass to IIS results in 503 or complete timeout

I have an IIS machine on LAN behind an Apache machine which is exposed to the internet. I have a simple proxy set up, which is intended to pass traffic to the IIS machine directly from the Apache ...
5 votes
3 answers
8k views

Fall-back location for Apache's ProxyPass directive?

I've set up Apache to send requests to camera.example.com to an a webcam accessible via an IP address not associated with the server Apache's running on, using ProxyPass: [camera] -- [nat / prt frwrd]...
0 votes
0 answers
258 views

reverse proxy between apache

I need to set up a reverse proxy between two Apaches. My setup looks like the following, but it's not working. <Location "/example/"> ProxyPass http://example.com/ ProxyPassReverse ...
0 votes
0 answers
520 views

502 Bad Gateway when using NginX proxy_pass for subdomain on different LAN server

In a nutshell, I want to host a second domain (sub.domain.com) on a different server, on the same network (192.168.1.240). I understand I have to make use of the proxy_pass, so I have this ...
0 votes
2 answers
6k views

nginx reverse proxy - proxy_pass leads to 503 service unavailable

I have the following configuration: server { listen: 8080; location / { proxy_pass https://somehost.abc.xyz; proxy_redirect off; proxy_set_header ...
0 votes
1 answer
160 views

[Wordpress][CACHE] Fastcgi_cache or proxy_cache?

I'm preparing a server to host a classic WordPress site (lots of dynamic content). I have an apache server associated with a Nginx reverse proxy ( with the proxy_pass configuration ). I have several ...
0 votes
1 answer
650 views

How to reverse proxy assets from another unsecured website?

I have this situation. Current VM where this nginx config is stored has a valid ssl certificate. Inside this VM is the main application app1 served in port 80. On another port 1234 another service is ...
2 votes
1 answer
2k views

How to Make NGINX to use System Proxy?

I am trying to setup a nginx server that forwards the incoming request to a corporate porxy (its a mcafee proxy) with a proxy header Host and the actual destination host something like ...
3 votes
2 answers
4k views

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 ...
0 votes
1 answer
119 views

Is there a way in Nginx to remove a route specified in location from one domain and port and forward it to reverses proxy?

I want to connect example.com:80 and example.com:82 to a specific site through reverse proxy. localhost/api/buy/ -> http://example.com:80/ localhost/api/sell/ -> http://example.com:82/ I set ...
0 votes
1 answer
765 views

How do I do multiple nginx reverse proxies?

I want to connect example.com/api/buy and example.com/api/sell to a specific site through reverse proxy. So I am trying to connect through localhost/api/buy and localhost/api/sell with nginx. I set up ...
-1 votes
1 answer
1k views

Keep url in address bar with a proxy reverse on nginx

I have a web application where users can create their page. The web application will generate a URL like this for each page created : https://my-domain.com/page/12345. I would like to give my users ...
1 vote
0 answers
411 views

How can I proxy pass applications to locations different from "/" with Apache?

Let's say I have three applications on my server: node-red (1880), jupyter (8888) and pgadmin (5433)... I can successfully create a localhost proxy pass with them individually as the following: <...
0 votes
0 answers
227 views

Nginx - redirect subdirectory to a different domain without changing URL

We've set up a Matrix-Synapse chat server at the root of one domain, and we'd like to redirect the /element subdirectory to the Element client hosted at another domain, but without changing the ...

1
2 3 4 5
12