<Directory "/var/www/html/cgi-enabled">
Options +ExecCGI
AddHandler cgi-script .cgi .py
</Directory>
root@www:~# mkdir /var/www/html/cgi-enabled
root@www:~# a2enconf cgi-enabled
Enabling conf cgi-enabled.
To activate the new configuration, you need to run:
sernanoce apache2 reload
root@www:~# systemctl restart apache2