• 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

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