Instead of the default nginx.conf file this file is a small variant without examples that enables the /etc/nginx/conf.d/ directory. It will pull in all configuration files from the conf.d directory. So, other packages can add their server parts in the conf.d directory without modifying the main nginx.conf file (cf. #9860). Changed also the default logging behavior: error_log stderr; # the init forwards it to logd access_log off; See the updated documentation at: https://openwrt.org/docs/guide-user/services/webserver/nginx Signed-off-by: Peter Stadler <peter.stadler@student.uibk.ac.at>
8 lines
314 B
Text
8 lines
314 B
Text
# default_server for the LAN addresses getting the IPs by:
|
|
# ifstatus lan | jsonfilter -e '@["ipv4-address","ipv6-address"].*.address'
|
|
server {
|
|
include '/var/lib/nginx/lan.listen.default';
|
|
server_name _lan;
|
|
# access_log /proc/self/fd/1 openwrt; # use logd (init forwards stdout).
|
|
include conf.d/*.locations;
|
|
}
|