• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

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