Debian 서버에 dsc-statistics-presenter라는 패키지를 다시 설치했습니다. 이전 설치에서는 잘 작동했지만 지금은 작동하지 않습니다. 오류 403, 액세스가 금지되었습니다. 그럼, 몇 가지 세부 사항을 알려 드리겠습니다.
에서 /var/log/
:
[Sun Nov 27 17:34:09.186447 2016] [authz_core:error] [pid 26682:tid 140497263544064] [client 192.168.1.32:44134] AH01630: client denied by server configuration: /usr/lib/cgi-bin/dsc-statistics/dsc-grapher
경로에서:
root@UKLNDLABDMZ:~# cat /usr/lib/cgi-bin/dsc-statistics/dsc-grapher
#!/usr/bin/perl -w
use strict;
use warnings;
use CGI;
use DSC::grapher;
my $grapher = DSC::grapher->new;
$grapher->cgi(new CGI);
$grapher->run();
파일 권한을 확인하려면:
root@UKLNDLABDMZ:~# ls -l /usr/lib/cgi-bin/dsc-statistics/dsc-grapher
-rwxr-xr-x 1 root root 148 Dec 15 2012 /usr/lib/cgi-bin/dsc-statistics/dsc-grapher
apt-get에서만 설치된 이 패키지의 Apache conf는 다음과 같습니다.
root@UKLNDLABDMZ:~# cat /etc/apache2/conf-available/dsc-statistics-presenter.conf
Alias /dsc /usr/share/dsc-statistics-presenter/html
ScriptAlias /cgi-bin/dsc-statistics /usr/lib/cgi-bin/dsc-statistics
root@UKLNDLABDMZ:~# ls -ld /usr/lib/cgi-bin/dsc-statistics
drwxr-xr-x 2 root root 4096 Nov 27 18:41 /usr/lib/cgi-bin/dsc-statistics
http://192.168.99.10/cgi-bin/dsc-statistics/dsc-grapher
고쳐 쓰다:
apt-get install libapache2-mod-perl2
그리고
a2enmod cgi
오류가 403에서 500으로 변경되었습니다.