• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Domain variable in default virtual host templates (Plesk 11.5)

ThomasR

Basic Pleskian
Hi,

We are using our own default virtual host template (aka skeleton). Before 11.5 there was no problem of using the "@domain_name@" variable in these files. In Plesk 11.5, it looks like this variable is replaced only once:

HTML:
<html>
  <head>
    <title>Welcome at @domain_name@</title>
  </head>

  <body>
    <p>This is the default home page for @domain_name@.</p>
  </body>
</html>
is replaced by
HTML:
<html>
  <head>
    <title>Welcome at mydomain.com</title>
  </head>

  <body>
    <p>This is the default home page for @domain_name@.</p>
  </body>
</html>

There was an issue for this which should be fixed by MU 10 (http://kb.parallels.com/en/116636):
[-] Administrators could not include domain names in the files of the default virtual host template using the @domain_name@ variable. (140092)
However this variable is only replaced at its first occurrence. Someone who can confirm this is a bug? Can this be fixed in the next MU?
 
I can confirm that the issue looks to be present. Though I think your example is not entirely correct - don't you have something like email address on your page?

What's your MU version?
 
It's just an example to clarify the problem indeed.

The thing is, devs/qa will try out your example and it will work perfectly. Great, problem closed! The power of correct/incorrect "steps to reproduce".

Check for yourself that example you gave actually works ;)
 
The thing is, devs/qa will try out your example and it will work perfectly. Great, problem closed! The power of correct/incorrect "steps to reproduce".

Check for yourself that example you gave actually works ;)
Ok, didn't know this email address was causing the problem. Following example fails:
HTML:
<html>
  <head>
    <title>Welcome at @domain_name@</title>
    <meta name="author" content="admin@server.tld" />
  </head>

  <body>
    <p>This is the default home page for @domain_name@.</p>
  </body>
</html>
returns:
HTML:
<html>
  <head>
    <title>Welcome at mydomain.com</title>
    <meta name="author" content="admin@server.tld" />
  </head>

  <body>
    <p>This is the default home page for @domain_name@.</p>
  </body>
</html>
instead of
HTML:
<html>
  <head>
    <title>Welcome at mydomain.com</title>
    <meta name="author" content="admin@server.tld" />
  </head>

  <body>
    <p>This is the default home page for mydomain.com.</p>
  </body>
</html>
 
Back
Top