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.

learn more… | top users | synonyms

4
votes
0answers
537 views

Add a header depending on the proxied response code with apache

I use Apache 2.2 with mod_proxy to some 3rd party HTTP server. As it doesn't send any Cache-Control header, I want to add one of 1 day for response code 200, 5 min for 404 and 0 for any other ...
3
votes
0answers
166 views

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 ...
2
votes
0answers
104 views

Apache mod_proxy + mod_cache (socache and disk)

I have here a three node apache mod_proxy load balancing cluster. now i want enable mod_cache to get more load from the backend to the frontend. So thats my config for the cache: <IfModule ...
2
votes
0answers
802 views

Efficient setup for fronting application servers with Apache

I have to front various application servers (in the beginning this will be JBoss 6, Tomcat 8 standalone and Tomcat 8 embedded into spring boot 1.2 apps) with an Apache 2.4. Because of this I decided ...
2
votes
0answers
911 views

Apache 2.2: RewriteMap, ProxyPass interpolation and Keep-Alive

I have an Apache httpd used as a SSL reverse proxy frontend for a lot of backends. I compute the name of the backend from the path given by the user. e.g: https://myhostname.com/myaccount translates ...
2
votes
0answers
2k views

Apache mod_proxy to ssl backend not working properly

I'm getting the following errors when trying to do a proxy to an SSL backend server: [Thu Jan 03 14:44:26 2013] [error] (502)Unknown error 502: proxy: pass request body failed to 192.168.1.10:8443 (...
2
votes
0answers
281 views

Does mod_proxy support HTML5 Server Side Events / EventSource?

I am stuck with apache2. I've read that mod_proxy doesn't support websockets. Does it support EventSource? https://issues.apache.org/bugzilla/show_bug.cgi?id=47485
2
votes
0answers
2k views

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 ...
2
votes
0answers
892 views

Does Apache2 Configured as ReverseProxy Hide Cookies Set by Backend Servers?

I use Apache 2.2.16 as Reverse Proxy. For a static website, I don't have any issues. However, when began to use cookies, I've noticed that the browser is receiving a different cookie than what was ...
2
votes
0answers
292 views

mod_rewrite: internal rewrite to (fake) clean URL not possible.

This is more a why question. I'm using a CMS that handles clean URLs via mod_rewrite out of the box. Website has a section /accessories that now has to be renamed to /store. Being on lazy mode, I ...
2
votes
0answers
1k views

Making mod_proxy_http send back response asynchronously (w/o 100 Continue)

A servlet engine (Jetty) is running behind an Apache Httpd server, forwarded using mod_proxy_http. This is running a small servlet that accepts PUT requests and is authenticated using HTTP Basic ...
1
vote
0answers
21 views

How to use mod_cache with mod_proxy in Apache 2.4

The problem is getting proxied content to be cached by Apache 2.4. This problem was solved for Apache 2.2 (i.e. use mod_mem_cache). But in Apache 2.4 mod_mem_cache was removed. My upstream content ...
1
vote
0answers
107 views

Apache, Tomcat : How to use multiple SSL certificates on a single server

I am working on our Debian X64 server which is the endpoint for 5 domain-names. One of the domain-names is utilized by a web-project running on Apache web server. The remaining 4 domains have ...
1
vote
0answers
15 views

Apache 2.4 mod_proxy DNS failure

I have very strange problems with apache 2.4.18 mod_proxy on Debian Linux Testing with kernel 4.3.0 (amd64). I am using it as a forward proxy: ProxyRequests On ProxyVia On ProxyBadHeader Ignore ...
1
vote
0answers
21 views

Load balancing based on header value

I have apache2 load balancing working perfectly based on session affinity. Traffic does get directed properly to appropriate tomcat server. We are trying to use same servers to serve some REST API ...
1
vote
0answers
24 views

mod_rewrite and double slash issue

I am getting mod_rewrite and double slash issue can you please help me out. # ProxyPass /balancer-manager ! RewriteRule /phoenix/^(.*) http://phoenixstagingappa.scan-shipping.com:...
1
vote
0answers
87 views

apache mod_proxy call back to content server with client certificate

Setup ServerA Apache running a HTTPS site, which requires a client certificate to connect. see infos below regarding /etc/apache2/sites-available/secure.site.conf and /etc/apache2/mods-available/ssl....
1
vote
0answers
89 views

haproxy anonymous frontend, authorized backend with NTLM

