Forum Moderators: phranque
I guess my question is: has anyone done any benchmarking? Or, anyone have any hints on how to benchmark?
Thanks,
- Ryan
As to which container to use, that depends on the nature and purpose of the rules. If you have rules that apply to an entire virtual host, put them in the <VirtualHost> container(s). If the rules apply only to a specific directory or directory-path on a specific vhost, then put them in a <directory> container. Feel free to do both as needed.
Jim
If I want it to apply domain wide, put it in VirtualHost; if I want it to apply to only a specific directory (domain.com/subdir); put it in a <Directory>. Any difference other than that?
Will one overrule the other? Which will get used for domain.com/subdir, <VirtualHost domain.com> or <Directory /home/domain/subdir>?
And, last question, there is a command telling Apache to ignore .htaccess, but I can't remember what it is. It seems that not having to step through subdirectories looking for .htaccess would speed up the process as well. Any thoughts?