Python and Apache2

/etc/apache2/mods-available/userdir.conf

<IfModule mod_userdir.c>
      UserDir public_html
      UserDir disabled root

      <Directory /home/*/public_html>
           AllowOverride FileInfo AuthConfig Limit Indexes
           Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec +ExecCGI
           <Limit GET POST OPTIONS>
                     Order allow,deny
                     Allow from all
           </Limit>
           <LimitExcept GET POST OPTIONS>
                     Order deny,allow
                     Deny from all
           </LimitExcept>

           AddHandler cgi-script .cgi .pl .py

      </Directory>

</IfModule>

No comments: