2022 Developer Survey is open! Take survey.

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

reverse proxy Apache that redirects filtering by ip and path

I am trying to create a reverse proxy with apache that if it receives a request with /thisismypath as path and the ip address that make that request is 192.168.2.12 the it should redirect to 192.168.1....
user avatar
  • 1
0 votes
0 answers
36 views

Apache proxy returns 502 with AH00898: Error reading from remote server

everyone. I'm doing a practice task to create redirect for one location using load balancer, but I cant figure out why this isnt works (getting 502). I've tried setting several env-vars and settings ...
user avatar
0 votes
0 answers
30 views

ProxyPass only works on localhost (127.0.0.1)

my httpd configuration is like this: ProxyRequests On SSLProxyEngine On ProxyPass /wss/ http://127.0.0.1:6789/ ProxyPass /wss2/ http://49.12.36.109:6789/ ProxyPass /wss3/ http://www.testingmcafeesites....
user avatar
0 votes
0 answers
11 views

ProxyRemote with https remote-server sends GET instead of CONNECT

My Apache httpd proxy server has an upstream proxy that only accepts HTTP CONNECT method. According to https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxyremote When using https, the requests ...
user avatar
  • 538
1 vote
0 answers
94 views

Apache reverse proxy to site using NTLM authentication fails with mod_rewrite but not mod_proxy

