Questions tagged as ['mod-proxy']

[Edit, addition]: Looks like this could be caused by an attack attempt. But not sure how it can be avoided? https://www.mail-archive.com/bugs@httpd.apache.org/msg57219.html
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 ...

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 ...
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 ...
I am trying to configure a reverse proxy to my backend server.
This is my previous configuration which is working.
Define REMOTE_ADDR proxyserver.domain.com
<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: ...

I am trying lighttpd as a reverse proxy (v1.4.53)
lighttpd.conf:
$HTTP["url"] =~ "(^/example/)" {
proxy.header = ("map-urlpath" => ( "/example/" => "/" ))
proxy.server = ("" => (( "host" => "redmine.lighttpd.net" )))
}
However, this request returns response code 404.
http://localhost/example/ --> http://www.exapmle.com/ ...404
http://localhost/example/pro/lighttpd/ --> ht ...

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:
- If the application in a container signals it doesn't want to ...

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 ...
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 ...

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 ...

I have a case where I need to proxy pass a domain (domain1.com) to a different domain (domain2.com) hosted on a shared ip address (192.168.168.168), but domain2.com DNS is pointed other than the shared ip address, so domain2.com 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 ...
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 "myfunkywebsite.com". In the browser I get "Connection Refused" for all 1000 websites. So I think it's a configuration error ...
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 ...
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. ...
I use reverse proxy to show backend server content for a subdomain. The subdomain.mydomain.com (server A) should display content of server with IP 123.123.123.123 port 1111 (server B).
Virtual host of subdomain.mydomain.com (server A):
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName subdomain.mydomain.com
SSLEngine on
SecAuditEngine On
RewriteEngine On
SSLProxyEngine on
ProxyPreserveH ...

Hi all I am trying to use a virtual host to forward streaming.fusion.tk to my internal emby server form my webserver.
I have setup a config file called streaming.conf in /etc/apache2/sites-available/
<VirtualHost *>
ServerName streaming.fusion.tk
ServerAdmin fusion@localhost
ProxyRequests off
<Proxy "*">
Order deny, allow
Allow from all
</Proxy>
ProxyPass / http://192.168.0.203:809 ...
I'm trying to set up two subdomains, for a
and b
in domain.com
. I use two .conf files, which look pretty much the same with according changes to ServerName and ProxyPass:
<VirtualHost *:80>
ServerName a.domain.com #This was added as a try for a fix.
Redirect permanent / https://a.domain.com/
</VirtualHost>
<VirtualHost *:443>
ServerName a.domain.com
...

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 below:
<VirtualHost app.com:80>
ServerName app.com
<Proxy "balancer://mycluster">
BalancerMember "http://localhost:3000" route=1 retr ...