Author Topic: /usr/local/apache/conf.d/vhosts/domain.ssl.conf gets overwritten  (Read 106 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
When we make a custom conf like /usr/local/apache/conf.d/vhosts/testdomain.nl.ssl.conf it gets overwritten and reset to default. How can we make custom config files so that they won't be overwritten?

Online
***
Re: /usr/local/apache/conf.d/vhosts/domain.ssl.conf gets overwritten
« Reply #1 on: May 26, 2023, 10:29:29 PM »
Code: [Select]
sudo chattr +i /usr/local/apache/conf.d/vhosts/testdomain.nl.ssl.confto make changes, remove the immutable bit:
Code: [Select]
sudo chattr -i /usr/local/apache/conf.d/vhosts/testdomain.nl.ssl.conf

Offline
*
Re: /usr/local/apache/conf.d/vhosts/domain.ssl.conf gets overwritten
« Reply #2 on: May 27, 2023, 10:16:25 PM »
It looks like you customize the apache conf file generated by CWP. If so then CWP reset all HTTP/HTTPS (nginx/apache) confs according to the used templates.

To solve this I recommend you to create a custom template and apply it for your website testdomain.nl.

Please review the page:
https://wiki.centos-webpanel.com/webservers-vhost-templates
to learn about webserver vhost templates.

Hope it will help you to solve the problem.