On Thursday, Jan 8, 2004, at 16:39 US/Central, Jeff Gordon wrote:

On Thu, Jan 08, 2004 at 05:35:00PM -0500, Bill Hults wrote:

When I try to access sqwebmail I get -

ELF , etc. etc.
Is there an archive to research this problem or is the solution obvious?

It's a server-side permissions settings problem, most likely.


The web server is trying to send the content of the file instead of
trying to execute the file.


More specifically, I think it's probably that Alias directive he listed. You typically don't want to Alias *anything* inside a cgi-bin directory unless 100% certain there's no chance of it needing to be executed as a CGI... which in this case is actually the opposite of what you are 100% sure of, since the sqwebmail binary *has* to be run as a CGI.


-jab


P.S. If what you were trying to do was make the whole domain contain just the sqwebmail CGI service... then probably what you want is something more like this:


ScriptAlias / "/var/www/cgi-bin/"

That should make every URL reference files within your CGI directory, and not show anything outside of it. If that's actually what you want to do, then you should probably just set your DocumentRoot to be the same path, and forget having any HTML files.

Otherwise, if all you were trying to do is redirect anyone going to "/" down into "/cgi-bin/sqwebmail", then you probably really wanted a redirect or rewrite directive instead of an Alias. -- Or even just a simple HTML page with a "meta refresh" pointing to "/cgi-bin/sqwebmail" would do just about as well.



Reply via email to