I've been working on & off for a while to get this (LXR 0.9.1) working, and finally got somewhere tonight, but I have a problem. All the pages have little headers pre-pended, which stops browsers interpreting the output as HTML. (example below)
It seems that genxref is working OK, and if I strip the header, the pages render fine.
I'm running Mandrake 8.2, and I had to follow rountree's instructions for setting up Apache. Before that, I just saw the perl script source, rather than results.
Any help would be appreciated.
James
Example: (http://localhost/lxr/source)
Last-Modified: Wed, 18 Jun 2002 22:24:57 GMT
Content-Type: text/html; charset=iso-8859-1
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
...
Note the "Last-Modified" and "Content-Type" headers.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
PS. This block in the Apache config is in there because unfortunately, Mandrake's Apache setup doesn't work well with AddHandler in .htaccess files, apparently. I had copied it out of rountree's notes.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I've been working on & off for a while to get this (LXR 0.9.1) working, and finally got somewhere tonight, but I have a problem. All the pages have little headers pre-pended, which stops browsers interpreting the output as HTML. (example below)
It seems that genxref is working OK, and if I strip the header, the pages render fine.
I'm running Mandrake 8.2, and I had to follow rountree's instructions for setting up Apache. Before that, I just saw the perl script source, rather than results.
Any help would be appreciated.
James
Example: (http://localhost/lxr/source)
Last-Modified: Wed, 18 Jun 2002 22:24:57 GMT
Content-Type: text/html; charset=iso-8859-1
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
...
Note the "Last-Modified" and "Content-Type" headers.
I just sorted this out. I had to comment out the "PerlSendHeader On"
directive in commonhttpd.conf, as below.
#lxr
<Directory /usr/local/lxr>
<Files ~ (find|search|source|ident|diff|cgi-bin|test.pl)$>
SetHandler perl-script
PerlHandler Apache::Registry
Options -Indexes ExecCGI
#PerlSendHeader On
</Files>
</Directory>
Works a treat, now. Nice work everyone.
James
PS. This block in the Apache config is in there because unfortunately, Mandrake's Apache setup doesn't work well with AddHandler in .htaccess files, apparently. I had copied it out of rountree's notes.