Hello all,
I've ran into an issue that is maybe a bit unque to my situation. I'm wanting to install a new webmail/email program to allow my customers a better way of getting email. SquirrelMail and UebiMiau!, which while they work, I like OpenWebmail (www.openwebmail.org) much better, has much better handling of mail files etc.
I installed OpenWebMail just fine into the /var/www/cgi-bin/openwebmail area. My goal is to have OpenWebMail work like the other mail programs by having some sort of an Alias or ScriptAlias or something similiar inside of httpd.conf to redirect to the openwebmail.pl cgi file. That way a user can goto his or her browser and type in: www.mydomain.com/openwebmail and have OpenWebMail load just fine. Currently on my system SquirrelMail and UebiMiau use this manner for being accessable as you can see in the alias below:
Alias /webmail /var/www/html/webmail/
Alias /squirrelmail /var/www/html/squirrelmail/
This works great for these webmail systems because they are html/php based so a simple redirect to their installation folders. What I have discovered with OpenWebmail is that it's a CGI-BIN based webmail program and there isn't any index.html/php type of files to point directly too in a folder. The default file that is the login page is openwebmail.pl. I have tried creating some of the following lines inside of apache, running the command #service httpd restart and seeing if it works... to no avail.
Alias /openwebmail /var/www/html/openwebmail/
ScriptAlias /openwebmail /var/www/cgi-bin/openwebmail/openwebmail.pl
ScriptAliasMatch ^/cgi-bin/openwebmail/(.*) /var/www/cgi-bin/openwebmail/$1
Since this is a CGI program I know I can't make everyone's ScriptAlias /cgi-bin/ go from /home/username/domains/domainname.com/public_html/cgi-bin to /var/www/cgi-bin because that'd really mess up stuff.
I can't figure out how using Apache to create a global Alias that redirects to the /var/www/cgi-bin/openwebmail/openwebmail.pl file. I would like for this to be global so that each new virtual domain that is added down the road for each new customer is given the ability to use OpenWebMail.
Any ideas? Thoughts? Suggestions? Help?
Brad
I've ran into an issue that is maybe a bit unque to my situation. I'm wanting to install a new webmail/email program to allow my customers a better way of getting email. SquirrelMail and UebiMiau!, which while they work, I like OpenWebmail (www.openwebmail.org) much better, has much better handling of mail files etc.
I installed OpenWebMail just fine into the /var/www/cgi-bin/openwebmail area. My goal is to have OpenWebMail work like the other mail programs by having some sort of an Alias or ScriptAlias or something similiar inside of httpd.conf to redirect to the openwebmail.pl cgi file. That way a user can goto his or her browser and type in: www.mydomain.com/openwebmail and have OpenWebMail load just fine. Currently on my system SquirrelMail and UebiMiau use this manner for being accessable as you can see in the alias below:
Alias /webmail /var/www/html/webmail/
Alias /squirrelmail /var/www/html/squirrelmail/
This works great for these webmail systems because they are html/php based so a simple redirect to their installation folders. What I have discovered with OpenWebmail is that it's a CGI-BIN based webmail program and there isn't any index.html/php type of files to point directly too in a folder. The default file that is the login page is openwebmail.pl. I have tried creating some of the following lines inside of apache, running the command #service httpd restart and seeing if it works... to no avail.
Alias /openwebmail /var/www/html/openwebmail/
ScriptAlias /openwebmail /var/www/cgi-bin/openwebmail/openwebmail.pl
ScriptAliasMatch ^/cgi-bin/openwebmail/(.*) /var/www/cgi-bin/openwebmail/$1
Since this is a CGI program I know I can't make everyone's ScriptAlias /cgi-bin/ go from /home/username/domains/domainname.com/public_html/cgi-bin to /var/www/cgi-bin because that'd really mess up stuff.
I can't figure out how using Apache to create a global Alias that redirects to the /var/www/cgi-bin/openwebmail/openwebmail.pl file. I would like for this to be global so that each new virtual domain that is added down the road for each new customer is given the ability to use OpenWebMail.
Any ideas? Thoughts? Suggestions? Help?
Brad
Last edited: