
May 17th, 2000, 11:28 AM
|
|
Contributing User
|
|
Join Date: Apr 2000
Posts: 79
Time spent in forums: < 1 sec
Reputation Power: 14
|
|
|
I have these line in htt[d.conf:
-Directory /home/*/html-
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
-Limit GET POST OPTIONS PROPFIND-
Order allow,deny
Allow from all
-/Limit-
-LimitExcept GET POST OPTIONS PROPFIND-
Order deny,allow
Deny from all
-/LimitExcept-
-/Directory-
AddHandler cgi-script .cgi .pl
ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
-Directory "/home/httpd/cgi-bin"-
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
-/Directory-
-Directory "/home/*/html/cgi"-
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
-/Directory-
The result is:
HTTP/1.1 200 OK Date: Thu, 18 May 2000 08:14:27 GMT Server: Apache/1.3.12 (Unix) PHP/4.0RC2 mod_layout/1.6 Keep-Alive: timeout=15, max=99 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html; charset=iso-8859-1
OK
You don't have permission to access /~gigi/cgi/hello.pl on this server.
|