摘要:nginx小总结,虚拟主机的配置 user nginx nginx; worker_processes 1; events { worker_connections 1024; use epoll; } http { include mime.types; default_type application/octet-stream;
nginx小总结,虚拟主机的配置
user nginx nginx;
worker_processes 1;
events {
worker_connections 1024;
use epoll;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name www.example.com *.example.com;
location / {
root html;
index index.html index.htm;
}
}
server {
listen 80;
server_name qq.example.com;
location / {
相关文章推荐
虚拟主机的专业参数,分别都是什么意思?2022-09-09
中非域名注册规则是怎样的?注册域名有什么用处? 2022-01-10
HostEase新年活动促销 美国/香港主机全场低至五折2021-12-28
HostGator下载完整备份教程分享2021-12-28
Flink中有界数据与无界数据的示例分析2021-12-28