• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

missing file /var/www/vhosts/system/www.mydomain.com/conf/vhost.conf

AfterBit

New Pleskian
Hello,
i have a domain www.mydomain.com.
i would like to add some custom settings to file httpd.conf in :/var/www/vhosts/system/www.mydomain.com/conf
In this file there is a warning:

#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
#IF YOU REQUIRE TO APPLY CUSTOM MODIFICATIONS, PERFORM THEM IN THE FOLLOWING FILES:
#/var/www/vhosts/system/www.mydomain.com/conf/vhost.conf
#/var/www/vhosts/system/www.mydomain.com/conf/vhost_ssl.conf

so..

1) there is no file vhost.conf in var/www/vhosts/system/www.mydomain.com/conf/ .. should i create it?

2) if i finally get the file vhost.conf,.. how can i add the following setting :

<IfModule mod_jk.c>
JkMount /www.mydomain.com ajp13
JkMount /www.mydomain.com/* ajp13
</IfModule>

and to be sure that this directive will be executed?

thanks!
 
The files you mention are controlled in Plesk...

Plesk > Subscription > domain.tld > Apache & Nginx Settings

Regards

Lloyd
 
Well you can add your...
Code:
<IfModule mod_jk.c>
JkMount /www.mydomain.com ajp13
JkMount /www.mydomain.com/* ajp13
</IfModule>


in the Additional Apache Directives sections along with any rewrite rules you need wrapped in <IfModule mod_rewrite.c> tags.

I hope that helps
Regards

Lloyd
 
Back
Top