> Jeremy Runner wrote:
>> I'm using Virtualmin to do web hosting. It creates the httpd.conf as
>> follows using suexec.
Do you have shell access to the machine (or will virtualmin let you) change
this <VirthostHost> to something more custom? Be warned that VirtualMin might
overwrite your hand-edited changes should you attempt to manage the server
using both methods. Not sure how to deal with your suexec issue yet, but to
serve an application (like qmailadmin) to multiple clients, I would recommend
something like the following.
Set XXX.XXX.XXX.XXX to your IP (or preferably a unique IP so you can generate a
self-signed certificate for all domains).
<VirtualHost XXX.XXX.XXX.XXX:80>
ServerName mailserver.yourdomain.com:80
ServerAlias mailserver.clientdomain1.com:80
ServerAlias mailserver.clientdomain2.com:80
ServerAlias mailserver.clientdomain3.com:80
# ...etc
RewriteEngine on
RewriteRule ^/+$ /qmailadmin/index.cgi [R]
<Directory /usr/share/qmailadmin>
AddHandler cgi-script .cgi
AddHandler cgi-script qmailadmin
DirectoryIndex index.cgi qmailadmin index.html
Options +Indexes FollowSymLinks +ExecCGI
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
>> All scripts must reside in /home/{somedomain}.
>
> Why is that? I'd be inclined to put them in
> /home/vpopmail/domains/{somedomain}/ (but what do I know?).
No way! Keep your mail system seperate from your web system. Some day you may
need to move your qmail toaster to a seperate machine and that will be very
easy if you don't mix hosted sites with your domains.
Suexec requires CGI directories to be within a couple levels of the root path
it was compiled with (I assume yours was /home) so you must keep sites under
/home/site or /home/username/sitename.
> Is there any way to get virtualmin (or whatever it is that requires it) to
> require /home/vpopmail/domains/{somedomain} instead of simply
> /home/{somedomain}?
>
> What does your /etc/httpd/conf/toaster.conf say? Shouldn't they all pick
> this up and run the scripts from /usr/share/toaster/htdocs/scripts/ ?
I agree, with the toater.conf, this should just simply "work" if the
toaster.conf is in fact included by the server. Keep in mind that toaster.conf
is included by apache into the global scope, not for any particular
VirtualHost, so the domain that it might need to be accessed with is the
default hostname configured into apache's httpd.conf (the ServerName directive
that is not within a VirtualHost directive).
>> If I put the scripts in
>> a folder belonging to that domain, only that domain will be able to use
>> it. I would like to be able to run the qmailadmin scripts from all
>> domains but I haven't figured out how to make it work yet with suexec.
Did you check that list of 20 requirements before suexec works? Your answer
lies there I reckon.
It's late here so I apologize if I'm rambling.
Quinn
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]