• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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="[email protected]" />
  </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="[email protected]" />
  </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="[email protected]" />
  </head>

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