2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Django & Apahce2 アプリケーションにアクセスしても response が来ない。

Last updated at Posted at 2019-05-06

問題

Azure Virtual machine 上にある Django & Apahce2 アプリケーションにアクセスしても response が来ない。(ブラウザが更新中のまま動かない。)

処理過程でpytorchを使っている。

原因

C/C++の拡張モジュールを使っていた事が理由らしい。

対処

Apache2の設定ファイルに以下を追記すればよいらしい。

○○.conf
<VirtualHost>
    ...

  # 以下を追記
    WSGIApplicationGroup %{GLOBAL}
</VirtualHost>

参考

django - WSGI : Truncated or oversized response headers received from daemon process - Server Fault
scipyをDjangoで使おうとしたらアプリ自体が動かなくなった | The Brave Penguin Lab.
using scipy in django with apache and mod_wsgi - Stack Overflow

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?