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

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