Ubuntu 16.04/Apache 2.4.18: 403 禁止

Ubuntu 16.04/Apache 2.4.18: 403 禁止

私のホームサーバーにMinecraft Technic Solderリポジトリを設定しようとしています。

これは/etc/apache2/sites-available/にある000-default.confです。

<VirtualHost *:80>
# Host that will server this project.
ServerName 192.168.1.19
ServerAdmin *email*

# The location of public directory.
DocumentRoot /home/evilarceus/TechnicSolder/public/

# Important options for solder public directory
<Directory /home/evilarceus/TechnicSolder/public/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
    Require all granted
</Directory>

<Directory "/home/evilarceus/TechnicSolder/public/repo/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    Require all granted
</Directory>

# Useful logs for debug.
ErrorLog /home/evilarceus/TechnicSolder/logs/error.log
CustomLog /home/evilarceus/TechnicSolder/logs/access.log combined

最初のディレクトリ(home/evilarceus/TechnicSolder/public)は正常に動作します。ただし、2番目のディレクトリ(私のリポジトリが必要です)には403 Forbiddenが表示されます。

ストレージ/権限:

drwxrwxr-x 3 evilarceus evilarceus 4096 Oct  2 19:39 repo

エラー履歴:

[Sun Oct 02 20:39:31.034401 2016] [access_compat:error] [pid 17874] [client 192.168.1.20:50072] AH01797: client denied by server configuration: /home/evilarceus/TechnicSolder/public/repo

正直なところ、今は何をすべきかわかりません。どうぞよろしくお願いします!

ベストアンサー1

forディレクトリの後に行を追加しますAllow from allOrder allow,deny/home/evilarceus/TechnicSolder/public/repo/

おすすめ記事