0
mod_wsgiモジュールでapache2ウェブサーバによって処理されるdjangoウェブサイトを実行しようとしています。同じマスキンで "実行中"のpiwikでこのサイトを追跡し、同じapache2ウェブサーバによって提供されます。同じwebserver上のpiwikによって追跡されるDjangoのウェブサイト
Piwikは/ var/www/piwik /にあります。
<VirtualHost *:80>
# ServerName www.example.com
ServerAdmin [email protected]
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /static /path/to/django/static-files
<Directory /path/to/django/static-files>
Require all granted
</Directory>
<Directory /path/to/django/wsgifile>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess django-cms python-home=/path/to/python/env python-path=/path/to/django-project
WSGIProcessGroup django-project
WSGIScriptAlias//path/to/django/wsgifile/wsgi.py
# DocumentRoot /var/www/piwik
# <Directory /var/www/piwik>
# Require all granted
# </Directory>
</VirtualHost>
後でポート443(SSL)で実行しています。
しかし、piwikにアクセスするには何を変更する必要がありますか?それには別のポートを使用しますか?
同じサーバーでpiwikを実行するのは「悪い」方法ですか?
感謝。それはapache 2.2のために作られたと思いますか?次に、別のサーバーでpiwikを実行することをお勧めしますか? – zypro
Pythonアプリケーションにmod_wsgiデーモンモードを使用していて、あなたがしていない '' WSGIRestrictEmbedded On''を設定していることを確認すれば、純粋な利便性のために同じApache for PHPを使用することができます。パフォーマンスが懸念されるハイスループットアプリケーションがある場合は、それらを個別にホストし、特定のアプリケーションごとにサーバーを適切に調整します。 –