nginx 别名设置
nginx别名设置
nginx 调整后,还需要把tomcat也命名
server {
listen 80;
server_name www.yuming1.com.cn www.yuming2.com;
#charset koi8-r;
<Host name="new.tarena.com.cn" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Alias>www.yuming1.com.cn</Alias>
<Alias>www.yuming2.com</Alias>
<Context path="" docBase="/data/tomcat1/webapps/myapp" reloadable="true"></Context>
</Host>
It may have the strength, but the effort, struggle, worthy of the heart.

浙公网安备 33010602011771号