localhost:8701页面点击跳转到localhost:8701/mana/
实际想访问到本地启动的服务:localhost:8080/mana/
下载nginx安装包,解压后,在nginx.conf中配置
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://127.0.0.1:8701;
}
location /mana/ {
proxy_pass http://127.0.0.1:8080;
}
}
}