Remove the webmail alias

tino

Verified User
Joined
Jan 8, 2004
Messages
92
Hi,

For one domain (with it's own IP address for SSL use) I want to disable the /webmail alias. Unfortunatly, this alias is defined in the main httpd.conf (/etc/httpd/conf/). If I remove it from there, this will affect all users/domains and the links in the CP won't be correct.

So I want to disable it only for this one domain. Pref. in the /usr/local/directadmin/.../httpd.conf.

I could try to redefine the alias with the same directory... would that work? Is there a nice way?

Tino

P.S. I'd like webmail to be feature with each account...
 
You could try editing the httpd.conf for that domain and try to create another alias pointing to the main page. I don't know which gets precedence though.
 
Yeah, that's just what I did for now.

Just add another:

Alias /webmail/ /home/account/domains/domain.com/public_html/webmail/

to the httpd.conf for the domain.

It does work, but it isn't very clean. Could very well be that in a next apache version, for some reason, this would stop working.

So, being able to enable and disable webmail on a per-account or per-domain basis would be nice. Furthermore, you could us generic link for webmail, for example http://ip/webmail.

Tino
 
I was about to place this as a feature request the other day.....

instaed of having the redirects for webmail squirrelmail phpmyadmin etc have them specified in each users httpd.conf (as default)

Then in the case of webmail, squirrelmail, phpmyadmin or config being a problem for the user they can be removed / chnaged without affecting any other users.... shouldn't be hard to do and would be very useful :)

Chris
 
Back
Top