nginx学习-location 正在表达式
原创
©著作权归作者所有:来自51CTO博客作者达达智能的原创作品,请联系作者获取转载授权,否则将追究法律责任
nginx.conf
#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 {
server {
listen 80;
server_name www.mingshine.com;
location /bbs/ {
proxy_pass http://localhost:7808/cabbeen-api/testlock;
index index.html index.htm;
}
location /www/ {
proxy_pass http://localhost:7808/cabbeen-api/redis;
index index.html index.htm;
}
}
}