为什么访问不到,那里写错了?
nginx吧
全部回复
仅看楼主
level 7
server {
listen 8080;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
# 访问默认的页面
# location / {
# root ../www;
# index index.html index.htm;
# }
# 访问app1页面时候,返回端口1000
location /app1 {
root ../www1;
index index.html index.htm;
# proxy_pass http://localhost:1000;
}
# 访问app2页面时候,返回端口2000
location /app2 {
root ../www2;
index index.html index.htm;
# proxy_pass http://localhost:2000;
}
2023年07月24日 23点07分 1
level 2
root写绝对路径试试?
2023年07月30日 02点07分 3
1