![](/img/trans.png)
[英]Error 403: Forbidden You don't have permission to access / on this server with apache, mod-wsgi and django
[英]Issue with my Ubuntu Apache Conf file. (Forbidden You don't have permission to access / on this server.)
這是https://github.com/treeio/treeio的conf文件,我使用了以下方法: http : //goo.gl/KTdlUT ,將treeio配置為基於Azure的Ubuntu VM,但仍然顯示:禁止沒有訪問此服務器上的權限。)
<virtualhost *:80>
ServerAdmin abcd@xyz.com
ServerName abcd.net
ServerAlias abcd.net
DocumentRoot "/home/User/treeio"
<Directory /home/Userk/treeio/>
<Directory /home/User/treeio/>
Order allow,deny
Allow from all
</Directory>
WSGIDaemonProcess treeio.djangoserver processes=2 threads=15 display-name=%{GRO$
WSGIProcessGroup treeio.djangoserver
WSGIScriptAlias / /home/User/treeio/wsgi
ErrorLog "/home/User/treeio/log/error.log"
CustomLog "/home/User/treeio/log/access.log" combined
</virtualhost>
似乎有些配置更喜歡將Django項目安裝在/ var / www /目錄中,即使到目前為止,建議使用home文件夾也是如此。 從安全角度看,這似乎是有道理的。
此外,Microsoft提供了最簡單的逐步說明,該說明實際上可與Azure中的Unbunto 14.04一起使用:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.