Proxypass reverse_proxy how to ?

spacecabbie

Verified User
Joined
Oct 11, 2019
Messages
141
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
 

jamgames2

Verified User
Joined
Aug 16, 2019
Messages
344

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
 

k1l0b1t

Verified User
Joined
May 10, 2020
Messages
316
Location
Belgium
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|
 

spacecabbie

Verified User
Joined
Oct 11, 2019
Messages
141
Location
The Netherlands

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.
 
Top