Как запустить Django с другой не-Django страницей на том же порту localhost в apache?
Я пытаюсь запустить Django через apache2 (mod_wsgi) на xampp-portable-windows.
FILE: xampp/apache2/conf/httpd.confd
LoadFile "/Portable_PY/Python_Web/python310.dll"
LoadModule wsgi_module "/Portable_PY/Python_Web/lib/site-packages/mod_wsgi/server/mod_wsgi.cp310-win_amd64.pyd"
WSGIPythonHome "/Portable_PY/Python_Web"
WSGIPythonPath "/Portable_PY/Python_Web/Lib/site-packages"
WSGIScriptAlias / "/hung_collections/tempoTest/wsgi.py"
FILE: xampp/apache2/conf/extra/httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "/xampp/htdocs"
ServerName localhost
</VirtualHost>
# non Django page
<VirtualHost *:80>
ServerName testhis.localhost
DocumentRoot "/Testinsite"
<Directory "/Testinsite">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
# Django app
<VirtualHost *:80>
ServerName heck.localhost
<Directory "/hung_collections/tempoTest">
<Files wsgi.py>
Require all granted
</Files>
</Directory>
</VirtualHost>
После добавления WSGIScriptAlias в файл httpd.conf он запускает сайт django на heck.localhost, Но запуск просто localhost или localhot.test дает ошибку 403 forbidden