私はApacheとmod_wsgiを使ってdjango webappを提供しています。私のクライアントはシングルページのアプリケーションで、djangoのバックエンドと通信します。実際のインデックスは静的なhtmlファイルなので、ユーザーが '/'にナビゲートすると、Apacheは静的なindex.htmlを提供しますが、 '/ foo /'または '/ bar /'を訪問すると、 、彼らはdjangoのバックエンドから動的なコンテンツを取得します。Apacheとmod_wsgiで静的インデックスを提供する方法
関連apacheのconfに:
Alias /static /path/to/static
<Directory /path/to/static>
Require all granted
</Directory>
<Directory /path/to/django/site>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess sitename python-home=/path/to/env python-path=/path/to/django
WSGIProcessGroup sitename
WSGIScriptAlias//path/to/sitename/wsgi.py
WSGIPassAuthorization On
私はAlias//path/to/static/
にしようとした場合しかし、その後、DjangoはそれがWSGIScriptAlias//path/to/sitename/wsgi.py
と衝突するので、そのことを行うために取得していません。 djangoの名前空間でApacheが静的なファイルを提供するようにする方法はありますか?