|
|
|
| Вот конфиг:
ScriptAlias /usr/lib/cgi-bin/ /hosts/localhost/www/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride All
Options +ExecCGI +MultiViews +SymLinksIfOwnerMatch
Order Allow, Deny
Allow from all
</Directory>
|
Но по ссылке thhp://localhost/cgi-bin/index.cgi мне пишет 403
Почему закрыть доступ?
Ниже полный конфиг локалхоста:
NameVirtualHost localhost:80
<VirtualHost localhost:80>
ServerAdmin webmaster@localhost
DocumentRoot /hosts/localhost/www/
<Directory /hosts/localhost/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order Allow, Deny
Allow from all
</Directory>
ScriptAlias /usr/lib/cgi-bin/ /hosts/localhost/www/cgi-bin/
<Directory "/usr/lib/cgi-bin/">
AllowOverride All
Options +ExecCGI +MultiViews +SymLinksIfOwnerMatch
Order Allow, Deny
Allow from all
</Directory>
ErrorLog /hosts/localhost/apache2_error.log
LogLevel warn
CustomLog /hosts/localhost/apache2_access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
|
Дистрибутив - Apache2 (Debian 5.01)
Спасибо =) | |
|
|