We have a reverse proxy server in front of an Exchange server and would like to lock down more of the paths. Minimized examples: Fails (but works for all pages that don't require authentication): <...
user avatar
  • 221
1 vote
1 answer
55 views

Apache 500 Error when proxying api subdirectory

I am trying to redirect PUT request for a specific endpoint to another host. The said endpoint resides under /internal and accepts only PUT requests. The other endpoints under /internal will continue ...
user avatar
4 votes
0 answers
411 views

Sudden and sporadic errors from 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 ...
user avatar
0 votes
0 answers
83 views

Securing Apache against mod_proxy SSRF exploit CVE-2021-40438

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 ...
user avatar
  • 1
0 votes
1 answer
28 views

POST requests fail after updating Apache load balancer ("empty stream")

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 ...
user avatar
  • 101
1 vote
0 answers
213 views

Apache Reverse Proxy rewrite rule for complex URL. "Too Many Redirects" error

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> ...
user avatar
0 votes
1 answer
41 views

Lighttpd reverse proxy to another server faild

I am trying lighttpd as a reverse proxy (v1.4.53) lighttpd.conf: $HTTP["url"] =~ "(^/example/)" { proxy.header = ("map-urlpath" => ( "/example/" => &...
user avatar
0 votes
0 answers
102 views

How to configure an Apache load balancing proxy with a hot standby BalancerMember

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 ...
user avatar
0 votes
0 answers
50 views

Log TCP Client port on apache mod_proxy

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 ...
user avatar
  • 478
0 votes
0 answers
136 views

502 on redirects from http to https on GCP

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 ...
user avatar
0 votes
0 answers
10 views

How to configure Apache mod_proxy to select a URL from a table? E.g. via a script?

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 ...
user avatar
0 votes
1 answer
269 views

Apache ProxyPass to Shared Ip Address for Domain

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 ...
user avatar
0 votes
0 answers
31 views

Connection Refused to all sites using ProxyPass HTTPS 443

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 ...
user avatar
  • 335
1 vote
0 answers
155 views

Apache2 websocket proxy fails

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 ...
user avatar
  • 35
0 votes
2 answers
289 views

Can not access Tomcat servlet using httpd ajp proxy in Docker

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. ...
user avatar
0 votes
3 answers
406 views

Apache reverse proxy - URL without / is refused

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 ...
user avatar
  • 294
0 votes
1 answer
91 views

Apache2 Virtual Host Proxy Forward

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/ &...
user avatar
  • 11
1 vote
1 answer
174 views

Setted Apache subdomain redirect to another subdomain

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> ...
user avatar
0 votes
1 answer
38 views

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/* -> ...
user avatar
0 votes
1 answer
191 views

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&...
user avatar
  • 101
1 vote
1 answer
114 views

HTTP CONNECT requests in Apache web server log

I have an Apache webserver which serves the domain www.mypersonaldomain.com and I found these entries (and more like these) in access log. 88.218.227.227 - - [28/May/2021:08:56:29 +0000] "CONNECT ...
user avatar
0 votes
1 answer
43 views

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 ...
user avatar
-1 votes
1 answer
138 views

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 (...
user avatar
1 vote
0 answers
281 views

how to config apache reverse proxy for multiple jboss remote instances?

I need to setup an apache reverse proxy with multiple jboss instances as target server (with different IP). I've already set in my DNS an url http://jboss-test.domain.com and i would like to redirect ...
user avatar
  • 11
2 votes
0 answers
21 views

Apache Proxy URL exclusion wont work

we are running an Apache/2.4.6 on CentOS. i am trying to setup an Proxy Endpoint on the Apache which is passing requests to internal Servers (target servers). So far the Endpoint does what it should, ...
user avatar
  • 21
1 vote
0 answers
116 views

is this configuration correct?

I try to configure an apache load balancer to manage how server status becomes error and how the server status becomes OK. The apache version is 2.4 . I understood that a server state is error when a ...
user avatar
0 votes
1 answer
139 views

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 ...
user avatar
  • 172
1 vote
1 answer
492 views

Apache ProxyPass + RewriteRule?

I've set up an apache config to try to redirect /login and to ProxyPass all other requests: RewriteEngine on RewriteCond "%{REQUEST_URI}" "^/login$" RewriteRule "^/login$"...
user avatar
2 votes
1 answer
145 views

Apache rewrite proxy only homepage

I've tried various regular expressions (^/$, ^index.php$, ^$) to rewrite/proxy just the homepage of a WordPress website through .htaccess. For the record I have the appropriate modules loaded to ...
user avatar
2 votes
1 answer
601 views

How to use UNIX domain sockets behind Apache / mod_proxy_uwsgi?

On my development system I'm running a Flask WSGI application with uwsgi and nginx. However on the production server I need to use Apache instead of nginx, so I'm trying to do that. In nginx the site ...
user avatar
  • 183
0 votes
1 answer
821 views

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: <VirtualHost *:80> ...
user avatar
  • 101
0 votes
1 answer
182 views

Apache proxy configuration (webapp resources URL truncated)

I'm trying to set up a proxy in an Apache web server but I have an issue about the build of URL beacause in the resulting URL part of the path is missing. An example: http://server/webapp/style.css (...
user avatar
1 vote
1 answer
163 views

Apache: Dynamic Reverse Proxy

is it possible to have an Apache server dynamically proxy all requests defined by a subdir? Like: https://proxy.example.com/host1 -> https://host1.example.com https://proxy.example.com/...
user avatar
1 vote
0 answers
187 views

Apache mod_rewrite P flag is rewriting URL unexpectedly

I've recently received a request from the site owner to redirect our base domain to a specific landing page on a subdomain, which is working just fine. The problem is that he wants the URL to remain ...
user avatar
0 votes
1 answer
44 views

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, ...
user avatar
  • 111
1 vote
0 answers
42 views

Apache graceful stop waiting for rewrite requests

I am using Apache as a reverse proxy, and mod_rewrite to pass on the requests to backend services for handling. I want to use Apache graceful stop, to allow in-flight requests to complete, however, it ...
user avatar
  • 111
0 votes
0 answers
54 views

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 ...
user avatar
  • 101
1 vote
0 answers
1k views

How can I configure a reverseproxy (at /) and a Laravel project (at /backoffice/) running in the same subdomain?

I'm trying to configure on Apache a subdomain that should: Serve a PHP Laravel app if the request starts with /backoffice ReverseProxy to a node app otherwise. I can configure the reverse proxy and ...
user avatar
0 votes
1 answer
148 views

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 ...
user avatar
5 votes
0 answers
4k views

Intermittent proxy error in Apache: "Partial results are valid but processing is incomplete" with "AH01110: error reading response"

I'm using Apache 2.4.43 on CentOS 7.8 with Varnish 6 and PHP-FPM to serve a Magento 2 website. Varnish listens on port 80. Apache listens on 8080 to serve content to Varnish, and also port 443 which ...
user avatar
  • 187
0 votes
0 answers
198 views

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 ...
user avatar
0 votes
1 answer
290 views

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 ...
user avatar
0 votes
1 answer
28 views

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 ...
user avatar
  • 133
2 votes
2 answers
1k views

Apache2 mod_substitute not working in <Location>

I have a working Reverse Proxy that is active only on a specific Location in my site, in this case for example: www.example.com/reverseproxy/site1 I am reverse proxying site1. I want to replace some ...
user avatar
0 votes
0 answers
280 views

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 ...
user avatar
  • 103
0 votes
1 answer
30 views

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

<Location /partA> ProxyPass https://example.com/partB ProxyPassReverse https://example.com/partB </Location> What URLs are called on the remote server? http://example.net/testA/...
user avatar

1
2 3 4 5
14