繁体   English   中英

GLPI插件不适用于虚拟主机(Apache)

[英]GLPI plugins not working on virtual host (Apache)

我已经在运行最新版本Apache2的Ubuntu 14.04服务器上安装了GLPI。 在创建虚拟主机以运行GLPI之前,它工作正常。 我可以登录,但是一旦我尝试点击任何插件,我都会

[Thu Sep 22 10:57:42.016046 2016] [authz_core:error] [pid 11162] [client 10.145.0.77:44057] AH01630: client denied by server configuration: /var/www/html/glpi/plugins/consumables/consumables.js, referer: http://glpi.domain.com/front/backup.php

我已经通过多种渠道验证了我对文件夹的权限正确,并且在.conf文件中正确设置了指令:

<VirtualHost _default_:80>
         DocumentRoot /var/www/html/glpi/
         ServerAdmin webmaster@localhost
         ErrorLog /var/log/apache2/error.log
         CustomLog /var/log/apache2/access.log combined
         <Directory "/var/www/html/glpi/">
                    Options FollowSymLinks
                    AllowOverride All
                    Require all granted
         </Directory>
         ServerName glpi.domain.com
</VirtualHost>

我在这里敲打我的头(并且我已经阅读了有关此问题的所有SO文章)。 欢迎咨询。

-拉里

您的配置正确,但是...您正在使用“ AllowOverride All”,这意味着documentroot下任何目录中的任何.htaccess文件都将覆盖您的设置。 不设置AllowOverride或检查所有.htaccess文件,因此您的虚拟主机看起来正确,但是任何内容都可以覆盖显示给我们的内容。

在您显示的配置中的任何位置都没有定义更多的/ front,因此必须有一个别名或某个指向/ front的位置,但您也不会显示它。

我还注意到访问日志中的URL和VirtualHost ServerName指令中的URL,请确保还配置/检查了正确的虚拟主机。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM