<VirtualHost *:80>
ServerAdmin lufton@gmail.com
ServerName www.db.tci.lan
ServerAlias db.tci.lan
DirectoryIndex index.html index.php
DocumentRoot /home/lufton/public_html/db.tci.lan/public
WSGIScriptAlias / /home/lufton/public_html/db.tci.lan/public/db/mod.wsgi
Alias /js/app.js "/home/lufton/public_html/db.tci.lan/public/db/app.js"
Alias /css "/home/lufton/public_html/db.tci.lan/public/db/css"
<Location "/css">
SetHandler None
Allow from all
</Location>
Alias /js "/home/lufton/public_html/db.tci.lan/public/db/js"
<Location "/js">
SetHandler None
Allow from all
</Location>
Alias /img "/home/lufton/public_html/db.tci.lan/public/db/img"
<Location "/img">
SetHandler None
Allow from all
</Location>
Alias /media "/usr/lib/python2.6/site-packages/django/contrib/admin/media"
<Location "/media">
SetHandler None
Allow from all
</Location>
<Location "/svnmanager">
SetHandler None
Allow from all
</Location>
LogLevel warn
ErrorLog /home/lufton/public_html/db.tci.lan/log/error.log
CustomLog /home/lufton/public_html/db.tci.lan/log/access.log combined
</VirtualHost>
LoadModule python_module modules/mod_python.so
<Directory /home/lufton/public_html/db.tci.lan/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
AddHandler mod_python .py
PythonHandler mod_python.publisher | .py
AddHandler mod_python .psp .psp_
PythonHandler mod_python.psp | .psp .psp_
PythonDebug On
</Directory>
понедельник, 4 марта 2013 г.
Пример конфигурации Apache
Подписаться на:
Комментарии к сообщению (Atom)
Комментариев нет:
Отправить комментарий