LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > CGI/Perl/Python > WSGI + Directadmin + Shared Hosting

Reply
 
Thread Tools Display Modes
  #1  
Old 08-15-2010, 07:07 PM
QuantumNet QuantumNet is offline
Senior Member
 
Join Date: Nov 2007
Posts: 61
Default WSGI + Directadmin + Shared Hosting

I am trying to set it up so customers can easily install WSGI based scripts, there is a web chat that integrates into IRC servers and we would like to have it so each customer can upload their chat client to a subdomain with minimal effort on their or our part.

Here is the excerpt from the script's readme:

Quote:
In reality, you probably want to use mod_wsgi or something. You can find
a mod_wsgi configuration script at atheme-web.wsgi. Then you want to do
something like:

WSGIScriptAlias / /path/to/atheme-web/atheme-web.wsgi

You MUST edit the atheme-web.wsgi so that it can find the application
modules. Instructions are included inside the atheme-web.wsgi file.
and the script that needs to be accessible on a subdomain:

Quote:
#!/usr/bin/env python

# depending on your mod_wsgi configuration, you may need to uncomment these
# lines and adjust them as appropriate to make the relocations work:

# import os, sys
# sys.path.append('/var/www/atheme-web')
# os.chdir('/var/www/atheme-web')

def make_app(global_conf=None):
from middleware.classpublisher import ClassPublisher
from athemeweb.webroot import WebRoot
real_app = ClassPublisher(WebRoot())

from paste.exceptions.errormiddleware import ErrorMiddleware
error_app = ErrorMiddleware(real_app, global_conf=global_conf)

from paste.session import SessionMiddleware
return SessionMiddleware(error_app)

application = make_app({'debug': True, 'expiration': 60})
I am really lost on how to configure the server and litespeed so that this is an easy process for each customer, I am hoping this can be setup as easily as PHP with .php .wsgi .py Aliases

Last edited by QuantumNet; 08-15-2010 at 07:09 PM..
Reply With Quote
  #2  
Old 08-15-2010, 10:18 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
litespeed not support wsgi directly yet.
see if this wiki any help for you:
http://www.litespeedtech.com/support...ython_ajp_wsgi
Reply With Quote
  #3  
Old 08-15-2010, 10:34 PM
QuantumNet QuantumNet is offline
Senior Member
 
Join Date: Nov 2007
Posts: 61
I understand that there is not a LSAPI wsgi module... and I have read that article and it seems to be aimed at a single domain setup via the litespeed control panel...

I am trying to figure out how to set it up so it is available in a shared hosting environment not having to configure it per vhost...

Since it is possible to run wsgi I was hoping someone knows what steps I need to take to make it available as an alias like .php .py .wsgi
Reply With Quote
  #4  
Old 08-17-2010, 08:08 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
It is not possible to do that with python now, you may have to run a server support python on the backend, and let LiteSpeed proxy .py .wsgi to the backend.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:54 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.