Submitted by Hal9000 on Wed, 01/19/2011 - 07:37
I inserted a URL for webmail. redirection which, as help suggests, contains a ${dom} in form of https://mydomain.tld/webmail/?_domain=${dom} But ${dom} does not get replaced by the actual domain when generating the apache config files.
Status:
Closed (fixed)
Comments
Submitted by andreychek on Wed, 01/19/2011 - 09:08 Comment #1
Howdy -- the variable names are case sensitive. That is -- rather than using ${dom}, you'd want to use ${DOM}.
I did a test with ${DOM} in the webmail redirection, and it worked correctly... so that should do the trick for you.
Let us know if you have any other questions!
Submitted by Hal9000 on Wed, 01/19/2011 - 09:55 Comment #2
ok, then you might want to fix your help text:
"By default, Virtualmin will redirect requests to http://webmail.thedomain.com to Usermin on the same system, like https://thedomain.com:20000/. However, this field can be used to change the redirect URL, perhaps to a single hostname for all your domains for which you have an SSL certificate, like https://webmail.yourcompany.com:20000/. Or you can redirect to another webmail application on the same domain, by entering a URL like http://www.${dom}/squirrelmail/."
cheers :)
Submitted by andreychek on Wed, 01/19/2011 - 10:05 Comment #3
I verified that it indeed does not work when the variable is lower-case, such as ${dom}.
He's right then Jamie, the help text for "URL for webmail redirect" should probably be updated to reflect the upper-case variable name :-)
Submitted by JamieCameron on Wed, 01/19/2011 - 11:48 Comment #4
Thanks - I will fix this help page in the next release (3.84)
Submitted by Issues on Wed, 02/02/2011 - 12:20 Comment #5
Automatically closed -- issue fixed for 2 weeks with no activity.