Is there a difference between putting Directory tags inside or outside VirtualHosts? I found a configuration file that has several VirtualHosts all with the same Directory tag inside, and the same outside; so I'm thinking of getting rid of this duplication but I don't totally understand the semantics involved.
|
feedback
|
|
A <Directory> inside of a <VirtualHost> will only apply to files within that directory when they are accessed via that VHost. <Directory> outside of a <VirtualHost> will always apply (unless overridden in the <VirtualHost> or elsewhere, of course). From a security standpoint, you can argue both sides: additional levels of access ( At the end of the day, where to place the <Directory> ends up being a combination of three things, in increasing order of importance:
| |||
|
feedback
|