Yes, Graham, you're absolutely right about '/'! It must be there! My bad!
So, here is the final variant of .conf file with two Django sites:
====================================================================================
WSGIRestrictEmbedded On
<VirtualHost *:80>
WSGIDaemonProcess site1 python-path=/home/user/site1
python-home=/home/user/site1/venv1
WSGIScriptAlias /site1 /home/user/site1/site1/wsgi.py
process-group=site1 application-group=%{GLOBAL}
Alias /site1/static /home/user/site1/static
<Directory /home/user/site1/static>
Require all granted
</Directory>
<Directory /home/user/site1/site1>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess site2 python-path=/home/user/site2
python-home=/home/user/site2/venv2
WSGIScriptAlias /site2 /home/user/site2/site2/wsgi.py
process-group=site2 application-group=%{GLOBAL}
Alias /site2/static /home/user/site2/static
<Directory /home/user/site2/static>
Require all granted
</Directory>
<Directory /home/user/site2/site2>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
</VirtualHost>
================================================================================================
Then we need to access site1/site1/settings.py and change the value of
STATIC_URL to '/site1/static/'.
In site2/site2/settings.py we change the value of STATIC_URL to
'/site2/static/' respectively.
After these corrections both sites will be working correctly!
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.