包含shiro框架的webapp的域名部署方案
aliyun dns: domain.name
nginx:
- server:
listen port;
server_name domain.name;
- location / :
proxy_redirect off;
proxy_pass
http://isp_addr/webapp/;proxy_set_header Host $http_host;
- location /webapp/ :
proxy_redirect off;
proxy_pass
http://isp_addr/webapp/;proxy_set_header Host $http_host;
tomcat: webapp