2016-04-13 12 views
0

apache2にwsgiスクリプトを実行するように設定する方法をお尋ねします。私は、一方ではではなく、がスレッド、ロックなどを実装するPythonアプリケーションを開発しましたが、他方では、ロギングモジュールを使用します。問題は、app.confファイルをapache2に設定するにはどうすればいいですか?サーバーが複数の要求を同時に検出したときに複数のインスタンスでアプリケーションを実行したいのですが?またWSGI DaemonProcessを指定してprocesses=Xthreads=Yの違いは何ですか?どうもありがとう。ここでApache2 wsgiスレッド/プロセス

答えて

0

は私のapp.confファイルは次のようになります。

WSGIPassAuthorization On 
WSGIPythonPath /home/brms/brms 
WSGIDaemonProcess pyramid user=username group=usergroup threads=4 python-path=/usr/local/lib/python3.4/dist-packages/ 
<VirtualHost *:80> 
    <Directory /home/brms/> 
     <Files wsgi.py> 
       WSGIProcessGroup pyramid 
       Require all granted 
     </Files> 
    </Directory> 
    Alias /meetingApp /var/www/meetingApp 
</VirtualHost> 
WSGIScriptAlias//home/brms/wsgi.py