/etc/apache2/apache2.conf
WSGIScriptAlias /django /data4/nong/practice/python/django_test/django_test/wsgi.py
WSGIPythonHome /data4/nong/practice/python/djangowebs/ENV
WSGIPythonPath /data4/nong/practice/python/django_test
<Directory /data4/nong/practice/python/django_test>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
Alias /media/ /data4/nong/practice/python/django_test/media/
Alias /static/ /data4/nong/practice/python/django_test/static/
<Directory /data4/nong/practice/python/django_test/static>
Require all granted
</Directory>
<Directory /data4/nong/practice/python/django_test/media>
Require all granted
</Directory>
WSGIScriptAlias /django /home/nong/project/python/django_test/django_test/wsgi.py
WSGIPythonHome /home/nong/project/python/djangowebs/ENV
WSGIPythonPath /home/nong/project/python/django_test
<Directory /home/nong/project/python/django_test>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
Alias /media/ /home/nong/project/python/django_test/media/
Alias /static/ /home/nong/project/python/django_test/zfea/static/
<Directory /home/nong/project/python/django_test/media>
Require all granted
</Directory>
<Directory /home/nong/project/python/django_test/zfea/static >
Require all granted
</Directory>
网友评论