• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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