سؤال

I want to configure a location directive that is inherited by all server blocks.

In Apache, if I use the Alias directive outside the Virtualhost block, it applies to all virtualhosts, each host can access the location provided.

In Nginx, when I put the location directive outside a server block, it says "location directive is not allowed here".

Is there a better solution than re-defining the location in each server block?

لا يوجد حل صحيح

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top