VirtualHost 88 188 188 88 8080 ServerName site ru DocumentRoot home al

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<VirtualHost 88.188.188.88:8080>
ServerName site.ru
DocumentRoot /home/alex/data/www/site.ru
SuexecUserGroup alex alex
CustomLog /home/httpd-logs/site.ru.access.log combined
ErrorLog /home/httpd-logs/site.ru.error.log
ServerAlias www.site.ru
ServerAdmin alexandr@site.ru
DirectoryIndex index.html index.php
AddDefaultCharset utf-8
ScriptAlias /cgi-bin/ /home/alex/data/www/site.ru/cgi-bin/
php_admin_value open_basedir "/home/alex/data:."
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f alex@site.ru"
php_admin_value upload_tmp_dir "/home/alex/data/tmp"
php_admin_value session.save_path "/home/alex/data/tmp"
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
AddType application/x-httpd-php-source .phps
<Location "/services/" >
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE settings
PythonOption django.root /services
PythonPath "['/home/alex/data/www/site.ru/services/', '/home/alex/data/www/site.ru/'] + sys.path"
PythonDebug On
</Location>
</VirtualHost>