我有django + python + apache2 + mod_python安装托pipe和工作在ubuntu服务器/ linode VPS。 php5是安装和configuration的。 我们没有example.com中的域名。 只是IP地址。 所以我的apache .conf文件看起来像这样
ServerAdmin webmaster @ localhost DocumentRoot / var / www
<Location "/"> SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonOption django.root /mysite PythonPath "['/var/www/djangoprojects',] + sys.path" PythonDebug On </Location>
我想安装vtiger,所以如果我改变我的.conf文件就像这样说
<VirtualHost *:80> DocumentRoot /var/www/vtigercrm/ ErrorLog /var/log/apache2/vtiger.error_log CustomLog /var/log/apache2/vtiger.access_log combined <Directory /var/www/vtigercrm> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory>
这种方式vtiger基于PHP的应用程序工作正常,因此django应用程序无法访问。 我如何使两个文件共存 我不能使用虚拟主机/子域名。 不,你可以做一个分歧。
任何线索家伙?
问候Ankur Gupta
我有一个类似的设置。 根目录由运行trac实例的mod_python处理,而/ docs由使用php的dokuwiki处理。
使这项工作的唯一方法是使用一个LocationMatch指令,我不得不否定,因为trac使用相当多的伪目录:
<LocationMatch "^/(?!docs)"> SetHandler mod_python </LocationMatch>