Questions tagged [mod-proxy-html]

mod_proxy_html is an output filter to rewrite HTML links in a proxy situation, to ensure that links work for users outside the proxy. It serves the same purpose as Apache's ProxyPassReverse directive does for HTTP headers, and is an essential component of a reverse proxy.

32 questions
23
votes
1 answer

ProxyHTML to rewrite URL

I've got 2 apache servers set up. One on port 80 and another on port 8077. I'm wanting to see everything on the server on 8077 via a reverse proxy. At the moment I've got: ProxyPreserveHost Off ProxyHTMLInterp On ProxyPass /translate/…
Andrew
  • 7,548
  • 7
  • 50
  • 72
5
votes
1 answer

Setting up mod_proxy_html on CentOS 7

I'm trying to do some testing on my web server to make sure reverse proxy is working as expected before putting it on a live environment, but I am running into some problems with mod_proxy and mod_proxy_html. I have 2 virtual hosts, 1 on port 80…
bqq100
  • 55
  • 1
  • 5
4
votes
2 answers

Apache Reverse Proxy Sending Browser to Backend Directly Instead

(UPDATE at the bottom for the main question, below may be superfluous details) I'm having an interesting problem with Apache not reverse proxying as expected. Basically, what's happening is when I click a link on my website that goes to the relative…
Hypino
  • 1,240
  • 14
  • 28
3
votes
1 answer

Is there a way to get ProxyHTMLURLMap to match more than once per tag attribute?

I have a problem that seems to be caused by resources being called with img tags that look like this:
Jacob Margason
  • 612
  • 4
  • 13
3
votes
0 answers

mod_proxy_html and Apache 2.2.29: parse all and turn them in real http headers

I'm using Mamp 3 (pro) on Mac OS X Yosemite 10.10; I'v already compiled and installed mod_proxy_html (3.1.2) and mod_xml2enc, they are both correctly loaded by Apache 2.2.29 without issues. This is my typical html file:
G.S.
  • 51
  • 4
3
votes
3 answers

Apache reverse proxy wraps JSON response in HTML

Apologies in advance if this question has been asked before (couldn't find anything quite like it), or is just painstakingly obvious and I'm just a moron for asking. I'm using Apache 2.4 to reverse proxy a couple of internal pages and web apps. I've…
3
votes
1 answer

Undefined symbol when loading Apache2 mod_xml2enc

I am so frustrated installing reverse-proxy-related modules to Apache2 HTTP server on a CentOS 5 box. Since it's an old version of Apache2 server, I had to compile the modules from source using Apache tool 'apxs'. I got no warnings or errors…
Will Cheng
  • 199
  • 1
  • 7
3
votes
1 answer

Replacing json-encoded URL with mod_proxy_html

I've currently installed a reverse proxy. An apache is doing this job. So I configured mod_proxy to adapt the urls. I also use mod_proxy_html to adapt HTML- and JavaScript-Links. Now I've got a problem with an ajax call which returns an json-encoded…
Jimmy Blue
  • 91
  • 2
  • 7
3
votes
1 answer

How can I rewrite URLs in XML with Apache 2.4?

Apache 2.4 includes mod_proxy_html and that's great, it's catching all kinds of URLs inside the HTML coming back from the server and fixing them. But I've got a Seam app that sends back text/xml files to the client sometimes with fully qualified…
John Munsch
  • 19,530
  • 8
  • 42
  • 72
2
votes
3 answers

APACHE 2.4 Remote Proxy mod_substitute and ProxyHTMLExtended don't work

I built a reverse proxy with Apache 2.4 on a cento's 7 server. It works with standard html pages but i need to substitute some url stored in .js files too. The directive: ProxyHTMLExtended On should enable the parsing inside external .css and .js…
S.Succi
  • 21
  • 1
  • 3
2
votes
0 answers

Installing mod_proxy_html on docker httpd 2.1

I'm currently working on my reverse proxy using docker image httpd 2.4. I followed this guide to configure the httpd.conf. However, I am currently stuck at configuring ProxyHTMLURLMap. This needed the module mod_proxy_html.so which is not included…
3vilwyatt
  • 21
  • 1
2
votes
1 answer

Apache ProxyHTMLURLMap is adding my target URL twice

I'm not sure what's happening here. But for some reason my returned URLs that come back from the actual server looking like this:
IanG
  • 1,459
  • 3
  • 13
  • 18
2
votes
1 answer

Apache Reverse Proxy erases

this is my first post here. I've already searched the forum for a related issue, but none of the results seems to solve my issue. The setup is: There is a MS Sharepoint 2010 deployed on IIS 7 in an internal customer network. This seems to behave…
Juan Cruz
  • 21
  • 3
2
votes
0 answers

Adding i18n using subfolder technique and a Proxy

I've a webapp running on context "/" and I want now to internationalize it using a subfolder technique. I want the same site previously hosted under http://www.mysite.com/ now to serve different languages content under the…
spike07
  • 809
  • 2
  • 12
  • 21
2
votes
0 answers

Java website on Tomcat PHP website on Apache - how to get PHP web pages into Java web pages?

We have a Java web application deployed on Tomcat. We also setup Apache and mod_proxy_ajp to route web requests (port 80/443) to Tomcat. We would like to deploy a PHP application on the same Apache server - probably under a subdirectory…
1
2 3