Proxypass reverse_proxy how to ?

spacecabbie

Verified User
Joined
Oct 11, 2019
Messages
157
Location
The Netherlands
Its been a while and I can't seem to find the help entry anymore... So
How do i reverse proxy custom.domain.com => 127.0.0.1:1234
 

It look same threads, maybe you need create new domain as "sub.domain.com"

if you want use use subdomain management option , you need condition check domain name
 
you can do this with apache too just fine, enabled by default.

Code:
|*if SUB="subdomain"|
ProxyPass "/" "https://remote.server.be/"
ProxyPassReverse "/" "https://remote.server.be.be/"
|*endif|


this will only do it for the subdomain "subdomain".

you could also make it work for only the apex and keep subdomains working by replacing the |*if SUB="subdomain"| with |*if !SUB|
 

It look same threads, maybe you need create new domain as "sub.domain.com"

if you want use use subdomain management option , you need condition check domain name
Thanks just realized nginx.conf is not showing up there just php one and still openlitespeed looks like something went wrong when in reverted back to nginx_apache.
 
Back
Top