Apache 2.4.7 403禁止错误

Gme*_*er4 4 apache ubuntu http-status-code-403

我正在尝试使用apache安装overpass api作为Web服务器(http://wiki.openstreetmap.org/wiki/Overpass_API/install)

这是我的000-default.conf

<VirtualHost *:80>
ServerAdmin webmaster@localhost
ExtFilterDefine gzip mode=output cmd=/bin/gzip
DocumentRoot /root/osm-3s_v0.7.4/html

# This directive indicates that whenever someone types http://www.mydomain.com/api/ 
# Apache2 should refer to what is in the local directory [YOUR_EXEC_DIR]/cgi-bin/
ScriptAlias /api/ /srv/osm3s/cgi-bin/


# This specifies some directives specific to the directory: [YOUR_EXEC_DIR]/cgi-bin/
<Directory "/srv/osm3s/cgi-bin/">
            AllowOverride None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Order allow,deny
            Allow from all
            #SetOutputFilter gzip
            #Header set Content-Encoding gzip
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit, alert, emerg
LogLevel warn

CustomLog /var/log/apache2/access.log combined
Run Code Online (Sandbox Code Playgroud)

但是当我尝试运行命令时:

http://175.33.148.57/api/interpreter?data=%3Cprint%20mode=%22body%22/%3E
Run Code Online (Sandbox Code Playgroud)

我收到403 Forbidden错误.

我已经完成了

chmod 777 /srv/osm3s/cgi-bin/

但似乎没有任何效果.

请帮助,我已经坚持了3天了!提前致谢.

小智 6

替换:全部允许需要全部授予

<Directory /www/mysite>
    Allow from All
</Directory>

<Directory /www/mysite>
    Require all granted
</Directory>
Run Code Online (Sandbox Code Playgroud)