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.
46 questions
2 votes
2 answers
7k views
dynmap through mod_proxy on a external webserver
My setup consist of two servers, one for hosting websites and one for doing the heavy lifting (for example Minecraft). I am using Spigot to power some plugins and one of the plugins is dynmap (which ...
28 votes
6 answers
122k views
How can I enable logging for requests going through mod proxy
Is there a way to log requests going through mod proxy? I need a way to debug my configuration, because I don't seem to be getting where I should be. I need the following information: headers of ...
22 votes
3 answers
69k views
Intermittent error when using mod_proxy to do reverse proxy to SOAP service
I get this error every few minutes when using mod_proxy as a reverse proxy to a SOAP web service. There's probably 3 or 4 requests going per seconds so we're talking around 1 or 2 out of every ...
17 votes
2 answers
107k views
Apache URL rewriting in reverse proxy
I'm deploying Apache in front of a Karaf-hosted application (Apache and Karaf are on separate servers). I want Apache to operate as a reverse proxy and also to hide part of the URL. The URL to get ...
10 votes
1 answer
61k views
How to pass a request from one apache server to another
I have two Apache Servers with mod_proxy enabled. I want to know how to "pass the request" from "Apache Server A" to "Apache Server B" using the same port (80). In server ...
10 votes
3 answers
12k views
Understanding apache 2.4 mod_proxy_fcgi and RewriteRules in htaccess
We've recently switched one of our web servers to apache 2.4 and running PHP via php-fpm and mod_proxy_fcgi. Most everything works quite well, but there is one problem that I don't understand yet. One ...
7 votes
1 answer
3k 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 ...
6 votes
1 answer
9k views
ProxyPass only if file doesn't exist
I've seen this example: RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://app_cluster%{REQUEST_URI} [P,QSA,L] I need a similar thing that will delegate to mod_proxy (...
5 votes
2 answers
19k views
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 - http://www....
2 votes
4 answers
6k views
Absolute urls not working with Apache2 AJP proxy Tomcat
I don't seem to get how to configure ReverseProxy correctly. The URLs returned are all for the root directory "/", not "/tomcat" and only the main "default" tomcat page is displayed. I use Apache2 as ...
2 votes
1 answer
14k views
Apache server : Reverse proxy and websockets via mod_proxy_wstunnel
I have a little problem with the web sockets and my reverse proxy apache, i have upgraded in latest release 2.4.5 and loaded the module mod_proxy_wstunnel. The httpd.conf : <VirtualHost *:80&...
1 vote
1 answer
2k views
How to configure a system wide proxy for php file_get_contents on CentOS?
I want to let the php file_get_content function connect to network via system-wide proxy. I tried to add the following lines in /etc/environment: http_proxy=http://localhost:3128/ HTTP_PROXY=http://...
22 votes
2 answers
45k views
What is the use of ProxyPassReverse Directive
Definition from apache.org (ProxyPassDirective) says: This directive lets Apache httpd adjust the URL in the Location, Content-Location and URI headers on HTTP redirect responses. This is essential ...
20 votes
1 answer
18k views
Do Proxypass Directives need a ProxyPassReverse Directive?
Do all ProxyPass Directives need a ProxyPassReverse Directive? ProxyPass / http://foo.example.com:8080/ ProxyPassReverse / http://www.example.com/ I saw this snippet, and understand that all ...
10 votes
1 answer
42k views
Use apache as a HTTPS to HTTP Proxy
I'm trying to configure Apache on Centos 6 to proxy and reverse proxy traffic to an http server of a third party provider. The setup should work like this: https://mydomain.com/proxy/ proxies all ...
9 votes
3 answers
7k views
Apache Reverse Proxy Java Application Server CLOSE_WAIT Connections
I've got Apache setup as a reverse proxy for a Java Application server (GlassFish) and I noticed there are about 100 connections in the state CLOSE_WAIT even on an idle development system: sudo ...
9 votes
3 answers
17k views
Apache mod_proxy: forward secure websocket to non-secure
The websocket library I rely on (PHP-Websockets) does not yet support secure sockets (wss). My website is served over https though, so I cannot use insecure ws connections. I'm trying to use Apache's ...
8 votes
4 answers
34k views
REMOTE_USER through Apache reverse proxy
I have an Apache webserver with mod_proxy enabled and a Virtualhost, proxy.domain.com. This proxy is configured to prompt the user for credentials with AuthType Basic. Then, the content of web.domain....
7 votes
3 answers
28k views
Apache ProxyPass Missing Images
I have a apache server that sits in front of my glassfish server. mydomain.com goes directly to my static files on apache, than if you hit the subdomain forum.mydomain.com it goes to the glassfish ...
7 votes
2 answers
14k views
Rewrite URL before passing to proxy Lighttpd
I'm trying to setup a reverse proxy in lighttpd, such that all requests (and only those requests) under /mobile/video is redirected to the / directory of a secondary web server. This is pretty easy in ...
6 votes
3 answers
20k views
IPtables block port 8080 but not for localhost
Currently I have an application that is running on 8080 front-ended by mod_proxy. <Location /hudson> Order allow,deny Allow from all ProxyPass http://...
3 votes
2 answers
8k views
mod_proxy proxy and redirect to specific path
Today I have two Apache Servers, Server A (192.168.0.5), Server B (192.168.0.10), both running at the same 80 port. The actual request is from server a and the with my configuration it pass to server ...
3 votes
2 answers
13k views
How to properly use VirtualHost and mod_proxy together for different incoming domain names and internal ports?
I am trying to setup httpd.conf properly but regardless of the sub-domain/domain combo below, they all resolve to the same internal URL. <Proxy *> Order Allow,Deny Allow from all </Proxy&...
3 votes
1 answer
12k views
How can I get apache to serve static content in a reverse-proxied setup?
I have a setup where my Tomcat instances are fronted with Apache servers with mod-proxy. I need to serve static content on the reverse-proxy side in case authentication closes my app session (heavy ...
3 votes
1 answer
8k views
apache mod proxy to another domain with relative paths
We have an apache virtual host www.example.com now Im trying to get www.example.com/mypath to go to load the pages from www.example1.com using mod_poxy i have it with a base ProxyPass /mypath http://...
3 votes
1 answer
4k views
Apache 500 when proxying URLS with %20 via mod_proxy
We are receiving a 500 out of Apache while proxying calls to tomcat when there is an encoded space in the URL. We are migrating an application that ran fine on a J2EE container which had an older, ...
3 votes
1 answer
11k views
Mod-proxy with query string alternatives?
I am currently trying to use mod_proxy to make search requests on another server. The remote server requests must be structured as follows: http://path.to.remote/search.php?key=MYKEY&term=...
2 votes
1 answer
2k views
How to turn on mod_cache with mod_proxy or mod_jk
I'm trying to setup apache+mod_jk/mod_proxy with mod_cache. But it looks like all proxied requests are ignored by mod_cache. May be it is related to module handling order or something else? Apache 2....
2 votes
5 answers
22k views
Trying to redirect a url to another page by IP range
I'm having a bit of a trouble here. I have this several rewrite rules which I think does not work. My main purpose is to restrict pages and allow only specific IP or network block. RewriteEngine On ...
2 votes
1 answer
3k views
Apache2 proxy Tomcat6 prevent 503 error while starting
While tomcat6 is starting up all my http requests are retained by the server and sends the response when the server is up. But when I use an apache2 as a proxy the apache2 responds inmediatly a 503 ...
2 votes
0 answers
461 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 ...
2 votes
1 answer
3k views
Apache as a proxy for Nexus, Jenkins and Foreman (Several VirtualHosts on same domain, IP and Port)
I'd like to configure Apache to be used as a proxy for Nexus, Jenkins and Foreman which are installed and running on the same server. Here is an example of the Virtual host config file for Foreman, ...
2 votes
2 answers
2k views
How can I force mod_rewrite to send user info component of a URI?
A colleague recommended I repost this from StackOverflow to ServerFault: This has been driving me crazy. I have a web application that's being served via Apache Web Server. The database server that ...
1 vote
3 answers
3k views
Forcing Apache 2.4 to cache files with query string using mod_cache without expires
I need to get mod_cache_disk to cache a site containing query strings. The issue is that it's a vendor product on IIS that we're trying to cache through mod_proxy and it does not contain expires ...
1 vote
1 answer
6k views
Apache Virtual Host SSL Behind Reverse Proxy
I have a web server (Apache reverse proxy) in front of my app server (Apache) and I'm trying to pass common name for SSL. My web server (Apache reverse proxy) is setup to preserve hostname (...
1 vote
1 answer
4k views
RedirectMatch redirect every url to https except few urls
At present I am redirecting all http urls to https urls using the following directive, RedirectMatch permanent ^(.*)$ https://someserver.com$1 Now I am stuck with an scenario where I have to redirect ...
1 vote
1 answer
2k views
Zimbra 7.2 reverse proxy to arbitrary internal website?
I have ZCS 7.2 opensource installed at webmail.domain.com and mailman on mailman.domain.com/mailman. I wanted to setup a proxy so that when someone goes to webmail.domain.com/mailman, the proxy ...
1 vote
1 answer
2k 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
1 answer
2k views
Graphiti / Graphite using Apache with Proxy and BasicAuth requests auth for every URL / request
We have a server with apache set up as an authentication front end for a backend web service running on the same box. The setup seemed to work at first, but we soon realised that apache was asking ...
0 votes
1 answer
11k views
Custom Apache ErrorDocument with proxy balancer & RewriteEngine
I'm running into various problems trying to add custom ErrorDocuments to my server. I'm using proxy balancer to share the load between two instances of Zope and some simple rewrite rules to map my ...
0 votes
1 answer
1k views
mod_proxy tomcat
I've asked this question in a few places and I've found no answer. It should be pretty simple and a pretty common problem. Unfortunately I know nothing about tomcat and mod_proxy so I'm unable to ...
0 votes
1 answer
6k views
HTTP proxy - expect 100 and authentication
I have an issue with Apache2 which I use as a proxy. My software sends HTTP PUT for protected resource with Expect: 100-continue Transfer-Encoding: chunked And instead of getting '401 Unauthorized' ...
0 votes
1 answer
6k views
nginx reverse proxy, ssl offloading, caching and pagespeed all in one.
We currently host everything on windows IIS 7 servers. We just moved to Azure, and like many clouds hosting windows is more expensive than hosting linux. Azure has its own limitations for virtual ...
0 votes
1 answer
1k views
Httpd Location directive seems to suppress Substitute
I'm trying to hide a PWM registration page (whose URL is /pwm/public/newuser) behind the existing server http://customers.example.com, under the reserved path /register, so that pages like http://...
0 votes
1 answer
1k views
How to use mod_proxy to let my index of Apache go to Tomcat ROOT and be able to browse my other Apache sites
I am trying to use my Tomcat application (deployed at ROOT) to be viewed from Apache port 80. To do this, I used mod_proxy, since mod_jk made me try harder. I used sth like this in httpd.conf: <...
0 votes
1 answer
1k views
mod_rewrite to replace all dots with underscores after path
I've been through all tagged questions here and on SO, but my problem is different because of either/both needing to replace "." with "_" comes after a particular path and I'm running through a ...