Django application hosted on Ubuntu VM with Apache and mod_wsgi not showing up

前端 未结 1 848
被撕碎了的回忆
被撕碎了的回忆 2021-01-24 02:05

I have uploaded my first Django Application but I am having trouble accessing it. The application is called survey and has been uploaded onto an Ubunto VM

相关标签:
1条回答
  • 2021-01-24 02:40

    I think the virtual host is a non-starter, because the server name you are using is the main name of that server. So we can probably delete that altogether, and we need to concentrate on what's in /sites-available/default. And I think the only thing wrong there is that we don't need a trailing slash in the alias:

    WSGIScriptAlias /bias_experiment /var/www/bias_experiment/src/bias_experiment/index.wsgi
    

    (I might have previously steered you doubly wrong on that, but this time I found the recommendation in the mod_wsgi documentation directly from the author, Graham Dumpleton.)

    0 讨论(0)
提交回复
热议问题