Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to change the main Apache settings in my server.

Usually what I do is to modify the .htaccess in each website I host in my server.

What I want to do now is to change the general settings of the .htaccess that will automatically affect all the domain names hosted in my server.

Is this possible?

I have full root access.

Please let me know.

For example I want to limitate the usage of certain file extensions. Instead of doing this in each .htaccess I have in each site on my server, I want to do it once for all.

Let me know which file I have to modify in order to do it.

Thank!

share|improve this question

1 Answer 1

You have to modify the main Apache configuration file, which will be in one of several places (/etc/httpd/httpd.conf or /etc/apache2/apache2.conf would be the two most likely options, for RedHat- and Debian-derived systems, respectively).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.