我正在使用Diazo(以前称为 XDV)来主题一些内部网站,使用 Apache 和mod_transform_html。TransformSet
我希望我可以通过将指令放入指令中来利用多个不同的主题Location
,如下所示:
<Location /blog/>
TransformSet /themes/blog.xsl
</Location>
<Location />
TransformSet /themes/main.xsl
</Location>
不幸的是,看起来总是优先的TransformSet
指令。/
我暂时通过将内容从/
to移动/main
并添加来解决这个问题:
RewriteRule ^/$ /main/ [R]
<Location /main/>
TransformSet /themes/main.xsl
</Location>
这行得通,但我宁愿能够将这个内容托管在/
.
那么......有没有办法覆盖应用于的转换/
?这种事情似乎适用于其他 Apache 配置指令(例如,ProxyPass
)。