|If you want to disable /webmail for just one domain (for example), one way to do that is to change the Aliases to be within the VirtualHosts instead of 1 global Alias.|
To do that, we'll need to use the virtual_host2.conf template (for apache 2) and use the custom httpd config settings, found in the Admin Level. This guide assumes you're using apache 2 with custombuild.
1) Setup the custom template so it's safe from DA updates:
2) Edit the copied virtual_host2.conf file, and insert the following at the top of the file:
Then just below the token that says |CUSTOM| (in the same file) add:
3) Go to:
Admin Level -> Custom httpd config -> domain.com
In the textarea at the top, insert this one line:
|?WEBMAIL=OFF|which will shut off webmail for just that one domain.
4) Remove the global Alias from the /etc/httpd/conf/extra/httpd-aliases.conf file.
5) Issue a full user httpd.conf rewrite, then restart apache.
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
© 2003 JBMC Software, Suite 173 3-11 Bellerose Drive, St Albert, AB T8N 1P7 Canada. Mon-Fri 9AM-5PM MST