简体   繁体   English

Indico 安装上出现禁止 403 Apache 错误

[英]Forbidden 403 Apache error on an Indico installation

I installed Indico http://indico-software.org/ that is an open source tool for event organization, archival and collaboration on Ubuntu with this instructions https://indico.syntek.org/category/1/material/0/0.pdf , installation looks ok but when I try to open localhost/indico I get a forbidden 403 error.我安装了 Indico http://indico-software.org/ ,这是一个开源工具,用于在 Ubuntu 上组织活动、存档和协作,并使用此说明https://indico.syntek.org/category/1/material/0/0 .pdf ,安装看起来没问题,但是当我尝试打开 localhost/indico 时,我收到了禁止的 403 错误。

I added this lines to the /etc/apache2/apach2.conf我将此行添加到 /etc/apache2/apach2.conf

WSGIScriptAlias / /opt/indico/htdocs/
WSGIPythonHome /usr/local/pythonenv/BASELINE
WSGIPythonPath 
    /usr/local/pythonenv/indico12/lib/python2.7/sitepackages
WSGIPythonEggs /opt/indico/tmp/egg-cache 

<Directory /opt/indico/htdocs>
    Options Indexes FollowSymLinks
    AllowOverride None
<Files indico.wsgi>
    Require all granted
</Files>
</Directory>

This is my virtulhost file on /etc/apache2/sites-available/a2indico.conf这是我在 /etc/apache2/sites-available/a2indico.conf 上的 virtulhost 文件

<VirtualHost *:80>

     ErrorLog /var/log/apache2/error.log
        LogLevel warn

     Alias /indico/images "/opt/indico/htdocs/images"
     Alias /indico/css "/opt/indico/htdocs/css"
     Alias /indico/js "/opt/indico/htdocs/js"
     Alias /indico/ihelp "/opt/indico/htdocs/ihelp"

     WSGIDaemonProcess WSGIDAEMON processes=32 threads=1 inactivity-
timeout=3600 maximumrequests=10000 python-
path=/usr/local/pythonenv/indico12/lib/python2.7/site-packages python-
eggs=/opt/indico/tmp/egg-cache

     WSGIScriptAlias /indico "/opt/indico/htdocs/indico.wsgi"

     <Directory "/opt/indico">
        WSGIProcessGroup WSGIDAEMON
        WSGIApplicationGroup %{GLOBAL}
        AllowOverride None
        Options FollowSymLinks
        Require all granted
     </Directory>
</VirtualHost>

The chown for the /etc/apach2 and /opt/indico directorys are for www-data user. /etc/apach2 和 /opt/indico 目录的 chown 适用于 www-data 用户。

Thank you very much for your help.非常感谢您的帮助。

Plz give me some advise.请给我一些建议。 =) =)

Your probably not landing in that newly created virtualhost, it has no ServerName or ServerAlias.您可能没有登陆那个新创建的虚拟主机,它没有 ServerName 或 ServerAlias。 apachectl -S will show you the other virtualhosts you have. apachectl -S将显示您拥有的其他虚拟主机。 Even after specifying a ServerName or ServerAlias here, you may need to modify your default (000-default) virtualhost as it may implicitly use your local systems name as a ServerNAme (ubuntu leaves it blank which can hide a later vhost!)即使在此处指定了 ServerName 或 ServerAlias 之后,您也可能需要修改您的默认(000-default)虚拟主机,因为它可能会隐式使用您的本地系统名称作为 ServerNAme(ubuntu 将其留空,这可以隐藏以后的虚拟主机!)

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

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