mod_wsgi on Plesk server
- by Rogue Coder
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>