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

Apache mod_proxy with hostname

I need to proxy the URL http://de.domain.com/article1/foobar/ to http://de.foobar.domain.com/article1/. I already have this config. ProxyPassMatch ^/([a-zA-Z0-9]+)/foobar/$ http://de.foobar.domain.com/$1/ But I need to redirect the language in the…
Mischa
  • 145
  • 1
  • 9
0
votes
1 answer

Rewriting domain part in a reverse proxy - mod_proxy

I have a couple of internal websites that I want to make them available to the Internet with new domain names. I'm thinking of a reverse proxy frontend and I need it to direct all requests like so: ([^\.]*)\.company\.com --> $1.internal I know this…
Mehran
  • 519
  • 1
  • 5
  • 20
0
votes
1 answer

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 machines (as compared to AWS) since you can really…
Frank
  • 119
  • 3
  • 11
0
votes
1 answer

mod rewrite on apache on virtualhost to point to jboss

I set my apache server with ajp to connect to my jboss server and it is working fine. But when I go to my domain http://mydomain.com, I see the jboss root page. I was wondering if I could use mod rewrite so when they type http://mydomain.com it gets…
Juan Diego
  • 179
  • 1
  • 1
  • 11
0
votes
1 answer

Apache httpd.conf redirection. How to "balance" app

This is probably a simple problem but I just can't seem to solve it! I have a website running 2 Apache Tomcats on different ports (e.g. 8080, 8085). However since my customers cannot access specific ports (their firewalls prevent this) they can only…
Phil
  • 109
  • 2
  • 8
0
votes
1 answer

apache module to perform search and replace operations on response bodies?

I am trying to do search and replace operation on response bodies using a transparent apache reverse proxy configuration, the below config using "mod_substitute" and "mod_proxy" works as expected : ServerAdmin…
iTech
  • 355
  • 4
  • 15
0
votes
1 answer

Apache rewrite rule (mod_proxy or mod_rewrite)

I need to rewrite a incoming request for a particular file. The file will have a suffix of .rtfx and I need to remove the host (http://www.host.com/) and replace it with another. Request *.rtfx file Request is…
Thomas Vincent
  • 1,110
  • 6
  • 13
0
votes
1 answer

Apache proxy, ProxyPreserveHost On , keep looping

i have two domain Domain A : www.fakedomain.com , this is the domain in the client, the idea is just proxy to mainblog when the url is http://www.fakedomain.com/blog Domain B : www.mainblog.com ,this is to have a multisite wordpress…
Joyal
  • 101
  • 1
  • 6
0
votes
1 answer

Apache ProxyPass Virtual host

I'm trying to do a similar setup to the one discussed in this older thread. I've enabled the proxy_module, proxy_connect_module, proxy_http_module, and rewrite_module. It worked, but now when I go to domain.com it takes me to the ipcamera. I…
Elliott
  • 3
  • 1
  • 2
0
votes
1 answer

Apache website Subfolder served by another server, not on the same local network

I'm setting up 2 ubuntu servers in different locations, one blog, one forum. I was going to use a subdomain for the forum but decided instead to make it a subfolder, example.com/forum. Is there a way to get Apache on server 1 to redirect requests to…
Carl
  • 38
  • 3
0
votes
1 answer

How does mod_proxy determine which IP address to load from when there are multiple A records

So I have mod_proxy setup pointing at ProxyPass / http://www.mydomain.com/ ProxyPassReverse / http://www.mydomain.com/ and www.mydomain.com has 4 A records (ie DNS load balancing) will mod_proxy pick 1 ip from that list for all it's worker…
Glenn Slaven
  • 2,400
  • 2
  • 30
  • 42
0
votes
1 answer

mod_proxy module in tomcat for development environment

I've a webapp deployed on tomcat server A, which is dependent on a couple of wars deployed on a different tomcat server B. I've a proxy web server (apache) which I've configured to redirect requests to servers A or B based on the url pattern. As a…
0
votes
1 answer

ProxyPass with 2 cases

Having these two rules works good: ProxyPass / http://localhost:8080/app ProxyPassReverse / http://localhost:8080/app When client visits, domain.com, Apache calls app server and it works as expected. Problem is that there is one directory,…
jacktrades
  • 622
  • 3
  • 8
  • 17
0
votes
1 answer

Apache 2 reverse proxy to ssl local networked lamp app server - 95% working, except first page login redirection

Dived into the joys of using apache as a proxy. Awesome. There is a learning curve to deal with but the payoff is well worth it! I took the virtual host approach to benefit from having the same urls whether I access locally or externally. Everything…
stefgosselin
  • 257
  • 1
  • 4
  • 14
0
votes
1 answer

Using apache ProxyPass to forward URL on new site to old webserver

We are currently moving our site to a CMS, and in the process moving to a different server. There is some code on the older server that we do not want to move to the new server. We want the URLs to be the same, so we have been looking at (and…
jmlumpkin
  • 197
  • 1
  • 2
  • 10