2017-04-11 81 views
-1

我想部署一個使用apache2和mod-wsgi-py3的django項目。但是我面對內部服務器錯誤500這裏是虛擬主機:內部服務器錯誤apache2 django部署

<VirtualHost *:80> 
    ServerName web1.server.ch 
    ServerAdmin [email protected] 

    <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 

任何人都可以幫忙嗎?

+0

你有沒有可用的日誌? – dentemm

回答

0

我找到了同樣的問題的答案已經問here也適用於我。