9
7

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.

Apache + mod_wsgi で複数の WSGIPythonPath を設定する

Posted at

流れ

Django に触れる
  ↓
Apache + mod_wsgi でデプロイする方法を調べる
  ↓
Virtual Host に WSGIScriptAlias と WSGIPythonPath を書く
  ↓
「Error!! WSGIPythonPath を <Virtual Host> に書いてはいけません!
httpd.conf に書きなさい!」
  ↓
複数プロジェクト扱いたい場合はどうすれば...
(一応複数並べてみるものの案の定上書きされて('A`)ヴァー)

答え

Unix 系なら ":"、Windows なら ";" で複数設定できます
例) WSGIPythonPath /path/to/foo;/path/to/bar (Windows の場合)

って Wiki に書いてありました
Virtual Host に書ければ済む話だと思うんだけどなぁ。
そもそも「複数設定したい」という話をほとんど見かけないので、
本来必要ないんじゃないかと思わないでもない。

9
7
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
9
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?