Does your httpd.conf contain directives similar to this?
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
Björn Helgason wrote:
I have spent some time on geting jhp working
I have got cgi working and am beginning to get the ang of what goes where
but there are many loose ends
[Sat Apr 07 11:24:56 2007] [error] [client 192.168.2.2] client denied by
server configuration: /cgi-bin, referer:
http://192.168.2.3/jhp/examples/index.html
http://192.168.2.3/jhp/examples/index.html
Shows up fine but when I try to try the test cases
Access forbidden!
You don't have permission to access the requested object. It is either
read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster
<[EMAIL PROTECTED]>.
Error 403 192.168.2.3
------------------------------------------------------------------------------
#!/bin/sh
echo "Content-type: text/plain"
echo ""
echo "Username="`whoami`
export JPATHj601=/srv/www/j601
$JPATHj601/jconsole /srv/www/htdocs/jhp/examples/ht1.jhp
gives me
Username=wwwrun
|value error: ContentType
| <% ContentType'text/html'[Expires 0%>
|[-0] /srv/www/htdocs/jhp/examples/ht1.jhp
---------------------------------------------------------------------------------
http://192.168.2.3/cgi-bin/showuser2.cgi
Username=wwwrun
TEST0 ========================================
3 : 0]0
println '<h1>Test</h1>'
)
TEST1 ========================================
3 : 0]0
print '<h1>'
print 'Test'
println '</h1>'
)
TEST2 ========================================
3 : 0]0
print '<h1>'
print 'Test'
println '</h1>'
)
TEST3 ========================================
3 : 0]0
print 'One '
println 'Two'
)
TEST4 ========================================
3 : 0]0
println 'One'
println 'Two'
println ''
)
------------------------------------------------------------------------
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
--
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm