Howdy, Stranger!

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


how to operate openlitespeed Proxy?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

how to operate openlitespeed Proxy?

What is wrong with this setting

Comments

  • The domain looks invalid

  • It’s not so difficult, I always do the following:

    Basic:
    First 2 fields name: proxy-sitename
    Your config path is correct

    General:
    Your directory is correct

    External App:
    Webserver >> name: proxy-upstream >> address: http://127.0.0.1:12000

    Do nothing with the Rewrite tab. Instead use Context. Create Proxy. Then select proxy-sitename and use just / in the first field.

    Then go to your VM /usr/local/lsws and do: cp -R Example proxy-sitename.
    service lsws restart

    All should be fine. I can help you. I have done this a hundred times. Once you know how it works, it is super easy.

  • @DennisdeWit said:
    It’s not so difficult, I always do the following:

    Basic:
    First 2 fields name: proxy-sitename
    Your config path is correct

    General:
    Your directory is correct

    External App:
    Webserver >> name: proxy-upstream >> address: http://127.0.0.1:12000

    Do nothing with the Rewrite tab. Instead use Context. Create Proxy. Then select proxy-sitename and use just / in the first field.

    Then go to your VM /usr/local/lsws and do: cp -R Example proxy-sitename.
    service lsws restart

    All should be fine. I can help you. I have done this a hundred times. Once you know how it works, it is super easy.

    Thank you, I'll try it right away

  • coolgoolecoolgoole Barred
    edited December 2020

    I just follow the way you said.
    It may be a problem with chrome and ssl> @DennisdeWit said:

    It’s not so difficult, I always do the following:

    Basic:
    First 2 fields name: proxy-sitename
    Your config path is correct

    General:
    Your directory is correct

    External App:
    Webserver >> name: proxy-upstream >> address: http://127.0.0.1:12000

    Do nothing with the Rewrite tab. Instead use Context. Create Proxy. Then select proxy-sitename and use just / in the first field.

    Then go to your VM /usr/local/lsws and do: cp -R Example proxy-sitename.
    service lsws restart

    All should be fine. I can help you. I have done this a hundred times. Once you know how it works, it is super easy.

    @DennisdeWit said:
    It’s not so difficult, I always do the following:

    Basic:
    First 2 fields name: proxy-sitename
    Your config path is correct

    General:
    Your directory is correct

    External App:
    Webserver >> name: proxy-upstream >> address: http://127.0.0.1:12000

    Do nothing with the Rewrite tab. Instead use Context. Create Proxy. Then select proxy-sitename and use just / in the first field.

    Then go to your VM /usr/local/lsws and do: cp -R Example proxy-sitename.
    service lsws restart

    All should be fine. I can help you. I have done this a hundred times. Once you know how it works, it is super easy.

    503 error
    HTTP/1.1 503 Service Unavailable
    Date: Sun, 20 Dec 2020 03:23:19 GMT
    Server: LiteSpeed
    Connection: close

    /usr/local/lsws/html/vvv/html [22:27:35] 
    $ ls vvv
    total 96K
    drwxr-xr-x 5 nobody nogroup 4.0K Dec 19 21:49 .
    drwxr-xr-x 3 nobody nogroup 4.0K Dec 19 21:13 ..
    -rw-r--r-- 1 nobody nogroup  11K Jul 24  2019 about.html
    -rw-r--r-- 1 nobody nogroup  12K Jul 24  2019 blog.html
    -rw-r--r-- 1 nobody nogroup 8.9K Jul 24  2019 contact.html
    drwxr-xr-x 2 nobody nogroup 4.0K Aug  5 12:07 css
    drwxr-xr-x 2 nobody nogroup 4.0K Aug  6 16:10 images
    -rw-r--r-- 1 nobody nogroup  22K Jul 24  2019 index.html
    drwxr-xr-x 2 nobody nogroup 4.0K Aug  5 12:05 js
    -rw-r--r-- 1 nobody nogroup  14K Jul 25  2019 recipe.html
    
    
  • It seems your upstream is unavailable. Is port 12000 up and running?

  • coolgoolecoolgoole Barred
    edited December 2020

    ufw opened the port

    6800/tcp                   ALLOW IN    Anywhere                  
    7080/tcp                   ALLOW IN    Anywhere                  
    80/tcp                     ALLOW IN    Anywhere                  
    443/tcp                    ALLOW IN    Anywhere                  
    443/udp                    ALLOW IN    Anywhere                                 
    12000/tcp                   ALLOW IN    Anywhere                              
    6800/tcp (v6)              ALLOW IN    Anywhere (v6)             
    7080/tcp (v6)              ALLOW IN    Anywhere (v6)             
    80/tcp (v6)                ALLOW IN    Anywhere (v6)             
    443/tcp (v6)               ALLOW IN    Anywhere (v6)             
    443/udp (v6)               ALLOW IN    Anywhere (v6)                       
    12000/tcp (v6)              ALLOW IN    Anywhere (v6)  
    
    curl -I 
    HTTP/1.1 503 Service Unavailable
    Date: Sun, 20 Dec 2020 11:12:16 GMT
    Server: LiteSpeed
    Connection: close
    
    in /usr/local/lsws/html/vvv/html/vvv [6:13:13] 
    $ ls 
    total 96K
    drwxr-xr-x 5 nobody nogroup 4.0K Dec 19 21:49 .
    drwxr-xr-x 3 nobody nogroup 4.0K Dec 19 21:13 ..
    -rw-r--r-- 1 nobody nogroup  11K Jul 24  2019 about.html
    -rw-r--r-- 1 nobody nogroup  12K Jul 24  2019 blog.html
    -rw-r--r-- 1 nobody nogroup 8.9K Jul 24  2019 contact.html
    drwxr-xr-x 2 nobody nogroup 4.0K Aug  5 12:07 css
    drwxr-xr-x 2 nobody nogroup 4.0K Aug  6 16:10 images
    -rw-r--r-- 1 nobody nogroup  22K Jul 24  2019 index.html
    drwxr-xr-x 2 nobody nogroup 4.0K Aug  5 12:05 js
    -rw-r--r-- 1 nobody nogroup  14K Jul 25  2019 recipe.html
    
  • @DennisdeWit said:
    It seems your upstream is unavailable. Is port 12000 up and running?

    error.log

    GET / HTTP/1.1" 500 702"
    GET / HTTP/1.1" 500 702"
    GET / HTTP/1.1" 500 702"
    GET / HTTP/1.1" 500 702"
    GET / HTTP/1.1" 500 702"
    GET / HTTP/1.1" 503 1247"
    GET /favicon.ico HTTP/1.1" 503 1247"
    GET / HTTP/1.1" 503 1247"
    GET /favicon.ico HTTP/1.1" 503 1247"
    GET /favicon.ico HTTP/1.1" 503 1247"
    HEAD / HTTP/1.1" 503 0"
    
  • This is the log of OLS or your server at port 12000?

  • @DennisdeWit said:
    This is the log of OLS or your server at port 12000?

    thank you
    I gave up, so tired

  • I've had more luck with rewrite rules. Never managed to get the GUI thing to deliver what I wanted wrt proxy.

  • @elos42 said:
    I've had more luck with rewrite rules. Never managed to get the GUI thing to deliver what I wanted wrt proxy.

    Are you familiar with openlitespeed
    Help me solve it

  • 503 = server down

    Check listen port proxy tcp12000

    netstat -pln |grep 12000

  • @isunbejo said:
    503 = server down

    Check listen port proxy tcp12000

    netstat -pln |grep 12000

    netstat -pln |grep 12000

    sudo ss -tulpn | grep LISTEN

    sudo lsof -i -P -n | grep LISTEN

    sudo ss -tulpn | grep :12000

    All empty, the server is not started

  • @coolgoole said:

    @isunbejo said:
    503 = server down

    Check listen port proxy tcp12000

    netstat -pln |grep 12000

    netstat -pln |grep 12000

    sudo ss -tulpn | grep LISTEN

    sudo lsof -i -P -n | grep LISTEN

    sudo ss -tulpn | grep :12000

    All empty, the server is not started

    Then the problem is with your server that runs on 12000. The problem is not with Open LiteSpeed. And this is why you get the 503 error.

  • coolgoolecoolgoole Barred
    edited December 2020

    @DennisdeWit said:

    @coolgoole said:

    @isunbejo said:
    503 = server down

    Check listen port proxy tcp12000

    netstat -pln |grep 12000

    netstat -pln |grep 12000

    sudo ss -tulpn | grep LISTEN

    sudo lsof -i -P -n | grep LISTEN

    sudo ss -tulpn | grep :12000

    All empty, the server is not started

    Then the problem is with your server that runs on 12000. The problem is not with Open LiteSpeed. And this is why you get the 503 error.

    Thank you, I'm Set successfully
    I forgot, I need to go to ssl authentication first
    then
    Web Socket Proxy Setup It can be used after successful setting

    step
    https://forum.openlitespeed.org/threads/how-to-set-up-openlitespeed-proxy.4735/

  • coolgoolecoolgoole Barred
    edited December 2020

    o:)

Sign In or Register to comment.