httpd.conf is overwriten by easyapache? how to keep changes?

postcd

Well-Known Member
Oct 22, 2010
717
19
68
Hello,
according to this post i need to add new content into:
/usr/local/apache/conf/httpd.conf
i want to ask if my changes will be persistent (after easyapache build etc.) or how from WHM i can add new content and making it persistent?
 

Shavaun

Well-Known Member
Aug 15, 2013
106
0
91
cPanel Access Level
Root Administrator
I'm not certain that the information in that post is still accurate, since it is from a few years ago.

However I can tell you that:

1) Making direct changes to your httpd.conf file is generally inadvisable. You can modify your global configuration without changing the httpd.conf file directly. You can find information about the different ways to do this here: http://documentation.cpanel.net/dis...iguration-ModifyyourglobalApacheconfiguration
2) If you really want to go that route, you can follow the documentation here: http://documentation.cpanel.net/dis...Configuration-Modifythehttpd.conffiledirectly

I have recently rewritten some of the Apache configuration docs, so please let me know if you have any questions or if they are still unclear.
 

postcd

Well-Known Member
Oct 22, 2010
717
19
68
So from yours mentioned manual i found one way how to do it via WHM:
Home >> Service Configuration >> Apache Configuration >> Include Editor

then i already have some code there in "Pre VirtualHost Include", All versions:
<IfModule mod_fcgid.c>
FcgidMaxRequestLen 1073741824
</IfModule>
so i just paste my code after above mentioned? Im talking about code which is mentioned in the post i linked in first post of this thread?

<Directory "/">
Options -ExecCGI -FollowSymLinks Includes IncludesNOEXEC Indexes -MultiViews SymLinksIfOwnerMatch
AllowOverride All
</Directory>
....
....
? and restart apache?