我正在尝试使用apache2和mod-wsgi-py3部署django项目。但是,我面临内部服务器错误500.这是虚拟主机:
<VirtualHost *:80>
ServerName web1.server.ch
ServerAdmin n_s@mail.com
<Directory /home/admin/TrexmoWeb/TrexmoWeb>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess trexmo python-path=/home/admin/TrexmoWeb
WSGIProcessGroup trexmo
WSGIScriptAlias / /home/admin/TrexmoWeb/TrexmoWeb/wsgi.py
</VirtualHost>
这是我的/ etc / hosts
127.0.0.1 localhost
127.0.1.1 tres1
有人可以帮忙吗?