2006年09月12日 星期二 15:32
我想一个域名使用mod_python,而另外一个域名用php。我要怎么做?下面是我的httpd.conf的相关配置: ############# Django ojs settings ################# # setting up a normal virtual host ## ServerName sgu.ospattern.net # DocumentRoot "/var/www/sgu.ospattern.net/html/media" # SetHandler None # # optional a django_ojs pathSetHandler python-program PythonHandler django.core.handlers.modpython PythonPath "['/home/fluke/Projects'] + sys.path" SetEnv DJANGO_SETTINGS_MODULE django_ojs.settings PythonDebug On # setting up a vertual hostServerName ojs.ospattern.net SetHandler python-program PythonHandler django.core.handlers.modpython PythonPath "['/home/fluke/Projects'] + sys.path" SetEnv DJANGO_SETTINGS_MODULE django_ojs.settings PythonDebug On # leave the /media/ dir for serving css & img filesSetHandler None # leave img files not be interpreted by djangoSetHandler None -- Yours, fluke fluke在sfcube.net http://blog.ospattern.net
2006年09月12日 星期二 15:40
Fluke 写道: > 我想一个域名使用mod_python,而另外一个域名用php。我要怎么做?下面是我的httpd.conf的相关配置: > > ############# Django ojs settings ################# > > # setting up a normal virtual host > #> # ServerName sgu.ospattern.net > # DocumentRoot "/var/www/sgu.ospattern.net/html/media" > # SetHandler None > # > > # optional a django_ojs path > > SetHandler python-program > PythonHandler django.core.handlers.modpython > PythonPath "['/home/fluke/Projects'] + sys.path" > SetEnv DJANGO_SETTINGS_MODULE django_ojs.settings > PythonDebug On > > > # setting up a vertual host > > ServerName ojs.ospattern.net > SetHandler python-program > PythonHandler django.core.handlers.modpython > PythonPath "['/home/fluke/Projects'] + sys.path" > SetEnv DJANGO_SETTINGS_MODULE django_ojs.settings > PythonDebug On > > > # leave the /media/ dir for serving css & img files > > SetHandler None > > > # leave img files not be interpreted by django > > SetHandler None > > 设置基于域名的虚拟主机
Zeuux © 2025
京ICP备05028076号