I want to try and standardize my PHP and server configuration across multiple servers. I was hoping this could be done with a single .htaccess file something like this:
Code: Select all
php_value default_charset UTF-8
<VirtualHost ezme>
Options +Indexes
</VirtualHost>
<VirtualHost _default_>
Options -Indexes
</VirtualHost>
Here what I am trying to achieve is to have my development server (ezme) allow Indexes and all others (production servers) disallow it. But you can't do that because <VirtualHost> isn't valid in .htaccess. Does anybody have any other suggestions. Ideally what I'm after is
- Apply configuration directives conditionally based on something identifiable about the server
- A single easily, deployable configuration file
- Something that requires the minimum of permissions. For instance I can't modify http.conf on most servers