Elasticsearch reverse proxy on litespeed — CyberPanel - WebHosting Control Panel for OpenLiteSpeed
CyberLoader

Elasticsearch reverse proxy on litespeed

how can we do this on litespeed

<VirtualHost *:8080>
ProxyPass "/" "http://localhost:9200/"
ProxyPassReverse "/" "http://localhost:9200/"
</VirtualHost

Comments

  • Here's how to do:
    https://forums.cyberpanel.net/discussion/526/proxy-preserve-host
  • tried that and it doesnt works as
    curl -i http://localhost:8080/_cluster/health doesnt works
    added the redirect under Rewrite Rules but not working
  • edited November 2020
    It works for sure. I have 8 domains that work as a reverse proxy. Read carefully what needs to be done. You redirect a non-standard port to work on a standard domain, i.e. on the server it runs on port xxxx but you have access as domain.ltd.
  • See Method 3: Proxying with Rewrite Rules. Very versatile and works like a charm.
    https://openlitespeed.org/kb/reverse-proxy-basics/#Method_3_Proxying_with_Rewrite_Rules_The_most_versatile_way_to_proxy_and_the_simplest_for_name-based_virtual_hosting
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!