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

How mod_cache working with "must-revalidate" and "max-age"?

Quick question before I will explain my flow: Сan mod_cache perform revalidate with if-none-match only if max-age is expired in case if it configured in reverse proxy mode? My goal is to reduce a number of revalidation requests to our the origin…
Dmitriy Sosunov
  • 181
  • 1
  • 8
4
votes
1 answer

Apache ProxyPassReverse escaping special characters

I have this very simple reverse proxy rule in Apache 2.2.19: ProxyPass /test http://other.local.machine/test ProxyPassReverse /test http://other.local.machine/test The problem is that it seems mod_proxy escapes the special…
MaxArt
  • 515
  • 1
  • 7
  • 14
4
votes
1 answer

Changing a Set-Cookie header using mod_rewrite/mod_proxy

I have a bunch of CGI scripts, which are served using HTTPS. They can only be reached on the intranet, not from the outside. They set a cookie with the attribute 'Secure', so that it can only be send via HTTPS. There is also a reverse proxy to one…
olrehm
  • 191
  • 3
  • 8
4
votes
4 answers

Password protect and serve Apache site by port number?

I'm trying to set-up a password protected development version of a clients web site (Plone CMS driven). The live site serves on port 7373, and is mapped to the public www port 80. The 'dev' site serves on port 8383, and is mapped to port 8111. I…
Jon Hadley
  • 305
  • 2
  • 7
  • 20
4
votes
0 answers

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 with apache2. mod_proxy is forwarding requests to a…
4
votes
2 answers

Apache2 mod_substitute not working in

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 part of the body of every page that is proxied so…
3
votes
1 answer

mod_proxy protocol handler problems

I'm trying to forward incoming web traffic to a Plone server on my Ubuntu set-up using the following rules (based on 'Installing Plone with Apache'): ServerAlias www.mydomain.com ProxyRequests Off Order…
Jon Hadley
  • 305
  • 2
  • 7
  • 20
3
votes
1 answer

No protocol handler was valid for the URL / (scheme 'ws')

Trying to setup a websocket proxy using apache2, I get the following error: No protocol handler was valid for the URL / (scheme 'ws'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration…
Mohsen Saberi
  • 95
  • 1
  • 3
  • 7
3
votes
1 answer

apache 2.4 ProxyPass directives not working in RHEL7.5

I'm having trouble setting up a reverse proxy with apache 2.4.6 on RHEL7.5. I have the following virtualhost which sends requests to 3 backends: ServerName www.example.com RewriteEngine On ProxyPreserveHost On …
André Fernandes
  • 969
  • 1
  • 10
  • 25
3
votes
1 answer

How to debug why my mod_proxy is giving a "No protocol handler was valid" error?

I am trying to set up Apache as a frontend proxy to a Docker app. I have done this several times in the past, but for some reason, the new Ubuntu VPS I have is not co-operating. I'm using Apache/2.4.18. I am using this vhost:
halfer
  • 161
  • 1
  • 5
  • 25
3
votes
2 answers

mod_proxy_http can not be enabled

I have the current proxy modules enabled and working fine: $ apache2ctl -M | grep proxy proxy_module (shared) proxy_fcgi_module (shared) When I enable mod_proxy_http with a2enmod proxy_http and service apache2 restart, apache returns an error as…
Lito
  • 265
  • 2
  • 3
  • 11
3
votes
0 answers

Unset a header from a proxied response

I have a proxy configuration under Apache 2.2 which passes all requests for /blog to a host I have no control over. I want to unset a particular HTTP header (X-Powered-By: PHP) from the proxied response, so that it is not visible to the browser. I…
IMSoP
  • 490
  • 2
  • 10
3
votes
0 answers

Apache2 RequestHeader read value as ISO-8859-1 instead of UTF-8

It's a special case, I use an Apache mod_proxy in front of my tomcat and the Apache also add RequestHeader with mod_headers, thanks to mod_rewrite. If special characters are in the URI, they are "read" as ISO-8859-1. Even if I write a hard special…
3
votes
0 answers

RewriteRule pointing domain resolved as 127.0.0.1

I'm trying to setup proxy in apache like so: ServerName test.public.domain ... RewriteRule "^/dir/(.*)" "http://x-service.local/$1" [P,L] ... there is also another vhost conf on the same server:
a_z
  • 41
  • 3
3
votes
0 answers

Apache + mod_auth_tkt + mod_rewrite + mod_proxy from root directory

I have a web application running on a tomcat server which is "behind" an Apache httpd server and I am using mod_proxy to forward requests from the httpd to the tomcat server. The httpd server is using mod_auth_tkt for authentication, which stores…
Matjaž
  • 31
  • 2