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.

Filter by
Sorted by
Tagged with
0
votes
1answer
13 views

How to rewrite urls using ProxyHTMLURLMap?

My urls are in this form /sites/site-name/Subpath-2/page-name.page /sites/site-name/Subpath-3/Subpath-4/index.page And this should be rewritten as /sitename/subpath/pagename (the extention .page is ...
-1
votes
1answer
19 views

Apache WebSockets “400 proxy error”

We're trying to present the WebSocket-enabled interface from a remote device on our website. I've configured the WebSocket tunnel in Apache, but I'm getting a "400 Proxy Error" in Firefox (...
1
vote
0answers
53 views

how to config apache reverse proxy for multiple jboss remote instances?

I need to setup an apache reverse proxy with multiple jboss instances as target server (with different IP). I've already set in my DNS an url http://jboss-test.domain.com and i would like to redirect ...
2
votes
0answers
13 views

Apache Proxy URL exclusion wont work

we are running an Apache/2.4.6 on CentOS. i am trying to setup an Proxy Endpoint on the Apache which is passing requests to internal Servers (target servers). So far the Endpoint does what it should, ...
1
vote
0answers
35 views

is this configuration correct?

I try to configure an apache load balancer to manage how server status becomes error and how the server status becomes OK. The apache version is 2.4 . I understood that a server state is error when a ...
0
votes
1answer
36 views

Apache 2.4 ignores mod_proxy?

I am installing a new server with Debian 10. I configured a virtual host to direct some requests to a TomEE (8.0.6) server. This server is responding on port 8080. The Apache configuration looks as ...
0
votes
0answers
26 views

Apache 2.4 Proxy for Node Express Backend. HTTPS to HTTP Proxy timeouts

The setup that I have is using Apache 2.4 with SSL that I need to proxy connections to my node express backend server process running as an http server. I have added ProxyPass http://127.0.0.1:...
1
vote
1answer
64 views

Apache ProxyPass + RewriteRule?

I've set up an apache config to try to redirect /login and to ProxyPass all other requests: RewriteEngine on RewriteCond "%{REQUEST_URI}" "^/login$" RewriteRule "^/login$"...
2
votes
1answer
41 views

Apache rewrite proxy only homepage

I've tried various regular expressions (^/$, ^index.php$, ^$) to rewrite/proxy just the homepage of a WordPress website through .htaccess. For the record I have the appropriate modules loaded to ...
1
vote
0answers
76 views

How to use UNIX domain sockets behind Apache / mod_proxy_uwsgi?

On my development system I'm running a Flask WSGI application with uwsgi and nginx. However on the production server I need to use Apache instead of nginx, so I'm trying to do that. In nginx the site ...
0
votes
0answers
14 views

Is it possible to enable Apache Proxy Cache on the error status responses (403 or 404) too?

We are using Apache Web Server (HTTPD) as a proxy for the Angular Universal (SSR) app. The cache works fine while the response status code of Angular App is 200. We confirm that cache works properly ...
0
votes
1answer
58 views

Apache proxy pass does not work with HTTPS

I want to redirect a certain sub-path to a backend application running at port 19011. My config file (/etc/apache2/sites-available/my_domain.conf) looks like this: <VirtualHost *:80> ...
0
votes
1answer
36 views

Apache proxy configuration (webapp resources URL truncated)

I'm trying to set up a proxy in an Apache web server but I have an issue about the build of URL beacause in the resulting URL part of the path is missing. An example: http://server/webapp/style.css (...
0
votes
0answers
44 views

mod_evasive issue with mod_proxy

I have Apache 2.4 with mod_evasive enabled. Below is the config DocumentRoot /static Alias /static /static ProxyRequests Off ProxyPreserveHost On ProxyPass /api http://...
1
vote
1answer
38 views

Apache: Dynamic Reverse Proxy

is it possible to have an Apache server dynamically proxy all requests defined by a subdir? Like: https://proxy.example.com/host1 -> https://host1.example.com https://proxy.example.com/...
0
votes
0answers
294 views

Apache as a reverse proxy: pass request body failed

I'm using Apache and mod_proxy as a reverse proxy to reach a distant API. I used the same directives for two different distant website, and it works fine for the first, but I get the following error ...
1
vote
0answers
65 views

Apache mod_rewrite P flag is rewriting URL unexpectedly

I've recently received a request from the site owner to redirect our base domain to a specific landing page on a subdomain, which is working just fine. The problem is that he wants the URL to remain ...
0
votes
0answers
50 views

Http Connect Tunnel between client and End Server via Apache as Forward Proxy

I am trying to use Apache2.4 as a forward proxy between my Client and End Server. When I initiate a https request from my client, the request is a CONNECT one that lands on proxy server but further ...
0
votes
1answer
35 views

A proxy with a fixed URL that alters certain file types?

I need to make a mirrored website with a slightly different info. spawning up a new server for each site is too much work, and takes a lot of effort to update. most of the content should be intact, ...
1
vote
0answers
28 views

Apache graceful stop waiting for rewrite requests

I am using Apache as a reverse proxy, and mod_rewrite to pass on the requests to backend services for handling. I want to use Apache graceful stop, to allow in-flight requests to complete, however, it ...
0
votes
0answers
52 views

Rewrite with [P] flag lands in wrong vhost

I have a an old and a new site with 2 different urls, I'm trying to redirect the old urls to the new one with the proxy [p] flag. It works as expected, but it's landing in the wrong virtual host ...
1
vote
0answers
709 views

How can I configure a reverseproxy (at /) and a Laravel project (at /backoffice/) running in the same subdomain?

I'm trying to configure on Apache a subdomain that should: Serve a PHP Laravel app if the request starts with /backoffice ReverseProxy to a node app otherwise. I can configure the reverse proxy and ...
-1
votes
1answer
70 views

Apache proxy direct subtree to another server

I have a server which currently redirects everything to a web app running in a docker container on the same machine. I would like to direct urls beginning /mail to an instance of mailcatcher running ...
1
vote
0answers
2k views

Intermittent proxy error in Apache: “Partial results are valid but processing is incomplete” with “AH01110: error reading response”

I'm using Apache 2.4.43 on CentOS 7.8 with Varnish 6 and PHP-FPM to serve a Magento 2 website. Varnish listens on port 80. Apache listens on 8080 to serve content to Varnish, and also port 443 which ...
0
votes
0answers
93 views

Apache forward proxy with mod_rewrite

The Story: I've to (forward) proxy a request - whith certificate checking - to a site which has more than 96 character long URL. The Apache mod_proxy implementation doesn't work URLs that longer 96 ...
0
votes
1answer
132 views

Apache ProxyHTMLURLMap with string substitution from LocationMatch

I am trying to build an Apache reverse proxy to make a set of servers accessible through a single point of access. The servers all offer a web admin interface on port 3000, and I intend to present all ...
0
votes
1answer
26 views

Route traffic from certain site/url to a number of hand-picked nodes in a load balanced environment

I inherited a loadbalancer (mod_proxy) setup consisting of 5 nodes. The setup serves a number of 6 sites (site1, site2 etc, with shared disk space) and would like to know if there is a way to route ...
2
votes
0answers
446 views

Apache2 mod_substitute not working in <Location>

I have a working Reverse Proxy that is active only on a specific Location in my site, in this case for example: www.example.com/reverseproxy/site1 I am reverse proxying site1. I want to replace some ...
0
votes
0answers
78 views

Configure Apache Web Server (shared hosting) to provide simultaneous Web and Websocket Access

I'm trying since some days to find a way to configure simultaneous websocket and web server connections with one same Apache Web Server I have on a shared hosting basis. Now, before giving that up and ...
0
votes
0answers
15 views

Downloading files to proxy server

I have a bunch of Raspberry Pis that users will periodically download files to. All the files are stored on a my web server. I figured the easiest way for them to download the files would be to ...
0
votes
0answers
25 views

Apache2 mod_proxy with external 303 redirect

I have a small server applet being hosted externally through apache2's mod_proxy. The internal applet is hosting through port 8080. When I query the path internally: Query: http://localhost:8080/...
0
votes
1answer
25 views

What components of a url are rewritten with apache mod_proxy in a Location tag?

<Location /partA> ProxyPass https://example.com/partB ProxyPassReverse https://example.com/partB </Location> What URLs are called on the remote server? http://example.net/testA/...
2
votes
1answer
11k views

how to fix apache2 “proxy_http:error” AH01102: error reading status line from remote server localhost:4382

how to fix apache2 "proxy_http:error" AH01102: error reading status line from remote server localhost:4382. I have an apache2 webserver which is being used to serve few nodejs applications in the ...
1
vote
1answer
77 views

Does Apache reverse-proxy pipeline requests to origin servers?

When configuring Apache as a reverse proxy (i.e. using ProxyPass or RewriteRule [P]), does it ever pipeline the requests to origin servers, or are they always sent non-pipelined? This is important to ...
0
votes
1answer
198 views

Issue with configuring php-fpm mod proxy on centos 6

I'm configuring PHP_FPM on a Centos 6 distribution. I'm using php 5.4.45 and apache 2.2.15 and the "mod_proxy.so" to call the socket. But with the following Vhost and php-fpm configuration I still get ...
0
votes
0answers
255 views

Nginx: How to map the internal Ip addresses and proxy using ngrok without redirecting

I have two device which can be accessed only using internal network. To access it externally i have installed nginx in raspberry device and added a redirect within nginx like location /device1 { ...
0
votes
0answers
83 views

apache2 mod_proxy working awesome for http://urls and not for https://urls for curl requests

I have proxy setup with apache2 mod_proxy, Note: I did not change proxy port When I try curl -x http://proxyurl:80 -L http://destinationservice.com Now it works, but when i try with https://...
0
votes
1answer
44 views

Using Apache2 mod_proxy to different server while keeping .htaccess rules somehow working

I am trying to move a part of my website to an external server. I want this part to be accessible through a subdomain, while still being able to apply RewriteRules (doesn't matter whether thats done ...
0
votes
1answer
33 views

CSS & images breaking after mapping application deployed on Tomcat to my domain

I've installed Tomcat 9.0.27 on my Digital Ocean droplet running Ubuntu 18.04.3. I deployed my Java WAR on Tomcat and am able to access it on the URL: http://example.com:8080/app_name I want to be ...
1
vote
1answer
2k views

No protocol handler was valid for the URL / (scheme 'ws')

Trying to setup a websocket proxy using apache2, I get the following error: No protocol handler was valid for the URL / (scheme 'ws'). If you are using a DSO version of mod_proxy, make sure the proxy ...
0
votes
0answers
39 views

Apache mod_proxy not mapping incoming port to local IP address

I'm trying to allow another device on the same network to access an app running on my local machine within a VM. The local IP of the app within the VM is accessable at http://192.168.10.10/ If I load ...
0
votes
0answers
16 views

apache2 Basic Proxy Pass not working

I am currently trying to set up a Vhost which links to a NodeJS App running on another port, however I can't make it work. The vhost enables without any problems and apache2 reloads/restarts without ...
0
votes
1answer
1k views

504 Gateway timeout cause 70007 on Apache 2.4 + mod_proxy Ubuntu 18.04

I am tired of so many tries to fix 504 Gateway timeout from mod_proxy in Apache 2.4 using PHP-FPM. So i try to find a solution here. Actual i plan to migrate a Software from an old Apache Server to a ...
1
vote
0answers
408 views

mod_proxy bad gateway after upgrading from 2.4.34 to 2.4.39

I have the following in my Apache Config, no changes have been done, it will work in Apache 2.4.34 but after upgrading to 2.4.39, it starts to throw Bad Gateway error. under mod_proxy.c ProxyPass /...
0
votes
1answer
51 views

Modify response URL or Location header Apache2 mod_proxy

I have a WordPress site running in a server where now I need to deploy a web app on and since our SSL certificate is not wildcard it has to be under the same domain name too. Now it's running on a ...
1
vote
1answer
1k views

Apache HTTPD rewrite backend proxy HTTP error 500 to 503

I have two use cases: HTTPD is a proxy for a Tomcat application HTTPD is a proxy for a PHP application For compliance and security needs all 50x errors must be rewritten to 503 prior to sending back ...
1
vote
1answer
961 views

substitute url with apache mod proxy

I have configured a new vhost on apache 2.4 and when I tested the configuration all work fine but only one page is not redirected correctly. the call to the images is done by images.html page : <...
1
vote
2answers
436 views

apache reverse proxy with rewrite mod

I am configuring a new virtual host on my apache reverse proxy with rewrite mod, when testing the configuration all working fine but only one page (image page) is not working. when clicking on image ...
0
votes
1answer
146 views

Apache2 reverse proxy with response caching

I'm using Apache as a reverse proxy for an application running on a local port. I want to cache responses from this application in memory. So requesting the same URL frequently should give me cached ...
0
votes
0answers
28 views

apache2 with mod_proxy stopped redirect virtualhosts

I'm using apache to redirect requests for another server. a week ago we had replaced the router of the office, later on the redirection had stopped. (virtual hosts on same machine still works. ...

1
2 3 4 5
14