1.规范优化Nginx配置文件
当有多个虚拟主机的时候,可以在主配置文件中使用include包含子配置文件
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/ocet-stream;
sendfile on;
keepalive_timeout 65;
include extra/www.conf;
include extra/blog.conf;
include extra/bbs.conf;
}
2.虚拟主机设置别名
#server_name 多个域名空格分开
server {
list