• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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