При попытке обращения к скриптам получаю ошибку 403
apache2.conf:
<VirtualHost *:80>
ServerName ejudge
DocumentRoot /var/www/
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory /usr/lib/cgi-bin/>
Options +ExecCGI
AllowOverride None
</Directory>
<Location "/cgi-bin/">
SetHandler None
</Location>
</VirtualHost>
Скрипт в /usr/lib/cgi-bin имеется и запускается
ejudge@dmitry-300V3A-300V4A-300V5A-200A4B-200A5B:/usr/lib/cgi-bin$ ./serve-control
Content-Type: text/html; charset=utf-8
Cache-Control: no-cache
Pragma: no-cache
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>serve-control: localhost</title>
</head>
<body><h1>serve-control: localhost</h1>
<form method="post" action="http://localhost/cgi-bin/serve-control" enctype="application/x-www-form-urlencoded">
<table><tr><td>Login:</td><td><input type="text" size=16 name="login"/></td></tr><tr><td>Password:</td><td><input type="password" size=16 name="password"/></td></tr><tr><td> </td><td><input type="submit" value="Submit"/></td></tr></table></form><hr><p class="ejudge_copyright">This is <a href="http://www.ejudge.ru"><b>ejudge</b></a> contest administration system, version 2.3.29, compiled Mon Apr 21 12:40:48 2014.</p>
<p class="ejudge_copyright">This program is copyright © 2000-2013 Alexander Chernov.</p>
<p class="ejudge_copyright">This program is free software; you can redistribute it and/or modify it under the terms of the <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a> as published by the <a href="http://www.fsf.org">Free Software Foundation</a>; either version 2 of the License, or (at your option) any later version.</p>
<p class="ejudge_copyright">Visual design and web-interface © 2006-2013 <a href="http://www.lasvik.ru">Toto Lasvik</a>.</p></body></html>
Система Ubuntu
При установке использовались следующие параметры конфигурации:
./configure --prefix=/home/judges/inst-ejudge --enable-contests-home-dir=/home/judges/ --with-httpd-cgi-bin-dir=/usr/lib/cgi-bin --with-httpd-htdocs-dir=/var/www/ejudge --enable-ajax
Скажите пожалуйста, что делать и что не так.
Заранее огромное спасибо.
403 на cgi-bin скрипты ejudge
Re: 403 на cgi-bin скрипты ejudge
Проверь, что пользователь apache (или аналогичный) имеет доступ к файлам, на которые ссылаются ссылки, лежащие в /usr/lib/cgi-bin.