#user nobody;
worker_processes 1;
error_log logs/error.log;
pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server{
listen 9001;
location / {
root C:/soft/hm-mall/hm-mall-admin; #注意:路径分隔符需要是/, 不要用\
}
}
server{
listen 9002;
location / {
root C:/soft/hm-mall/hm-mall-portal;
}
}
}
nginx配置参考
最新推荐文章于 2024-11-01 14:48:20 发布