Hi,

Pardon me for asking this if its already been asked which Im certain that it has, regex is not my specialty...

If I have the following series of urls:

webmail.theusersdomain.com
webmail.somedomain.com
webmail.myuserdomain.com
webmail.etc.com

you get the picture....

Instead of adding hostdirections in the apache conf file....I was thinking a mod_rewrite rule would do the trick rather nicely....what I thought of was this:

RewriteEngine on
RewriteRule ^webmail\.[a-z]+\.com$ webmail\.[a-z]+\.com\:7080/scripts/ webmail.exe

Am I in the right ball park ?

And lastly, would this rule live in the httpd.conf file or would this rule live somewhere else ????

Or if I miss my guess would this rule have to live in a .htaccess file in EVERY domain_directory that I host ?

M i l e s.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to