mod_wsgi on Plesk server

Posted by Rogue Coder on Server Fault See other posts from Server Fault or by Rogue Coder
Published on 2012-04-15T02:49:20Z Indexed on 2012/04/15 5:34 UTC
Read the original article Hit count: 500

Filed under:
|
|

I've installed mod_wsgi on my Plesk server, but I can't get it to behave the way I'd like. If I add

WSGIScriptAlias /python /var/www/vhosts/domain.com/httpdocs/python/test.wsgi

To my config file, going to http://domain.com/python/blah triggers my test.wsgi script. However, going to any domain on my server and adding /python triggers my script as well. How can I limit it to one specific domain without breaking anything in Plesk?

Right now I've tried this and it doesn't work

<Directory /var/www/vhosts/domain.com/httpdocs/python>
        WSGIApplicationGroup %{GLOBAL}
        AddHandler wsgi-script .wsgi
        Options ExecCGI
        Order allow,deny
        Allow from all
</Directory>

© Server Fault or respective owner

Related posts about python

Related posts about plesk