Wrong/incomplete config for Python-enabled sites
short description
I think I've hit a bug with the first python site I tried to create :( I created it as usual, but instead of enabling PHP I enabled python. Then, I placed a simple test .py file in site's web/ , but trying to access it resulted in a download of the file instead of its execution.
correct behaviour
The file should be executed and its output returned as page contents.
environment
Server OS: Debian Server OS version: 9 ISPConfig version: 3.1.8
proposed fix
I manually fixed changing
<Directory /var/www/clients/clientXX/webYY/web>
to
<Directory /var/www/DNS.ADDRESS.OF.SITE/web>
Then I "automated" it adding a snippet with {DOCROOT} instead of DNS.ADDRESS.OF.SITE, but I think ISPC should do it automatically... PS: the same bug could be with webdav, too, but I didn't test it.
references
https://www.howtoforge.com/community/threads/bug-enabling-python-in-ispc-3-1-8p1.77873/