Questions tagged as ['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.
Score: 4
Sudden and sporadic errors from mod_proxy
ru flag

[Edit, addition]: Looks like this could be caused by an attack attempt. But not sure how it can be avoided?

I have an Ubuntu server with apache2. mod_proxy is forwarding requests to a java web server on a local port

ProxyPass / http://localhost:9003/ retry=0

Yesterday I suddenly started seeing errors. Sometimes there seems to be an er ...

Score: 0
Securing Apache against mod_proxy SSRF exploit CVE-2021-40438
kr flag

I'm tasked with securing Apache against CVE-2021-40438 in order to achieve PCI compliance. The server is running Apache 2.4.52 and PHP-FPM 7.4.26, each running in their own docker container. From what I've read, the version of Apache that I'm using has been patched against this issue, however, I think I'm re-introducing the problem with my need to configure Apache as a proxy for php-fpm.

The rele ...

Score: 0
Lonzak avatar
POST requests fail after updating Apache load balancer ("empty stream")
tf flag

We have an apache configured as a load balancer (mod_proxy_balancer afaik) distributing the load to several wildfly application nodes. This was working fine until we updated the operating system from debian buster to bullseye.

The OS update increased the apache version from 2.4.38 -> 2.4.51 (plus some debian changes I guess). Since then all HTTP POST requests fail with an "input stream is emp ...

Score: 1
Renegade avatar
Apache Reverse Proxy rewrite rule for complex URL. "Too Many Redirects" error
br flag

I am trying to configure a reverse proxy to my backend server.

This is my previous configuration which is working.


<VirtualHost *:443>
    ProxyRequests Off
    KeepAlive On
    ProxyPreserveHost Off

    RewriteEngine On

    RewriteCond %{HTTP:Upgrade} =websocket
    RewriteRule /prefix/(.*) wss://${REMOTE_ADDR}/prefix/$1 [P,L]
    RewriteCond %{HTTP: ...
Score: 0
Lighttpd reverse proxy to another server faild
cn flag

I am trying lighttpd as a reverse proxy (v1.4.53)

$HTTP["url"] =~ "(^/example/)" {
    proxy.header = ("map-urlpath" => ( "/example/" => "/" ))
    proxy.server = ("" => (( "host" => "" )))

However, this request returns response code 404.

http://localhost/example/ -->   ...404
http://localhost/example/pro/lighttpd/ --> ht ...
Score: 0
How to configure an Apache load balancing proxy with a hot standby BalancerMember
vn flag

I have two docker containers each with a running application on port 8080. This application has a REST endpoint "/status" that can signal if the application still has the resources to accept another request by a user. A user request will be forwarded and balanced to the two containers by an load balancing Apache proxy.

What I want to achieve:

  1. If the application in a container signals it doesn't want to  ...
Score: 0
Log TCP Client port on apache mod_proxy
cn flag

Using an Apache 2.4 Reverse Proxy (with mod_proxy) that connects to a backend HTTP service we have the following(simplified) series of TCP connections:

client ClientIP:random_port1 ---> <IP1:443 port> reverse_proxy <IP2:random_port2> ---> <IP3:8443 port> backend svc

We also get the following error in mod_proxy suggesting that we cannot make the second connection(IP2:random_port2 ...

Score: 0
Jetto Martínez avatar
502 on redirects from http to https on GCP
fr flag

I'd like to start by saying that I know there are quite literally hundreds of topics about this, which I've followed before to get things working. Yet, this configuration, which I had working for months, its not working in a different environment.

The requirements is pretty straightforward: Take users from site on port 80 to the same site on port 443.

We have said site, with Apache as front and with ...

Score: 0
How to configure Apache mod_proxy to select a URL from a table? E.g. via a script?
in flag

We've got Apache mod_proxy performing the function of a reverse proxy to a specific host:ip currently.

We would like to be able to take a url like https://domain/pathA and https://domain/pathB and look up the appropriate host:port in a table or via an HTTP rest service call. Each pathX will have a different place the proxy should get the information from.

We would like to avoid hard coding this informati ...

Score: 1
Apache ProxyPass to Shared Ip Address for Domain
pl flag

I have a case where I need to proxy pass a domain ( to a different domain ( hosted on a shared ip address (, but DNS is pointed other than the shared ip address, so cannot be used as the proxy pass, only the shared ip address.

Since the shared ip address has multiple hostnames, is there a domain or hostname configuration option that  ...

Score: 0
Zak avatar
Connection Refused to all sites using ProxyPass HTTPS 443
in flag

I am trying to set up proxy forwarding for a https site that I want to move to another internal server. I want the remote server to handle the certificates as well.

The issue is, when using the configuration below, all 1000 websites go down. Not just the site in question "". In the browser I get "Connection Refused" for all 1000 websites. So I think it's a configuration error ...

Score: 1
x43 avatar
Apache2 websocket proxy fails
us flag

I'm trying to proxy websockets through Apache 2.4. I found an online demo, and this is my config based off of it. I'm running an app that uses websockets on port 8089 and am using apache to proxy the site and the app.

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerAlias mysitehere

        RewriteEngine on
        RewriteCond %{HTTP:Upgrade} websocket [NC]
        Re ...
Score: 0
Mirza Prangon avatar
Can not access Tomcat servlet using httpd ajp proxy in Docker
cn flag

Docker, httpd and tomcat is new to me.

What I want to do: Access tomcat servlet through httpd ajp reverse proxy.

I am making two containers under same bridge network, one runs httpd, another tomcat.

Problem: I can not access tomcat through httpd. Httpd returns 403 error. I can access through port 8080 if I expose it to the host. I have read many articles but do not understand what I am doing wrong. ...

Score: 0
klor avatar
Apache reverse proxy - URL without / is refused
us flag

I use reverse proxy to show backend server content for a subdomain. The (server A) should display content of server with IP port 1111 (server B).

Virtual host of (server A):

<IfModule mod_ssl.c>
<VirtualHost *:443>

SSLEngine on
SecAuditEngine On
RewriteEngine On
SSLProxyEngine on
ProxyPreserveH ...
Score: 0
Apache2 Virtual Host Proxy Forward
kz flag

Hi all I am trying to use a virtual host to forward to my internal emby server form my webserver.

I have setup a config file called streaming.conf in /etc/apache2/sites-available/

<VirtualHost *>
ServerAdmin fusion@localhost

ProxyRequests off
<Proxy "*">
Order deny, allow
Allow from all

ProxyPass / ...
Score: 1
Jetto Martínez avatar
Setted Apache subdomain redirect to another subdomain
fr flag

I'm trying to set up two subdomains, for a and b in I use two .conf files, which look pretty much the same with according changes to ServerName and ProxyPass:

<VirtualHost *:80>
        ServerName #This was added as a try for a fix. 
        Redirect permanent /

<VirtualHost *:443>

Score: 0
Apache 2.4 Subdomain Proxy Balancer and Reverse Proxy
cn flag

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:*      ->  localhost:300x/** ->  localhost:300x/user/*

So far my setting is like below:

  <Proxy "balancer://mycluster">
    BalancerMember "http://localhost:3000" route=1 retr ...