#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 8899;
server_name localhost;
location / {
root D:/0-workspace/door-web-operator;
index index.html index.htm;
try_files $uri $uri/ /dist/index.html;
#add_header Access-Control-Allow-Origin *;
}
#反向代理的路径(和upstream绑定),location 后面设置映射的路径
location /api {
proxy_pass https://smartcampus..com;
}
}
}
nginx---conf
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- 错误提示: 原因: nginx.conf文件被记事本编辑过,保存成了含BOM头的文件,记事本编辑UTF-8都会加B...
- 狗日的,之前遇到过这个问题.貌似之前是重启了很多次电脑还是这样,后面也有百度过,也是下面的这种方法。但是今天忘记了...
- 今天修改nginx配置文件就报这个错误 然后我上网开始查询资料,查了半天才知道原来是用记事本修改的原因, 只要使...
- nginx: [emerg] directive "proxy_cache_bypass" is not term...
- 解决办法 将这一步改一下 ./configure --prefix=/usr/local/nginx TO ./c...