htdig problem on Solaris
Added by terryd about 16 years ago
SunOS webzone 5.10 Generic_137138-09 i86pc i386 i86pc
Lighttpd 1.4.19,REV=2008.04.05 from blastwave
When I use the htdig search button I only get a white page
The url to htsearch is
http://192.168.2.241/cgi-bin/htsearch
It is called from a form on http://192.168.2.241/~terry/
If I run a test cgi from http://192.168.2.241/cgi-bin/test.cgi
It work and the logs show
2009-02-15 11:20:23: (response.c.482) Path : /opt/csw/share/lighttpd-root/cgi-bin/test.cgi 2009-02-15 11:20:23: (response.c.631) -- handling subrequest 2009-02-15 11:20:23: (response.c.632) Path : /opt/csw/share/lighttpd-root/cgi-bin/test.cgi 2009-02-15 11:20:23: (response.c.116) Response-Header: HTTP/1.1 200 OK Transfer-Encoding: chunked Content-type: text/html Date: Sun, 15 Feb 2009 11:20:23 GMT Server: lighttpd/1.4.19
If I run http://192.168.2.241/cgi-bin/htsearch I get a white page and the logs show
2009-02-15 11:08:12: (response.c.212) -- splitting Request-URI 2009-02-15 11:08:12: (response.c.213) Request-URI : /cgi-bin/htsearch 2009-02-15 11:08:12: (response.c.214) URI-scheme : http 2009-02-15 11:08:12: (response.c.215) URI-authority: 192.168.2.241 2009-02-15 11:08:12: (response.c.216) URI-path : /cgi-bin/htsearch 2009-02-15 11:08:12: (response.c.217) URI-query : 2009-02-15 11:08:12: (response.c.267) -- sanatising URI 2009-02-15 11:08:12: (response.c.268) URI-path : /cgi-bin/htsearch 2009-02-15 11:08:12: (response.c.382) -- before doc_root 2009-02-15 11:08:12: (response.c.383) Doc-Root : /opt/csw/share/lighttpd-root 2009-02-15 11:08:12: (response.c.384) Rel-Path : /cgi-bin/htsearch 2009-02-15 11:08:12: (response.c.385) Path : 2009-02-15 11:08:12: (response.c.433) -- after doc_root 2009-02-15 11:08:12: (response.c.434) Doc-Root : /opt/csw/share/lighttpd-root 2009-02-15 11:08:12: (response.c.435) Rel-Path : /cgi-bin/htsearch 2009-02-15 11:08:12: (response.c.436) Path : /opt/csw/share/lighttpd-root/cgi-bin/htsearch 2009-02-15 11:08:12: (response.c.453) -- logical -> physical 2009-02-15 11:08:12: (response.c.454) Doc-Root : /opt/csw/share/lighttpd-root 2009-02-15 11:08:12: (response.c.455) Rel-Path : /cgi-bin/htsearch 2009-02-15 11:08:12: (response.c.456) Path : /opt/csw/share/lighttpd-root/cgi-bin/htsearch 2009-02-15 11:08:12: (response.c.473) -- handling physical path 2009-02-15 11:08:12: (response.c.474) Path : /opt/csw/share/lighttpd-root/cgi-bin/htsearch 2009-02-15 11:08:12: (response.c.481) -- file found 2009-02-15 11:08:12: (response.c.482) Path : /opt/csw/share/lighttpd-root/cgi-bin/htsearch 2009-02-15 11:08:12: (response.c.631) -- handling subrequest 2009-02-15 11:08:12: (response.c.632) Path : /opt/csw/share/lighttpd-root/cgi-bin/htsearch 2009-02-15 11:08:12: (response.c.116) Response-Header: HTTP/1.1 403 Forbidden Content-Length: 0 Date: Sun, 15 Feb 2009 11:08:12 GMT Server: lighttpd/1.4.19
My cgi section
$HTTP["url"] =~ "/cgi-bin/" { cgi.assign = ( "" => "" ) } Loaded modules "mod_redirect" "mod_auth" "mod_fastcgi" "mod_userdir", "mod_cgi", "mod_accesslog"
# ls -al /opt/csw/share/lighttpd-root/cgi-bin/htsearch -r-xr-xr-x 1 nobody nobody 109652 Feb 14 21:26 /opt/csw/share/lighttpd-root/cgi-bin/htsearch
I can see the 403 I am just not sure why
The exact same setup on Freebsd server works fine. I just wanted to try it on solaris
any info welcome
Thanks
Ignore this just fond this in the hosts logs
Feb 15 11:36:15 monty elfexec: [ID 700856 kern.notice] htsearch: Cannot find /libexec/ld-elf.so.1
Nothing to do with lighttpd sorry for the post