I tried to configure two separate Django applications on the same server so that they could be accessed using different URLs ... using the configuration below, I can access the first application, but I don’t understand how to enable the setting for the second application . Also, admin media resources do not load
NameVirtualHost *:8032
ServerName localhost ServerAdmin webmaster@example.com
DocumentRoot "/usr/local/www/djcode/test"
<Directory "/usr/local/www/djcode/test">
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>
Alias /site_media "/usr/local/www/djcode/test/site_media/"
Alias /media "/usr/local/www/djcode/test/site_media/media/"
WSGIDaemonProcess test user=www group=www processes=2 threads=5
WSGIProcessGroup test
AddHandler wsgi-script .wsgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /test.wsgi/$1 [QSA,L]
ServerName localhost ServerAlias localhost DocumentRoot "/ usr / local / www / apache22 / data"
Stephen
source
share