403新的RatticDB服务器Debian 9上禁止出现错误

时间:2017-08-28 22:42:59

标签: debian apache2 http-status-code-403 apache2.4

全新服务器,旨在运行RatticDB,在VMware上运行Debian 9(Stretch)。 设置完成后,一切似乎都在起作用。

运行服务器版本:Apache / 2.4.25(Debian)

内部域名重定向到服务器,获取证书错误,然后继续。然后得到403错误,"您无权访问/在此服务器上。"

/ etc / apache2中的权限全部归root所有,并且对每个人都具有读访问权限。 / opt / apps / RatticWeb中的权限也相同。

我觉得有趣的一点是,似乎有各种批准类型。

来自apache2.conf:

    <Directory />
            Options FollowSymLinks
            AllowOverride None
            Require all denied
    </Directory>

    <Directory /usr/share>
            AllowOverride None
            Require all granted
    </Directory>

    <Directory /var/www/>
            Options Indexes FollowSymLinks
            AllowOverride None
            Require all granted
    </Directory>

    #<Directory /srv/>
    #       Options Indexes FollowSymLinks
    #       AllowOverride None
    #       Require all granted
    #</Directory>

来自apache2 / sites-available / default-ssl.conf:

<IfModule mod_ssl.c>
        <VirtualHost _default_:443>
                ServerAdmin webmaster@localhost

Alias /robots.txt /opt/apps/RatticWeb/static/robots.txt
Alias /favicon.ico /opt/apps/RatticWeb/static/favicon.ico

AliasMatch ^/([^/]*\.css) /opt/apps/RatticWeb/static/styles/$1

Alias /media/ /opt/apps/RatticWeb/media/
Alias /static/ /opt/apps/RatticWeb/static/

<Directory /opt/apps/RatticWeb/static>
Order deny,allow
Allow from all
#Require all granted
</Directory>

<Directory /opt/apps/RatticWeb/media>
Order deny,allow
Allow from all
#Require all granted
</Directory>

WSGIScriptAlias / /opt/apps/RatticWeb/ratticweb/wsgi.py
WSGIPassAuthorization On

#WSGIDaemonProcess rattic processes=2 threads=25 home=/opt/apps/RatticWeb/ python-path=/opt/apps/RatticWeb display-na$
WSGIProcessGroup rattic


<Directory /opt/apps/RatticWeb/ratticweb>
  <Files wsgi.py>
    Order deny,allow
    Allow from all
#    Require all granted
  </Files>
</Directory>

位于apache2 / sites-available / 000-default.conf

    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html

    ServerName ratticdb.<domainname>.lan
    ServerAlias ratticdb
    Redirect permanent / https://ratticdb.<domainname>.lan/

我似乎无法找到导致403错误的问题。当我根据其他经历做出一些改变时(即:改变&#34;拒绝订单,允许&#34;到&#34;要求所有被授予&#34;),我得到500内部错误。

有关解决此错误并启动网页的任何其他建议吗?

1 个答案:

答案 0 :(得分:0)

问题出在 apache2 / sites-available / default-ssl.conf 文件中。

行: WSGIDaemonProcess rattic processes = 2 threads = 25 home = / opt / apps / RatticWeb / python-path = / opt / apps / RatticWeb display-na $ 应该是 WSGIDaemonProcess rattic processes = 2个帖子= 25个主页= / opt / apps / RatticWeb / python-path = / opt / apps / RatticWeb display-name =%{GROUP}

这是由纳米引起的,线条长于窗口。