问题,我的Ubuntu的Apache的conf文件。 (紫禁城您没有权限访问/在此服务器上)。 [英] Issue with my Ubuntu Apache Conf file. (Forbidden You don't have permission to access / on this server.)

查看:289
本文介绍了问题,我的Ubuntu的Apache的conf文件。 (紫禁城您没有权限访问/在此服务器上)。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这下面是 https://github.com/treeio/treeio conf文件
我用这个方法: http://goo.gl/KTdlUT ,以treeio配置到我的Azure的基于Ubuntu VM,但它仍然说:紫禁城您没有权限访问/在此服务器上)

 <虚拟主机*:80>的ServerAdmin abcd@xyz.com服务器名abcd.netServerAlias​​ abcd.net的DocumentRoot/ home / user中/ treeio<目录为/ home / Userk / treeio /><目录为/ home /用户/ treeio />为了允许,拒绝
所有允许< /目录>WSGIDaemonProcess treeio.djangose​​rver流程= 2个线程= 15的显示名称=%{$ GRO
WSGIProcessGroup treeio.djangose​​rver
WSGIScriptAlias​​ /的/ home /用户/ treeio / WSGI
错误日志/home/User/treeio/log/error.log的CustomLog/home/User/treeio/log/access.log组合< /虚拟主机>


解决方案

这似乎是一些配置preFER被安装在 /无功/网络/ 目录Django的项目,即使达到现在为止的主文件夹一直推荐的位置。这似乎从安全角度来看是有意义的。

此外,微软有最简单的一步一步的指令,实际上Unbunto 14.04 Azure的工作:

<一个href=\"http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-python-django-web-app-linux/\" rel=\"nofollow\">http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-python-django-web-app-linux/

This below is the conf file for https://github.com/treeio/treeio I used this method: http://goo.gl/KTdlUT , to configure treeio to my Azure Based Ubuntu VM but still it says: Forbidden You don't have permission to access / on this server.)

<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>

解决方案

It seems like some configurations prefer Django projects to be installed in the /var/www/ directory, even though up until now the home folder had been the recommended location. This seems to make sense from a security perspective.

In addition, Microsoft has the simplest step-by-step instructions which actually work with Unbunto 14.04 in Azure:

http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-python-django-web-app-linux/

这篇关于问题,我的Ubuntu的Apache的conf文件。 (紫禁城您没有权限访问/在此服务器上)。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