NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Apache 2.2.8 on NetBSD 4.0 serves nothing or garbled directory listings



On Thu, May 15, 2008 at 10:58 PM, Frank Huddleston 
<fhuddles%gmail.com@localhost> wrote:
>  I'm running NetBSD 4.0, and recently upgraded my Apache server to
> 2.2.8. I did this originally through pkg_add, with a binary package,
> but had segment fault errors, probably because mod_ssl is included and
> I don't have SSL set up.
>  I then downloaded the source from Apache and built it without
> mod_ssl. It built,
> installed (into /usr/local/apache2), and appeared to start fine, but
> when it came to serving web pages, I got nothing: a blank page. I
> would get output if I got a directory listing (of a directory with no
> index.html file), but it was garbled: the link text was strange
> characters like tildes, umlauts, crossed o's, mixed cases, etc. I
> finally rebuilt from source using the apache22 package in pkgsrc, and
> now I get similar behavior, the only difference being that the
> directory listings are html of some kind: not interpreted, and not the
> information requested.
> A short sample is below:
> Parent Directory
> <li> <dl> <dt><samp>x_create_server_config()</samp></dt>
> <dd><samp>[SVR()]</samp></dd> </dl> </li> <li> <dl>
> <dt><samp>x_create_dir_config()</samp></dt> <dd><samp>[DIR()]</samp></
> dd> </dl> </li> <li> <dl> <dt><samp>x_pre_config()</samp></dt>
> <dd><samp>[nowhere]</samp></dd> </dl> </li> <li> <dl>
> <dt><samp>x_open_logs()</samp></dt> <dd><samp>[nowhere]</samp></dd> </
> dl> </li> <li> <dl> <dt><samp>x_post_config()</samp></dt>
> <dd><samp>[nowhere]</samp></dd> </dl> </li> <li> <dl>
> <dt><samp>x_child_init(linden)</samp></dt> <dd><samp>[nowhere]</samp></
> dd> </dl> </li> <li> <dl> <dt><samp>x_quick_handler()</samp></dt>
> <dd><samp>[DIR()]</samp></dd> </dl> </li>
> That is actually the way it gets displayed in the browser, too.
> I made an HTML page of it and looked at it: looks like a listing of
> the modules (?) in the httpd executable itself (!)
>
> Yes, I do have DocumentRoot set to what I want it to be.
> As far as the access_log is concerned, everything is just fine: status
> 200.
> I've got all the extra files commented out for now, including httpd-
> ssl.conf, but there is a small error message in the error log upon
> startup:
> [Wed May 14 12:51:46 2008] [warn] Init: Session Cache is not
> configured [hint: SSLSessionCache]
> [Wed May 14 12:51:47 2008] [notice] Digest: generating secret for
> digest authentication ...
> [Wed May 14 12:51:47 20 08] [notice] Digest: done
> [Wed May 14 12:51:47 2008] [notice] Apache/2.2.8 (Unix) mod_ssl/2.2.8
> OpenSSL/0.9.8e DAV/2 configured -- resuming normal operations
>


That is pretty weird.  Try starting with the smallest possible
httpd.conf and going from there.  It would appear that your server has
some kind of weird file descriptor mix-up or something.  (it's
executing itself instead of reading a directory or something)

Example small httpd.conf:

#minimal httpd.conf
Listen 80
User nobody
#optional stuff
LoadModule log_config_module modules/mod_log_config.so
ErrorLog /var/tmp/error_log
LogLevel debug
TransferLog /var/tmp/access_log
DirectoryRoot /var/tmp


Home | Main Index | Thread Index | Old Index