WSGI + Directadmin + Shared Hosting


Well-Known Member
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:

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:

#!/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:


Well-Known Member
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


LiteSpeed Staff
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.