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
2
votes
1 answer

Apache2 graceful restart stops proxying requests to passenger

Issue with apache mod proxy, it stops proxying requests after a graceful restart but not all the time. It seems to happen only on a Sunday when a graceful restart is triggered by logrotate. [Sun Sep 9 05:25:06 2012] [notice] SIGUSR1 received. …
Rob
  • 247
  • 1
  • 3
  • 13
2
votes
0 answers

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 sent by the backend server. I confirmed this with…
2
votes
1 answer

mod_proxy Fowarding Based on Request Host Header

Lets say I have 3 URLs and they all point to the same reverse proxy. I would like to have the requests being forwarded to the web servers behind the proxy based on the host header: webfront1.example.com > reverseproxy.example.com >…
zigzagip
  • 21
  • 2
2
votes
2 answers

How to stop bots from overloading my slow-performing web application?

We have a situation where bots comprise 40% of page requests for a slow-performing web application. Short Term Relief As immediate relief, I thought of doing the following: Setting up another instance of the application pointing to a slave copy of…
user50460
  • 315
  • 1
  • 2
  • 8
2
votes
1 answer

mod_proxy: pass path from original request to proxied app

I'm struggling with reverse proxying an app running in a Tomcat server on a closed port behind Apache. For convenience, say that I want to reverse proxy requests for 'http://mydomain/apps/my_app/' to the Tomcat app at 'http://localhost:8082/my_app/'…
rvdb
  • 319
  • 1
  • 5
  • 14
2
votes
1 answer

apache - mod_rewrite + mod_proxy working in staging, not working in production ( [P] option ignored )

I have set up a redirect in my Apache virtual host serving several subdomains - call them a.example.com and b.example.com - serving a ruby on rails app. On my virtualhost config file I have this rule: rewriteEngine on rewriteRule proxy/(.+)$…
egarcia
  • 175
  • 13
2
votes
0 answers

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 just wanted to do an internal rewrite using…
2
votes
1 answer

apache httpd keep sending http requests to strange IPs

Recently I noticed my server keeps sending data to strange location "121.11.76.48" by netstat -na . To find out what it is sending , I tried : tcpdump -i eth0 host 121.11.76.48 -nnvvXSs 1514 And found it keeps sending HTTP requests to this location…
smallufo
  • 199
  • 2
  • 8
2
votes
1 answer

apache and mod_proxy: How can i log which worker was selected?

we are runing an apache reverse proxy in front of several tomcats. sometimes we like to know to which server the request was forwarded. as we use mod_proxy_balancer. i tried \"%{X-Forwarded-Server}i\" but this doesn't work. it shows the name of…
Janning
  • 1,421
  • 2
  • 21
  • 38
2
votes
1 answer

How to use Apache to proxy from subfolder to other server

Given the following url: domain.com/wiki/ I'd like apache to redirect all requests below that (so domain.com/wiki/*) to otherdomain.com:8080/. But the trick is I want the user to always see domain.com/wiki/. And the webapp on otherdomain thinks…
omeyn
  • 23
  • 1
  • 3
2
votes
1 answer

apache2 mod_proxy without 301 moved permanently?

Is it possible to not send a 301 moved permanently response to the client when using mod_proxy? I would like the client to deal with the reverse proxy as opaquely as possible. My Virtual Host Settings: relevant snippet: ProxyPreserveHost…
Guy Sensei
  • 121
  • 1
  • 4
2
votes
2 answers

How to configure both apache and tomcat on same url?

Say I have a registered URL mywebsite.com pointing to my server with a public IP address. I want to run both tomcat and apache to serve pages (i.e., some static pages on apache and some dynamic pages on tomcat, like jsp etc...). For the sake of…
Jérôme Verstrynge
  • 4,787
  • 7
  • 24
  • 35
2
votes
1 answer

GAE dev server behind Apache proxy sometimes slow

As the Google App Engine development server only serves one file at a time, I decided to have static resources served instead by: Apache 2.2.17 / XAMPP 1.7.4 / WinXP32. Requests for dynamically created resources are routed to the GAE development…
2
votes
1 answer

lighttpd and mod_proxy with PHP

I am trying to create a rather complex setup using a combination of lighttpd, some custom Ruby proxies, rails/ramaze (running on Thin), and PHP. Currently it is setup like this: A browser issues the request which hits the lighttpd frontend.…
Gary13579
2
votes
0 answers

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 the rub is that I'm getting timeouts at the 5…
Dan R
  • 255
  • 1
  • 3
  • 13