I figured out most of the issues. The system works as expected now. The
setup for *host A* should be:
ServerName mydomain.com
ProxyPreserveHost On
RewriteEngine On
ProxyPass “/host1/“ "http://192.168.4.12/"; retry=0
RewriteCond %{HTTP_REFERER} “host1” [NC]
RewriteRule "^/index(.*)" “/host1/index
On 4 Oct 2022, at 22:03, Frank Gingras wrote:
A few comments first:
1) Try to avoid proxying inside a block, unless you have a
good
reason to. You have more control in the vhost context over the URI
paths.
Thanks for your comments. There are few reasons that I used :
- I wanted to have two
A few comments first:
1) Try to avoid proxying inside a block, unless you have a good
reason to. You have more control in the vhost context over the URI paths.
2) Stop using the 2.2 authz directives, those have been deprecated for over
a decade
Now, your ProxyPassReverse is effectively:
ProxyPa
Hello everyone,
I have an issue with the proxy and subdirectory on httpd. What I wanted
is whenever clients access http://mydomain.com/host1/, the server **host
A** will proxy it to **host B** internally, with the URI
http://mydomain.com/host1/ base unchanged. The httpd.conf on **host A**
has the