# Extend include wildcard in nginx sample.conf

**URL:** https://meta.discourse.org/t/extend-include-wildcard-in-nginx-sample-conf/398899
**Category:** Feature
**Created:** [March 20, 2026, 5:01pm UTC](https://meta.discourse.org/t/extend-include-wildcard-in-nginx-sample-conf/398899 "2026-03-20T17:01:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![camlafit](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/camlafit/32/547948_2.png) [@camlafit](https://meta.discourse.org/u/camlafit)
#### Post date: [March 20, 2026, 5:01pm UTC](https://meta.discourse.org/t/extend-include-wildcard-in-nginx-sample-conf/398899/1 "2026-03-20T17:01:16Z")

</div>

Hi,

The **[nginx template](https://github.com/discourse/discourse/blob/main/config/nginx.sample.conf)** already provides some `include` directives to extend the server behaviour, and this mechanism is used with the Docker deployment.

In our use case, we would like to restrict access to some parts of the site, such as the admin pages. It would be nice to reuse this logic and, for example, add a specific `include` around **[this section of the nginx.sample.conf](https://github.com/discourse/discourse/blob/main/config/nginx.sample.conf#L110)**.​

Thanks a lot
