Questions tagged [mod-proxy]

Module for the apache webserver with which apache can be used as proxy server. With this module apache can act as a regular proxy, or as a reverse proxy for upstream servers.

689 questions
0
votes
1 answer

Apache 2.4 Subdomain Proxy Balancer and Reverse Proxy

I have a Next.js application running on two ports 3000 and 3001, and I want to use apache 2.4 reverse proxy to achieve this: https://app.com/* -> localhost:300x/* https://user.app.com/* -> localhost:300x/user/* So far my setting is like…
0
votes
1 answer

Incorrect Location in response header on Apache server

While trying to set-up apache as the Reverse Proxy, I see that I get incorrect location in the Response Headers ( Location is sent as "/" whereas it should be "backend/auth/api/token" ) I have set up my apache server as follows (relevant section…
userx
  • 101
  • 2
0
votes
1 answer

How to rewrite urls using ProxyHTMLURLMap?

My urls are in this form /sites/site-name/Subpath-2/page-name.page /sites/site-name/Subpath-3/Subpath-4/index.page And this should be rewritten as /sitename/subpath/pagename (the extention .page is removed) also the subpath can have multiple…
0
votes
1 answer

Apache WebSockets "400 proxy error"

We're trying to present the WebSocket-enabled interface from a remote device on our website. I've configured the WebSocket tunnel in Apache, but I'm getting a "400 Proxy Error" in Firefox (in Chrome: "Websocket connection to ... failed"), and the…
Roger Dueck
  • 131
  • 5
  • 17
0
votes
1 answer

Apache 2.4 ignores mod_proxy?

I am installing a new server with Debian 10. I configured a virtual host to direct some requests to a TomEE (8.0.6) server. This server is responding on port 8080. The Apache configuration looks as follows:
Marco
  • 172
  • 10
0
votes
1 answer

Apache proxy pass does not work with HTTPS

I want to redirect a certain sub-path to a backend application running at port 19011. My config file (/etc/apache2/sites-available/my_domain.conf) looks like this: ServerName my_domain DocumentRoot /var/www/my_domain …
Egemen
  • 101
  • 1
  • 2
0
votes
1 answer

A proxy with a fixed URL that alters certain file types?

I need to make a mirrored website with a slightly different info. spawning up a new server for each site is too much work, and takes a lot of effort to update. most of the content should be intact, but only some files should be tweaked a little,…
Ted
  • 111
  • 3
0
votes
0 answers

Rewrite with [P] flag lands in wrong vhost

I have a an old and a new site with 2 different urls, I'm trying to redirect the old urls to the new one with the proxy [p] flag. It works as expected, but it's landing in the wrong virtual host because it has the old url as…
NthDegree
  • 101
0
votes
1 answer

Apache proxy direct subtree to another server

I have a server which currently redirects everything to a web app running in a docker container on the same machine. I would like to direct urls beginning /mail to an instance of mailcatcher running in another docker container. [This post editied to…
Nikki Locke
  • 171
  • 2
  • 9
0
votes
0 answers

Apache forward proxy with mod_rewrite

The Story: I've to (forward) proxy a request - whith certificate checking - to a site which has more than 96 character long URL. The Apache mod_proxy implementation doesn't work URLs that longer 96 characters. I've tried mod_rewrite's RewriteRule…
0
votes
1 answer

Apache ProxyHTMLURLMap with string substitution from LocationMatch

I am trying to build an Apache reverse proxy to make a set of servers accessible through a single point of access. The servers all offer a web admin interface on port 3000, and I intend to present all of them as directories on the reverse proxy. The…
Tilman Schmidt
  • 4,101
  • 12
  • 27
0
votes
1 answer

Route traffic from certain site/url to a number of hand-picked nodes in a load balanced environment

I inherited a loadbalancer (mod_proxy) setup consisting of 5 nodes. The setup serves a number of 6 sites (site1, site2 etc, with shared disk space) and would like to know if there is a way to route traffic to only 2 of the nodes, namely 4 and 5…
Nick_K
  • 143
  • 5
0
votes
0 answers

Configure Apache Web Server (shared hosting) to provide simultaneous Web and Websocket Access

I'm trying since some days to find a way to configure simultaneous websocket and web server connections with one same Apache Web Server I have on a shared hosting basis. Now, before giving that up and definitely switching to a dedicated hosting…
DevelJoe
  • 187
  • 3
  • 11
0
votes
1 answer

What components of a url are rewritten with apache mod_proxy in a Location tag?

ProxyPass https://example.com/partB ProxyPassReverse https://example.com/partB What URLs are called on the remote server? http://example.net/testA/partC is called. Is the URL called on the remote server…
Interlated
  • 341
  • 1
  • 3
  • 9
0
votes
1 answer

Issue with configuring php-fpm mod proxy on centos 6

I'm configuring PHP_FPM on a Centos 6 distribution. I'm using php 5.4.45 and apache 2.2.15 and the "mod_proxy.so" to call the socket. But with the following Vhost and php-fpm configuration I still get the same two issues in my site logs : [Tue Mar…
Suffren
  • 7
  • 2
1 2 3
45
46