You need Apache> = 2.4 to make this really conditional.
<If "%{HTTP_HOST} == 'mysite.local'"> # ... </If> <Else> # ... </Else>
For earlier versions, this is only possible by adding the -D option to the launch command line (-DLOCAL below), and then:
<IfDefine LOCAL> # ... </IfDefine> <IfDefine !LOCAL> # ... </IfDefine>
(for Apache> = 2.4, see also the Define directive - the same effect as adding the -D argument)
julp source share