Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:other-ext-apps:python-lsapi [2020/05/18 17:20]
Eric Leu [Download the WSGI LSAPI module]
litespeed_wiki:other-ext-apps:python-lsapi [2020/08/14 18:38]
Jackson Zhang [Setting up the External Application]
Line 15: Line 15:
 Download the module to your server root, ''/​usr/​local/​lsws''​. To recompile Python, go into the module directory and run the following commands: Download the module to your server root, ''/​usr/​local/​lsws''​. To recompile Python, go into the module directory and run the following commands:
  
-  cd /​usr/​local/​lsws/​wsgi-lsapi-1.4+  cd /​usr/​local/​lsws/​wsgi-lsapi-1.6
   python ./​configure.py   python ./​configure.py
   make   make
Line 52: Line 52:
  
 {{litespeed_wiki:​python:​python_ext_app_success.png?​700}} {{litespeed_wiki:​python:​python_ext_app_success.png?​700}}
 +
 +The configuration looks like:
 +    <​extProcessor>​
 +      <​type>​lsapi</​type>​
 +      <​name>​wsgiapp</​name>​
 +      <​address>​uds://​tmp/​lshttpd/​lswsgi.sock</​address>​
 +      <​maxConns>​35</​maxConns>​
 +      <​env>​LSAPI_CHILDREN=35</​env>​
 +      <​initTimeout>​60</​initTimeout>​
 +      <​retryTimeout>​0</​retryTimeout>​
 +      <​respBuffer>​0</​respBuffer>​
 +      <​autoStart>​1</​autoStart>​
 +      <​path>/​usr/​local/​lsws/​fcgi-bin/​lswsgi</​path>​
 +      <​instances>​1</​instances>​
 +    </​extProcessor>​
  
 ==== Setting up the Script Handler ==== ==== Setting up the Script Handler ====
  • Admin
  • Last modified: 2020/08/14 18:38
  • by Jackson Zhang