2019-05-05

NGINX深入

nginx模块

nginx目录结构

nginx主配置文件

虚拟主机概念和类型

[root@web01 /application/nginx/conf]# egrep -v "^$|#" nginx.conf.default >nginx.conf

[root@web01 /application/nginx/conf]# cat -n nginx.conf

    1 worker_processes  1;

    2 events {

    3     worker_connections  1024;

    4 }

    5 http {

    6     include      mime.types;

    7     default_type  application/octet-stream;

    8     sendfile        on;

    9     keepalive_timeout  65;

    10     server {

    11         listen      80;

    12         server_name  localhost;

    13         location / {

    14             root  html;

    15             index  index.html index.htm;

    16         }

    17         error_page  500 502 503 504  /50x.html;

    18         location = /50x.html {

    19             root  html;

    20         }

    21     }

    22 }






最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容