Questions tagged [mod-proxy]

mod-proxy is the proxying module for the Apache HTTP server.

mod-proxy is the proxying module for the Apache HTTP server.

Questions with this tag should relate directly to the use of this module. Questions about mod-proxy-balancer should use that tag rather than this one.

848 questions
201
votes
8 answers

NGINX to reverse proxy websockets AND enable SSL (wss://)?

I'm so lost and new to building NGINX on my own but I want to be able to enable secure websockets without having an additional layer. I don't want to enable SSL on the websocket server itself but instead I want to use NGINX to add an SSL layer to…
crockpotveggies
  • 12,682
  • 12
  • 70
  • 140
113
votes
3 answers

apache to tomcat: mod_jk vs mod_proxy

What are the advantages and disadvantages of using mod_jk and mod_proxy for fronting a tomcat instance with apache? I've been using mod_jk in production for years but I've heard that it's "the old way" of fronting tomcat. Should I consider changing?…
cherouvim
  • 31,725
  • 15
  • 104
  • 153
68
votes
4 answers

Authorization header missing in django rest_framework, is apache to blame?

I've managed to extend TokenAuthentication and I have a working model when using the request session to store my tokens, however when I attempt to pass Authorization as a header parameter as described here, I noticed that my Responses come back…
56
votes
10 answers

Bad Gateway 502 error with Apache mod_proxy and Tomcat

We're running a web app on Tomcat 6 and Apache mod_proxy 2.2.3. Seeing a lot of 502 errors like this: Bad Gateway! The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET…
Alex Miller
  • 69,183
  • 25
  • 122
  • 167
48
votes
5 answers

Apache 2.4 + PHP-FPM and Authorization headers

Summary: Apache 2.4's mod_proxy does not seem to be passing the Authorization headers to PHP-FPM. Is there any way to fix this? Long version: I am running a server with Apache 2.4 and PHP-FPM. I am using APC for both opcode caching and user…
CodeTwice
  • 2,926
  • 3
  • 18
  • 18
45
votes
2 answers

Proxying with SSL

I have a Linux host running Apache and a Windows host running IIS. I have a domain that points to the Linux host and need to relay (proxy) requests for it to IIS; I thus have the following virtual host definition in Apache (which works just…
ekkis
  • 9,804
  • 13
  • 55
  • 105
40
votes
2 answers

Setting up an Apache Proxy with Authentication

I need to set up a proxy with authentication to verify the behavior of an application that connects to the internet. I am trying to set-up an Apache installation with forward proxy and authentication, and even though I am close to make it work, I…
Mario Ortegón
  • 18,670
  • 17
  • 71
  • 81
32
votes
2 answers

Redirect to other domain but keep typed domain

After looking on the internet for about an hour, I didn't find the answer to my question. So I'm searching with the wrong keywords or what I want is not possible. What I want: I have multiple domains with different extensions, for…
Timo002
  • 3,138
  • 4
  • 40
  • 65
32
votes
2 answers

Apache + Node.js + mod_proxy. How to route one domain to :3000 and another to :80

Problem: I need to host a Node-application and a php-application on the same server on different domains. example.com should use port 80 as normal, but node-example.com should route to port 3000. Routing ALL traffic from port 80 to 3000 works fine…
olke
  • 321
  • 1
  • 3
  • 4
26
votes
5 answers

Ajp invalid message received with signature

I am using Tomcat 7.0.29 fronted with Apache 2.2.22 modproxy. Configured Ajp as the protocol in httpd.conf and AjpNioProtocol in server.xml. After the server starts, the logs are filled with the following message: Severe: Invalid message received…
Yasser
  • 575
  • 1
  • 4
  • 19
25
votes
1 answer

Is it possible to ignore an Apache proxy'd certificate

For background information: (Question at bottom) I'm trying to connect to a client, who has 8 servers, all of which have unique IP addresses. The client uses the same SSL certificate on all the servers (for this example, cert name ==…
Gwynnie
  • 404
  • 1
  • 5
  • 12
24
votes
3 answers

Retain original request URL on mod_proxy redirect

I am running a WebApplication on a Servlet Container (port 8080) in an environment that can be accessed from the internet (external) and from company inside (intenal),…
FrVaBe
  • 47,963
  • 16
  • 124
  • 157
22
votes
2 answers

Apache2 Reverse Proxy to an end-point that requires BasicAuth but want to hide this from user

Basically my scenario is that I have an internal website that requires a SINGLE hard-coded username and password to access (and this can't be turned off, only changed). I am exposing this website through a reverse proxy for various reasons (hiding…
Bo Jeanes
  • 6,294
  • 4
  • 42
  • 39
22
votes
2 answers

tunneling secure websocket connections with apache

I have an Apache running that is only accessible via HTTPS. I want to serve websockets from an additional server application which runs on the same machine, but since it is not possible for clients to connect on another port than 443 to our server,…
mstud
  • 413
  • 1
  • 4
  • 13
21
votes
3 answers

Apache + Tomcat: Using mod_proxy instead of AJP

Is there any way I connect Apache to Tomcat using an HTTP proxy such that Tomcat gets the correct incoming host name rather than localhost? I'm using this directive in apache: ProxyPass /path http://localhost:8080/path But it comes through as…
Marcus Downing
  • 10,054
  • 10
  • 63
  • 85
1
2 3
56 57