Bug 290792 - www/nginx: Add more documentation for multiple profiles setup
Summary: www/nginx: Add more documentation for multiple profiles setup
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Jochen Neumeister
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-04 15:14 UTC by Spyros Anastasopoulos
Modified: 2025-11-16 00:24 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (joneum)


Attachments
Improvements for the documentation (1.20 KB, patch)
2025-11-04 15:14 UTC, Spyros Anastasopoulos
no flags Details | Diff
Improvements for the documentation (1.20 KB, patch)
2025-11-16 00:24 UTC, Mark Linimon
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Spyros Anastasopoulos 2025-11-04 15:14:38 UTC
Created attachment 265155 [details]
Improvements for the documentation

An update to the documentation needed to setup nginx with multiple profiles.

Install www/nginx and then try to run it with 2 profiles. The script at /usr/local/nginx/rc.conf contains instructions on how to do it but they omit nginx_${profile}_configfile rc.conf variables. It is straightforward to understand you need them from reading the script or from the error message of the first run, but they should be documented. I suggest adding the following instructions, also attached as a patch. This is for files/nginx.in

# nginx_{profile}_configfile (str):    Set to "" by default
#                              When using profiles manually define a variable for
#                              each profile and assign the absolute path of
#                              the configuration file for that profile. For example
#                              nginx_profiles="assets proxy"
#                              nginx_assets_configfile="/usr/local/etc/nginx/assets.conf"
#                            nginx_proxy_configfile="/usr/local/etc/nginx/proxy.conf"
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2025-11-16 00:24:08 UTC
Created attachment 265437 [details]
Improvements for the documentation

^Triage: rebase patch.