Re: sqwebmail
Sounds to me like you want to use a VirtualHost directive in your
httpd.conf:
<VirtualHost *>
ServerName mail.foo.com
DocumentRoot /path/to/foo
</VirtualHost>
should do the trick.
HTH,
dave
In our last episode, Stephen Gran expounded thusly:
>
> Hmmm . . . I don't have PHP installed at all on this box, and it seems
> to be working. I guess, rereading my message, I really wasn't clear
> what the problem was. Not enough (coffee | sleep) and too much time in
> my head. Let me start over.
>
> If I choose to install sqwebmail non-SUID root (my preferred solution),
> I get the above error. If I do install it SUID root, then it works, but
> under foo.com/cgi-bin/sqwebmail.
>
> What I have set up currently is this:
>
> I have a domain, let's say foo.com. DNS points to 2 boxes, www.foo.com
> and mail.foo.com, each with their own static IP. www.foo.com displays a
> main webpage and users pages as it should. (Yaay - I really don't know
> apache well, so this was a small triumph). I would like it if I could
> go to mail.foo.com, and be presented with a login page, which I think
> would mean setting up the DocumentRoot to be /path/to/sqwebmail,
> although this has so far failed. I basically would like this because
> there are no other virtual domains on this server, and it is serving a
> fairly small user base. I suppose I could just set up index.html in the
> DocumentRoot to redirect to cgi-bin/sqwebmail, but this feels clumsy.
> As all the users are friends of mine, is there a way to not install
> sqwebmail SUID root (they can just ask me to change their passwords,
> rather than having a potential security hole) and have the DocumentRoot
> work as described above?
>
> Thanks,
> Steve
>
> --
> Fascinating, a totally parochial attitude.
> -- Spock, "Metamorphosis", stardate 3219.8
--
{----------------d.w. harks----------------}
dave@psys.org http://www.psys.org/dw/
{------------------------------------------}
Blog: http://dwblog.psys.org <- NEW!
Reply to: