worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name admin.kochiyac.xyz;
location / {
root pethome_Admin;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
server {
listen 80;
server_name www.kochiyac.xyz;
location / {
root pethome_front;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
server {
listen 80;
server_name api.kochiyac.xyz;
location / {
add_header 'Access-Control-Allow-Origin' $http_origin;#是否允
nginx-conf记录
最新推荐文章于 2022-10-13 16:43:27 发布