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>
28 lines
575 B
Nginx Configuration File
28 lines
575 B
Nginx Configuration File
# Please consider creating files in /etc/nginx/conf.d/ instead of editing this.
|
|
# For details see https://openwrt.org/docs/guide-user/services/webserver/nginx
|
|
|
|
user root;
|
|
|
|
events {}
|
|
|
|
http {
|
|
access_log off;
|
|
log_format openwrt
|
|
'$request_method $scheme://$host$request_uri => $status'
|
|
' (${body_bytes_sent}B in ${request_time}s) <- $http_referer';
|
|
|
|
include mime.types;
|
|
default_type application/octet-stream;
|
|
sendfile on;
|
|
|
|
client_max_body_size 17M;
|
|
large_client_header_buffers 2 1k;
|
|
|
|
gzip on;
|
|
gzip_vary on;
|
|
gzip_proxied any;
|
|
|
|
root /www;
|
|
|
|
include conf.d/*.conf;
|
|
}
|