Skip to main content

Reverse proxy with litespeed

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there! Litespeed has some documentation on creating these types of rules here:
    0
  • Festuc
    Thanks for the reply. This doc is for litespeed versions before 6.0 that dit not support ProxyPass. I tried the old but didn't work since I need to do them via ProxyPass because external server (backend) is via URL and not IP.
    0
  • cPRex Jurassic Moderator
    What about the details here?
    0
  • Festuc
    Thanks worked great, adapting the last tutorial.
    mkdir -p /etc/apache2/conf.d/userdata/std/2_4/USER/domain.com/ mkdir -p /etc/apache2/conf.d/userdata/ssl/2_4/USER/domain.com/ nano /etc/apache2/conf.d/userdata/std/2_4/USER/domain.com/proxy.conf nano /etc/apache2/conf.d/userdata/ssl/2_4/USER/domain.com/proxy.conf RewriteEngine on RewriteRule (.*) ProxyPassReverse / [P,L] ProxyPass / Rebuild the Apache configuration file, and restart LSWS: /scripts/buildhttpdconf /usr/local/lsws/bin/lswsctrl restart
    0
  • cPRex Jurassic Moderator
    I'm glad to hear that worked well!!
    0

Please sign in to leave a comment.