• 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.

Howto insert Alias into httpd.include automatically

xplod

New Pleskian
Actually, I have to insert the line

Alias /Microsoft-Server-ActiveSync {DOCROOT}/z-push/index.php
anytime, I change the server configuration.

I tried to add it in the servers hostings settings for PHP, but this didn't work.
Is there any other way to insert this line for just a single subdomain, instead of editing the template?

Best regards,
Dirk
 
Am not sure there's but you can LOCK your httpd.include file from it changing when you make changes on the server configuration.

That can be done by:

chattr +i httpd.include

and if you need to UNLOCK it, then

chattr -i httpd.include
 
You didn't get what I meant to ask:

I do not want to edit the .conf file anytime Plesk updates the specific subdomain (I didn't notice a config update the last time plesk did an autoupdate, so that the ActiveSync service was down a few hours)

My current solution is to edit the template in the templates/custom directory, so that the alias is created for every domain and subdomain, but that's not my favourite one...
 
Xplod, Sergey's solution keeps the file un-changed with or without plesk making configurations after the new subdomain creation.

So does mine (though a-bit dirty)
 
Back
Top