RE: [users@httpd] working with a reverse proxy

2024-02-28 Thread Marc
> > Should I for instance set headers, and in the proxied website should I > check on such headers? (Btw this is php). Or are there other things > available like HTTP_X_FORWARDED_FOR > > mod_proxy should add the "X-Forwarded-Host" header (i.e. > HTTP_X_FORWARDED_HOST in cgi/php) with the value o

Re: [users@httpd] working with a reverse proxy

2024-02-28 Thread Yann Ylavic
On Tue, Feb 27, 2024 at 9:49 PM Marc wrote: > > Should I for instance set headers, and in the proxied website should I check > on such headers? (Btw this is php). Or are there other things available like > HTTP_X_FORWARDED_FOR mod_proxy should add the "X-Forwarded-Host" header (i.e. HTTP_X_FORW

RE: [users@httpd] working with a reverse proxy

2024-02-28 Thread Marc
> > > > > > > What would a best practice of 'informing' the proxyhost about that > it is > > being proxied and it should send the defaulthost hostname? > > > > can try > > > https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxypreservehost > > Proxy

Re: [users@httpd] working with a reverse proxy

2024-02-27 Thread Frank Gingras
On Tue, Feb 27, 2024 at 5:10 PM Marc wrote: > > > > > > What would a best practice of 'informing' the proxyhost about that it > is > > being proxied and it should send the defaulthost hostname? > > > > can try > > https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxypreservehost > > Proxy on

RE: [users@httpd] working with a reverse proxy

2024-02-27 Thread Marc
> > > What would a best practice of 'informing' the proxyhost about that it is > being proxied and it should send the defaulthost hostname? > > can try > https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxypreservehost Proxy only works when I am having ProxyPreserveHost Off, I can't chang

Re: [users@httpd] working with a reverse proxy

2024-02-27 Thread Eric Covener
> What would a best practice of 'informing' the proxyhost about that it is > being proxied and it should send the defaulthost hostname? can try https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxypreservehost - To unsubscr

[users@httpd] working with a reverse proxy

2024-02-27 Thread Marc
I am having a more or less default setup where I proxy a website with something like this ProxyPass"https://${proxyhost}/en_gb"; ProxyPassReverse "https://${proxyhost}/en_gb"; ProxyPassReverseCookieDomain "${proxyhost}" "${defaulthost}" ProxyHTMLURLMap ... ProxyHTMLURLMap .. Everythin