# Nginx module snippet inclusion

**URL:** <https://forum.virtualmin.com/t/nginx-module-snippet-inclusion/138167>\
**Category:** Webmin\
**Created:** [October 16, 2026, 6:51am UTC](https://forum.virtualmin.com/t/nginx-module-snippet-inclusion/138167 "2026-10-16T06:51:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aspx1981](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@aspx1981](https://forum.virtualmin.com/u/aspx1981)\
**Post date:** [October 16, 2026, 6:51am UTC](https://forum.virtualmin.com/t/nginx-module-snippet-inclusion/138167/1 "2026-10-16T06:51:46Z")

</div>

| SYSTEM INFORMATION | |
| --- | --- |
| OS type and version | Debian 13 |
| Webmin version | 2.670 |

Hello,

just an information  
is the snippet inclusion functionality available ?  
as per best practice I collect all the SSL settings or FastCGI or … in snippet files and then include them, but it seems the settings included are not visible or manageable inside the module.

Thanks,  
Bye

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [October 16, 2026, 9:17am UTC](https://forum.virtualmin.com/t/nginx-module-snippet-inclusion/138167/2 "2026-10-16T09:17:53Z")

</div>

There is currently no support for Snippets. Webmin edits config files directly, including the nginx config file. Included files are, um, included. But, Snippets are new-fangled, and didn’t exist when the nginx support was being added. And, I’m not actually sure how to make it fit, I’m not familiar with them. Snippets seem to generate configuration files, right? So, that makes things really tricky. What’s the source of truth?

---

<div class="post-metadata">

**Author:** ![aspx1981](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@aspx1981](https://forum.virtualmin.com/u/aspx1981)\
**Post date:** [October 26, 2026, 8:17am UTC](https://forum.virtualmin.com/t/nginx-module-snippet-inclusion/138167/3 "2026-10-26T08:17:47Z")

</div>

I was thinking something like:

to add a global snippets section where snippets can be edited

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/3X/3/d/3d9c3c7c0fb0e34c594f2285066b9d925883c687.png)  
 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/3X/2/7/271792843e34323926b75a3ebf9d7f814ed58b92.png)

and to add a snippet section in each server block which contains the list of snippets included in that server block

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/3X/f/9/f9a0692cafa4d4ccd9e057e8092b02450dfe90cb.png)

do you think would it be meaningful ?

Thanks,  
Bye

---

<div class="post-metadata">

**Author:** ![aspx1981](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@aspx1981](https://forum.virtualmin.com/u/aspx1981)\
**Post date:** [October 26, 2026, 8:28am UTC](https://forum.virtualmin.com/t/nginx-module-snippet-inclusion/138167/4 "2026-10-26T08:28:40Z")

</div>

alternatively I was thinking if is it possible to add two sections in the global config:  
SSL Configuration and FastCGI Options

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/3X/f/0/f0a56cfb09c29e3926be3233b5f15ea744c0e372.png)  
and make all the server blocks inherit the global settings or overwrite some of them  
like for Server-Side Include Settings

Thanks,  
Bye
