On Sun, Aug 10, 2003 at 06:04:57PM +0200, NOC (EUROFMC) wrote:
> <VirtualHost 213.161.195.237>
>     ServerAdmin [EMAIL PROTECTED]
>     SetEnv SQWEBMAIL_TEMPLATEDIR /usr/local/sqwebmail/html/en-us
>     SetEnv SQWEBMAIL_TIMEOUTSOFT 120
>     DocumentRoot /usr/local/sqwebmail/html/en-us
>     ServerName www.postitmail.net
>     ErrorLog /usr/local/apache/logs/postitmail_error.log
>     TransferLog /usr/local/apache/logs/postitmail_access.log
> </VirtualHost>
> 
> ..., but when I call with MSIE 
> httpd://www.postitmail.net/cgi-bin/sqwebmail, I obtain nothing...

Not 'nothing', but you get a 'HTTP/1.1 404 Not Found' (thank you for posting
the exact URL, it makes debugging much easier)

You need to either:
(1) copy sqwebmail into your existing cgi-bin directory; this may be
      /usr/local/apache/cgi-bin
    or something like that (/usr/local/www/cgi-bin perhaps)

Use 'cp -p' to preserve all the permission bits; sqwebmail is setuid root,
so you must keep those flags set.

Alternatively,
(2) configure Apache to serve your CGI from wherever it is sitting. This 
means inside your VirtualHost having
     ScriptAlias "/cgi-bin/" "/usr/local/sqwebmail/cgi-bin/"

and you probably also need a <Directory>...</Directory> section to allow
ExecCGI on that directory. Copy the <Directory> section which you have for
your existing cgi-bin directory, and modify it to allow access to
/usr/local/sqwebmail/cgi-bin

HTH,

Brian.

Reply via email to