Need to provide an anonymous readonly access to an svn repository AFAIK, haproxy cannot auth on backend by itself. There's a working configuration for haproxy with basic auth. How to migrate it to ...
1
vote
0answers
68 views

How to use mod_proxy to proxy one call to multiple endpoints?

We are in the process of migrating jobs from an old Jenkins CI server to a newly built one. In the meantime most of the repositories on our Git server (Stash) are configured to invoke a git-hook on ...
1
vote
0answers
42 views

mod_proxy_balancer does not remove dead servers

We use the current configuration (slightly obfuscated) to balance 2 web servers against 4 application (Tomcat) servers, using JSESSIONID; each web server has this exact same configuration for ...
1
vote
0answers
79 views

Enable/allow Proxy From Different Server With SSL

I have a node.js app on server A (http://sub.domainA). My customer wants to use this solution without redirecting. The configuration in .htaccess for the node.js service on server A looks like this. ...
1
vote
0answers
134 views

Dynamically Adding BalancerMembers to Proxy

Running Apache 2.4 I would like to be able to dynamically add BalanaceMembers via API to a balancer group in the proxy_balancer module. There are hints that this is possible. The documentation for ...
1
vote
0answers
396 views

Nginx always gives “502 Bad Gateway”

I am using axis2 web server. I want to access it through Nginx. Here is my nginx configs server { listen 443; server_name malintha.com; ssl on; ssl_certificate ...
1
vote
0answers
436 views

Lighttpd and Discourse (Docker): configuring mod_proxy

I have trouble configuring Lighttpd to serve the various services hosted on my server. Lighttpd acts as a front, and I have several DNS records, each for a different subdomain, redirecting to the same ...
1
vote
0answers
200 views

What does Nginx Proxy Filter in Fail2ban really do?

What does Nginx Proxy Filter in Fail2ban really do? I am currently setting up Fail2Ban for Nginx. Almost everywhere I've read, they all have included a setting for [nginx-proxy] proxy filter. From ...
1
vote
0answers
241 views

Apache mod_proxy cuts off URLs at spaces

I have the following proxy rule on www.example.com/.htaccess RewriteEngine On RewriteRule ^(.*)$ http://www2.example.com/$1 [P] Requests for http://www.example.com/images/properties/resized%...
1
vote
0answers
128 views

Apache2 HTMLURLMap messes with AJAX requests

I need to proxy a web application from oldname.my.net to newname.my.net For that I use apache with the proxy module like this # PROXY TO INTERNAL SERVER ProxyPreserveHost On RequestHeader ...
1
vote
0answers
390 views

Unable to do “big” POST request with Apache2 and ProxyPass

I have an apache2 server, configured with proxypass to access a servlet which runs under Jetty. Now I have a problem with large POST request (600KB). The configuration is as follows: <Location /...
1
vote
0answers
493 views

Apache mod_proxy not closing back-end sockets fast enough

I'm using Apache + mod_proxy for providing a chat application with Ejabberd. It's using Bosh (XMPP over HTTP). The issue is when a user closes its browser, Apache keeps the connection open with the ...
1
vote
0answers
347 views

mod_proxy with ProxyRemote absolute URL - preserve relative URL

ProxyPass / https://example.com/ ProxyRemote https://example.com/ http://proxy:8080 The setup works through the proxy, but using mod_firehose I see mod_proxy modifying the url to include the full ...
1
vote
0answers
588 views

Apache2 mod_proxy_fcgi closes a connection after each request

I set up mod_proxy_fcgi do go with apache and php-fpm. If I read the FCGI spec correctly, the typical flow for the communication between a server is to keep the connections between the web server and ...
1
vote
0answers
65 views

Proxy requests using Apache transparently

I am using Apache to forward an URL to another URL using mod_proxy transparently. To illustrate what I am doing, this is my Apache configuration file: <VirtualHost *:80> ServerName myurl....
1
vote
0answers
500 views

set up apache http server in windows as proxy to access another domain

I know this should be very basic and simple in theory, but I need to complete this task, I'm new to this and for some reason I can't find a suitable example that works for me. I am running apache 2.2 ...
1
vote
0answers
2k views

“ajp_read_header: ajp_ilink_receive failed”

We have Apache 2.2.24 in front of Tomcat 7.0.33. We're using AJP connectors with APR/native configured. I recently noticed a number of 500 errors in the Apache access logs for a small proportion (0....
1
vote
0answers
4k views

How to reverse proxy specific ports to a different server behind a firewall using Apache mod_proxy

I have two Web severs, one Apache 2 and the other IIS 8, and both are on a LAN behind a firewall. I have ports 80, 443, and 8080-8088 open on the firewall. I have an externally hosted DNS A record ...
1
vote
0answers
316 views

Apache mod_proxy + xinetd redirection to firewalled host + expecting JNLP back to client

My goal is fairly typical, so I am hoping that someone else may have implemented a similar setup before. External client Foo will be connecting to Bar, which is a server with an appropriate firewall ...
1
vote
0answers
801 views

apache proxyremote and http

ProxyRemote syntax is: <remote-server> = <protocol>://<hostname>[:port] So, I have to put protocol before hostname. But my proxy server is x.y.z.n:1234 (without http) And when I ...
1
vote
0answers
273 views

Prioritization of mod_proxy_html ProxyHTMLURLMap rules

I am implementing a reverse proxy with the following configuration: ProxyPass /home/ http://serverA.com/ ProxyPassReverse /home/ http://serverA.com/ <Location /home/> ProxyPassReverse / ...
1
vote
0answers
235 views

Apache: Setting up a reverse proxy configuration with SSL with url rewriting

There is a host: secure.foo.com that exposes a webservice using https I want to create a reverse proxy using Apache that maps a local http port on a server internal.bar.com to the https service ...
1
vote
0answers
923 views

Apache 2 proxy for Tomcat 7

Following the how-to, I wanted to make a proxy for traffic to the address /app to be processed by Tomcat 7. I added this to my httpd.conf: LoadModule proxy_module {path-to-modules}/mod_proxy.so ...
1
vote
0answers
97 views

ReverseProxy - send some URLs to another server for preprocessing

There is an existing application hosted on Apache. I want to send some urls(Post Forms) to another server(not apache - just a program) for some preprocessing. This is how this is organized 1) I have ...
1
vote
0answers
538 views

How to handle serlvet login redirects which cross reverse proxy virtual host boundary

I'm trying to setup the GlassFish application server behind an Apache reverse proxy. I've got it working with both port 80 and 443, but the problem is the transition between the two that occurs when ...
1
vote
0answers
84 views

proxying on localhost

2 Servers: Server 1 on 1 public IP, Server 2 on Local LAN. I have this working with a proxy on Server1 right now. But I need to add one localhost on Server2 which is NOT a recognized domain. So I am ...
1
vote
0answers
628 views

Long running process times out through an apache proxy but not when bypassing the proxy

So I have this tomcat based webapp. Part of this webapp lets you upload a file that then is checked against a backend database. This process takes a long time, up to 15 minutes in some cases. Now ...
1
vote
0answers
672 views

(apache `mod_proxy`) reverse proxy - how to reuse TLS sessions to origin server

I have set up a reverse proxy which can be accessed by http only, client requests are translated to http or https communication towards the origin server. Configuration is as follows: ...
1
vote
0answers
239 views

Apache mod_proxy site alias, alternative domains

Guys! Having a problem with apache mod_proxy, hoping someone can help Preface: We need a new domain (http://section1.info) to direct users to (http://domain.info/?q=section1) and maintain section1....
1
vote
0answers
805 views

mod_proxy_balancer with JBoss get many CLOSE_WAIT

We have a small web cluster for servering about max 400 concurrent user each day. We using : Apache 2.2.14 mod_proxy mod_proxy_httpd mod_proxy_balancer JBoss 4.2.2 GA Firstly we tried AJP and ...
1
vote
0answers
420 views

lighttpd 1.5 reverse-proxy to trac

I'm running lighttpd 1.5 freshly compiled off svn. I have a trac daemon listening on port 8000 and I want to proxy all requests matching ^http://xx.xx.xx.xx/trac(*.) to that daemon. Here is what it ...
1
vote
0answers
477 views

Tomcat fails on first request in combination with jsvc

I have a web application where the first request may take a few seconds as some singletons are initialised. I've used the mod_proxy and jsvc construction mentioned in this question and described on ...
0
votes
0answers
8 views

Websocket proxy on Apache connecting, but not returning data to client

I've almost got a working websocket to share port 443 with both WSS and HTTPS requests via Apache's mod_proxy module. The websocket client (in a browser) shakes hands, and connects. But then the ...