On Thursday 28 October 2004 05:39 am, Jason Mann wrote:
> Hi folks.
>
> I've just installed qmailadmin, but in a slightly different way than usual.
>
> For reference, my Apache server root directory is /var/www.
>
> I built qmailadmin with --enable-htmldir=/var/www and
> --enable-cgibindir=/var/www
>
> I then renamed the qmailadmin cgi binary as index.cgi, and enabled ExecCGI
> for my Apache root.
>
> The reason for this is so that I can access qmailadmin purely by going to
> http://mailserver/
>
> Initially, this seems to work. Browsing to that URL presents the qmailadmin
> login screen. However, after I enter a domain and password, my browser then
> attempts to load http://mailserver/cgi-bin/qmailadmin, which results in a
> 404.
>
> Does anyone know how to resolve this?
Leave the qmailadmin binary in the standard place and create an index.html
that redirects to qmailadmin. Something like this:
index.html:

<html>
<head><title>Your Page Title</title>
<meta http-equiv="REFRESH" content="0;url=/cgi-bin/qmailadmin"></head>
<body>Optional page text here.</body>
</html>

Reply via email to