私はdjango + python + apache2 + mod_pythonをインストールしてホストし、ubuntuサーバー/ linode VPSで作業しています。php5 がインストールされ、構成されています。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>
この方法では、php ベースのアプリは正常に動作し、もちろん django アプリにはアクセスできません。両方を 1 つのファイルに共存させるにはどうすればよいですか。仮想ホスト/サブドメインを使用できません。私はあなたのデフポートで行うことができます。
手がかりはありますか?
よろしく アンクル・グプタ