NGINX 虚拟主机使用 之三
worker_processes1; events {worker_connections1024;
}
http {
include mime.types;
default_typeapplication/octet-stream;
sendfile on;
keepalive_timeout65;
server {
listen 80; #80端口
server_namewww.kang.com;
location / {
root html/www;
indexindex.html index.htm;
}
error_page 500 502 503 504/50x.html;
location = /50x.html {
root html;
}
}
server {
listen 81; #81端口
server_namekang.kang.com;
location / {
root html/bbs;
indexindex.html index.htm;
}
error_page 500 502 503 504/50x.html;
location = /50x.html {
root html;
}
}
}
页:
[1]