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.
694 questions
0 votes
0 answers
32 views
Pass mod_proxy parameters when using SetHandler for php-fpm
I've configured Apache to serve PHP via php-fpm through a unix socket with the SetHandler directive: <FilesMatch ".+\.php$"> SetHandler "proxy:unix:/run/php/php-fpm.sock|fcgi:/...
2 votes
1 answer
162 views
Serve static files and proxy if not found
I'm trying to configure a vhost to work with a proxy, but only if the request is not for a static file -- in which case I'd like Apache to serve it. Here's what I'm using: <VirtualHost *:80> ...
1 vote
0 answers
28 views
Apache: ProxyPass not working if request was already ProxyPassed by previous server
on our intranet I have two servers in two different areas. Server 1 is providing a lab environment via ShellInABox web service. ShellInABox opens local ports to which Apache can connect via proxy ...
0 votes
0 answers
113 views
Apache httpd forward proxy - remove Proxy-agent header from CONNECT requests
Is there any way to remove Proxy-agent header (set to Apache/2.4.6.2(OS)) from CONNECT requests going through Apache httpd configured as forward proxy (forwarding requests to another uplink proxy)? &...
0 votes
0 answers
31 views
ProxyPass response translate http to https [duplicate]
We have an external Apache server that proxies a https url to an internal http site <VirtualHost *:443> ServerName external.domain ServerAlias www.external.domain ProxyRequests Off ...
0 votes
1 answer
107 views
Apache config to proxy entire site with 1 exception
I have a website www.example.com on a hosting provider. We use that provider because it has a simple site builder my wife uses to maintain the site. Moving off of it isn't an option for this ...
1 vote
1 answer
64 views
ProxyPassMatch backreference issues
I am attempting to take all requests matching the regex ^/(map/maps/[^/]*/live/.*) redirect into a local server http://127.0.0.1:8100/. However, the path that needs to be passed to the backreference ...
0 votes
0 answers
105 views
Apache custom rewrite rule, using code
I would like to have Apache handle some custom URL rewrite code that I have. This code rewrites the following urls: https://www.example.com/request?data=SOMEDATABLOB into urls pointing to PHP pages. ...
0 votes
1 answer
65 views
Virtual Host SSL and nonSSL with Proxy
I have 1 nonSSL server and many SSL with Proxy in Apache. Configuration SSL server: <VirtualHost *:443> ServerName test.com ServerAdmin [email protected] ErrorLog ${...
0 votes
0 answers
658 views
Set up proxy for Nextjs and WordPress blog
Thanks in advance. I am new to server setup. So pardon me If I used the wrong words. I am setting up an Ubuntu server to host Nextjs and WordPress blog on the same server. I have to set up Nextjs on ...
0 votes
1 answer
883 views
mod_proxy_hcheck causes apache-2.4 startup-crash
I would like to create a load-balanced environment using Apache 2.4.43 (windows) and two Tomcats servers. Using the "mod_proxy_hcheck" module some basic healthcheck operations should be ...
2 votes
1 answer
562 views
How to change HTTP-status based on origin's header?
I'm dealing with a proprietary HTTP-server, which always responds with code 200 -- even when an error occurred. The indication of an error, if any, can only be found in the custom header, for example: ...
0 votes
2 answers
160 views
Apache virtualhosts conf let wrong servername requests going through proxy
I have moved a server configuration to a new server and at the same time configured it with apache mod_proxy to access a gunicorn/django webserver (inside a docker container on port 8000). Previous ...
0 votes
1 answer
534 views
Apache module proxy_html not working
I have a Joomla 4 site running in a Ubuntu 22.04 server (hostname = web-02). The Internet facing web server running in a Ubuntu 20.04 server (hostname = web-01) has configured as a reverse proxy for ...
0 votes
1 answer
59 views
Apache - ProxyPass serve port only for one server name
I have a react app that listening to localhost:3939 Then, I configured a Virtualhost like this to proxy pass the port 3939 on https://test.example.com: <IfModule mod_ssl.c> <VirtualHost *:443&...