• 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

httpd.include rewrite fix?

I

icwiz

Guest
Hello

I think I figured out how to rewrite the httpd.include file permanently.

In the httpd start up script, there is an entry to rewrite the httpd.include with a backup.

So i copied my changed version of the httpd.include over the httpd.include.bak.

Now after restarting plesk and httpd, the settings are still there.

I was wonder if anyone else has done this too. Or if I'm mistaken in thinking that this will be permanent.

I also noticed that there is an original being kept in the same directory "orig.httpd.include"


--ICWiz

P.S. This is Plesk 7.5.4
 
Why are you not utilizing the vhost.conf feature instead of forcing your httpd.include to stay the same. httpd.include will change with any changes to the site config (through the control panel). Forcing it to use the same one regardless can cause problems. Utilizing the vhost.conf feature of plesk will allow you to have certain things remain the same while others are changable by the user. Useful for security/other reasons, depending on your setup...
 
Back
Top