the problem is, when the virtual server is a subdomain, $PREFIX  is the name of the subdomain, not the domain, so, in this case, there is no variable for the (second-level-)domain, but this is exactly what I'm looking for.


On Tue, Nov 12, 2013 at 10:16 PM, Jamie Cameron <jcameron@webmin.com> wrote:

So are you looking for a variable for the first part of the domain name? $PREFIX is normally set to that. 

On 12/Nov/2013 11:33 Pat Erler <perler@gmail.com> wrote ..

ok, I knew I had seen this somewhere.. but it looks to me, as if there is either no variable for the SLD or just ${DOM} which is either the SLD or the subdomain, in whatever context you are..

how would I set the scheme for what I want to accomplish (see first mail)?




On Tue, Nov 12, 2013 at 6:34 PM, Jamie Cameron <jcameron@webmin.com> wrote:
On 12/Nov/2013 00:14 Pat Erler <perler@gmail.com> wrote ..
> hi,
>
> is there a way to change the naming scheme for mysql dbs of virtual
> servers? right now, subdomain's dbs are named with the name of the
> subdomain (ie sub.domain.com's db is named "sub"), which leads to
> confusion, when you have more domains with a similar named subdomain (ie
> sub.antoherdomain.com).
>
> it would be nice to set the scheme to something like domain_sub for the
> first db..

You can control the naming scheme for DBs at System Settings -> Server Templates ->
Default Settings -> MySQL Database -> "Default database name" and "Default database name"

 - Jamie

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
-
Forwarded by the Webmin mailing list at webadmin-list@lists.sourceforge.net
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list



--
Pat Erler
Gtalk/G+: perler@gmail.com
Skype: pat_erler


------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
-
Forwarded by the Webmin mailing list at webadmin-list@lists.sourceforge.net
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list




--
Pat Erler 
Gtalk/G+: perler@gmail.com
Skype: pat_erler