...
Just my blog

Blog about everything, mostly about tech stuff I made. Here is the list of stuff I'm using at my blog. Feel free to ask me about implementations.

Soft I recommend
Py lib I recommend

I'm using these libraries so you can ask me about them.

Allow Apache run python scripts

This is a simple ex. to allow apache run .py

# Python site at /var/www/py_site

LoadModule wsgi_module /usr/lib64/httpd/modules/mod_wsgi.so

<VirtualHost *:80>
 ServerName test.www.trianglesis.org.ua
 ServerAlias www.www.trianglesis.org.ua
 ServerAdmin test@test.com
 DocumentRoot /var/www/py_site/

 <Directory /var/www/py_site>
 Order allow,deny
 Require all granted
 Allow from all
 </Directory>

 <Directory /var/www/py_site/cgi-bin>
 Options +ExecCGI
 Require all granted
 Allow from all
 Options +ExecCGI
 AddHandler cgi-script .cgi .pl .py
 AddHandler cgi-script .py
 </Directory>

</VirtualHost>