문제

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