In my httpd.conf I have an AliasMatch rule that I need applied to all VirtualHosts except for one. Is there an elegant way to avoid copying the rule into each VirtualHost directive?
質問する
168 次
In my httpd.conf I have an AliasMatch rule that I need applied to all VirtualHosts except for one. Is there an elegant way to avoid copying the rule into each VirtualHost directive?
Not really. If there's other stuff that belongs in all the vhosts but one, though, you could put those directives all in one file, then Include
that file in each vhost that needs it.