nginx配置文件在哪实现Web服务器的功能

示例示例Nginx配置文件位于/etc/nginx/nginx.conf,具体代码如下:user nginx;

示例示例Nginx配置文件位于/etc/nginx/nginx.conf,具体代码如下:user nginx;

Nginx配置文件位于/etc/nginx/nginx.conf,具体代码如下:

user nginx;

worker_processes auto;

error_log /var/log/nginx/error.log;

pid /run/nginx.pid;

events {

worker_connections 1024;

}

http {

include /etc/nginx/mime.types;

default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '

'$status $body_bytes_sent "$http_referer" '

'"$http_user_agent" "$http_x_forwarded_for"';

access_log /var/log/nginx/access.log main;

sendfile on;

tcp_nopush on;

tcp_nodelay on;

keepalive_timeout 65;

types_hash_max_size 2048;

include /etc/nginx/conf.d/*.conf;

include /etc/nginx/sites-enabled/*;

}

本站系公益性非盈利分享网址,本文来自用户投稿,不代表码文网立场,如若转载,请注明出处

(956)
linux安装samba服务器:如何在Linux上安装和配置Samba服务器
上一篇
linux查看已有的yum源:查看已有的yum源的方法
下一篇

相关推荐

发表评论

登录 后才能评论

评论列表(69条)