Linux nginx and tomcat domain name binding

 

Domain name binding: www.chipmunk.com

ip:99.100.99.100

Engineering project: chipmunk (in the root directory of linux /project/chipmunk)

 

linux

 

nginx的nginx.conf

 

server {
    listen       80;
	server_name  localhost;
	location / {
		#root   html;
		#index  index.html index.htm;
		proxy_pass   http://127.0.0.1:8080/;
	}
  }

 

  

tomcat-like server.xml

 

  <Host name="localhost" appBase="/project/chipmunk" unpackWARs="true" autoDeploy="true">
	<Context path="" docBase="" reloadable="false"/>

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326089658&siteId=291194637