default alias with apache? does this exist?

I've a stupid problem which I'm unable to solve.

I'm using sqwebmail and qmailadmin and therefore I've created aliases for having them in a nice url:

ScriptAlias /mailadmin /var/www/cgi-bin/qmailadmin
Alias /images/qmailadmin/ /var/www/html/images/qmailadmin/

ScriptAlias /mail /var/www/cgi-bin/sqwebmail3/sqwebmail
Alias /webmail3/ /var/www/html/webmail3/

Do I have to add this lines into every single virtual host or is there a more elegant way to define them globally?

Do you think this two features could be a security hole? Shall I use .htaccess and .htpasswd? Any other recommendation regarding security?

thanks a lot!

 

 

 

 

Top