Im using this link to try make working https://openlitespeed.org/kb/reverse-proxy-basics/ have access to have access my API
First I got WebAdmin console => Server Configuration => External App => Add => Type => Web Server
Name: test
Address: localhost:3001
Second I got WebAdmin console > Virtual Hosts > Add
Virtual Host Name: proxy-vhost
Virtual Host Root: $SERVER_ROOT/proxy/
Config File: $SERVER_ROOT/conf/vhosts/$VH_NAME/vhconf.conf
Max Keep-Alive Requests: 1000
Follow Symbolic Link: No
Enable Scripts/ExtApps: No
Restrained: Yes
and...
WebAdmin console > Virtual Hosts > proxy-vhost > Rewrite
Set Enable Rewrite to YES
REWRITERULE ^(.*)$ HTTP://test/$1 [P,L,E=PROXY-HOST:api.vitrimix.com.br]
to finish, WebAdmin console > Listeners > your listeners > Virtual Host Mappings > Add
Virtual Host: proxy-vhost
Domain: api.vitrimix.com.br
but when I call http://api.vitrimix.com.br on brower I aways got error 404, what I doing wrong?
First I got WebAdmin console => Server Configuration => External App => Add => Type => Web Server
Name: test
Address: localhost:3001
Second I got WebAdmin console > Virtual Hosts > Add
Virtual Host Name: proxy-vhost
Virtual Host Root: $SERVER_ROOT/proxy/
Config File: $SERVER_ROOT/conf/vhosts/$VH_NAME/vhconf.conf
Max Keep-Alive Requests: 1000
Follow Symbolic Link: No
Enable Scripts/ExtApps: No
Restrained: Yes
and...
WebAdmin console > Virtual Hosts > proxy-vhost > Rewrite
Set Enable Rewrite to YES
REWRITERULE ^(.*)$ HTTP://test/$1 [P,L,E=PROXY-HOST:api.vitrimix.com.br]
to finish, WebAdmin console > Listeners > your listeners > Virtual Host Mappings > Add
Virtual Host: proxy-vhost
Domain: api.vitrimix.com.br
but when I call http://api.vitrimix.com.br on brower I aways got error 404, what I doing wrong?