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
5
votes
0 answers

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 proxies HTTPS requests to Varnish like…
WackGet
  • 217
  • 4
  • 12
4
votes
1 answer

Apache - Should I use "ProxyPass ..." or "RewriteRule ... [P]" to proxy requests?

The apache documentation says that you can use mod_rewrite to do similar things to mod_proxy, by using the [P] option. Which should I use? Or is there no difference? Right now I'm using ProxyPass from mod_proxy, because I also want to include…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
4
votes
2 answers

Apache 2.4 sends 502 errors when backend sends 401 on large file uploads

Using Apache 2.4.25 (Windows) and backend server Tomcat 8 (Windows). We have some client software that uploads files using HTTPS on an authenticated session that is proxied through Apache to Tomcat. However, if an authenticated session is not used…
MJB
  • 41
  • 1
  • 2
4
votes
1 answer

ERR_INCOMPLETE_CHUNKED_ENCODING when using AddOutputFilterByType in Apache reverse proxy

I'm trying to set up a Shopware site using Docker behind a Apache2 reverse proxy. Since the Shopware software for some reason puts its backend host "http://127.0.0.1:18084" into the JavaScript it sends to the browser, I tried to use mod_substitute…
Thomas Stets
  • 141
  • 1
  • 5
4
votes
2 answers

Apache mod_proxy: redirection based on http header?

I was wondering if it is possible to direct http traffic to a specific back end server, based on an http request header value. The 'referer' http header value for exemple. I have 2 server instances. One for UAT (tests) and one for pre-production…
Dan
  • 41
  • 1
  • 1
  • 2
4
votes
1 answer

Apache ProxyPass: pass requested URL as GET parameter to destination URL

Hi I'm trying to set ProxyPass to pass requested URL as GET parameter to destination URL, but I can't figure out how to write it in the config file. I tried something like this: ProxyPass ^(.*)$ http://example.com/?url=$1 ProxyPassReverse ^(.*)$ …
Crylvarrey
  • 41
  • 1
  • 1
  • 2
4
votes
1 answer

apache reverse proxy: following redirects?

Is it possible to make apache (2.2) mod_proxy follow upstream redirects (http 301, 302)? Usually one would configure a reverse proxy like: ProxyPass /foo http://upstream.example.com/bar ProxyPassReverse /foo …
André Fernandes
  • 969
  • 1
  • 10
  • 25
4
votes
6 answers

How can I fix recurring PHP 503 Errors on my Apache-mod_proxy_fcgi-PHP-FPM Server?

i'm having trouble with my php-fpm setup. Maybe you guys can point me in the right direction. First off, everything is working fine. But every now and then, I'll get 503 Errors. Those errors are gone once I reload the website. They only ever appear…
Riemu
  • 113
  • 2
  • 2
  • 7
4
votes
1 answer

Multiple Client Certificates in SSLProxyMachineCertificateFile

Here is my use case. I want to learn how to setup Apache, so this is just for learning. Feel free to suggest better alternatives. I'm using Apache 2.4 in RHEL5. I want to use a ProxyPassMatch to proxy to two different sites ProxyPassMatch…
ssedano
  • 214
  • 4
  • 10
4
votes
1 answer

Apache Reverse Proxy Unescapes URL

I am running Apache 2.2.15 as a reverse proxy in my DMZ. I have an application on the internal network that I make available on the Internet for staff to use by going through the reverse proxy. As part of this application staff can see messages…
4
votes
1 answer

Apache: Difference between and ProxyPass

What is the difference between a ProxyPass directive: ProxyPass / http://localhost:8080/ nocanon ProxyPassReverse / http://localhost:8080/ And a directive: Order deny,allow Allow from…
Adam Matan
  • 13,194
  • 19
  • 55
  • 75
4
votes
2 answers

YouTrack on Tomcat 7 using SSL

I have a running YouTrack instance deployed using Tomcat 7 and it works fine on http://example.com:8080/youtrack Apache is already configured to support SSL for the main domain (I have .pem file). Both https://example.com and http://example.com are…
Sfisioza
  • 592
  • 2
  • 8
  • 18
4
votes
2 answers

Using ProxyPassMatch for FastCGI, results in connection refused on port 9000

I'm not certain if this is a php, apache, or iptables configuration issue but I receive the following error when trying to access a .php file. Please let me know if you need more information to help me diagnose, I'm at a loss for what to check…
Chris Rockwell
  • 143
  • 1
  • 1
  • 4
4
votes
2 answers

Apache Proxy HTTP CONNECT method enabled

I'm using Apache as reverse proxy for several different projects. PCI-DSS compliance scanning shows that my Apache is having HTTP CONNECT method enabled. as stated on Acunetix's site -…
John
  • 91
  • 2
  • 2
  • 7
4
votes
2 answers

Apache as proxy generates failure.

We are using apache proxy to enable our application servers to reach specific web sites over the internet. The setup is as follows: application servers --> apache proxy --> Internet website Some of the requests fail with the below error in the…
Hytham
  • 41
  • 1
  • 1
  • 3