8
4
I'm looking at a CentOS 6.5 server with a webframework installed that has been added to over the years by many. There are what looks like 5 active .conf files in /conf, including httpd.conf.
In httpd.conf the include reads
Include conf.d/*.conf
and that grabs all the files in that directory, but without any specific order applied that I'm aware of, and so what about the /conf (no .d) directory?
Is there a setting that states the load order or are they just taken from a-z?
I'm not the server admin, I'm a developer and the problem lies in the paths for uploading files to a /Temp dir, where I have checked that the path specified is correct for the files I myself am concerned with.
So, the 1st question is:
Does Apache load everything from /conf or is there a list specified somewhere?
The 2nd question would be:
In what order does Apache load the files, alphabetically?
Lastly:
Does a file that does not end in .conf get included? For example if I name something myconfig.conf.old will Apache skip it?
1@chrtp, and why a file starting with
t
would override all else? – Andrew Savinykh – 2017-02-13T13:17:52.527Thank you, that answers questions 1 & 2 certainly. I looked though the Apache docs but couldn't find the answer. – chrtp – 2014-01-22T13:22:14.490
Broadly (order of config items overrides earlier items) that is correct. Certainly if the commands are in the same configuration section. But for example it is possible (using
AllowOverride
) to override config items with config in an.htaccess
file. – suspectus – 2014-01-22T13:31:59.063Sorry, I edited my comment before I saw yours. There is no .htaccess in this case, but there is a file starting with 't' that is overriding all else. I'm going to rename or move the file. – chrtp – 2014-01-22T13:35:13.680