nginx 别名设置
时间:2016-05-30 17:35 来源:linux.it.net.cn 作者:IT
nginx别名设置
nginx 调整后,还需要把tomcat也命名
server {
listen 80;
server_name www..it.net.cn www.itnetcn.com;
#charset koi8-r;
<Host name="new.tarena.com.cn" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Alias>www.it.net.cn</Alias>
<Alias>www.itnetcn.com</Alias>
<Context path="" docBase="/data/tomcat1/webapps/myapp" reloadable="true"></Context>
</Host>
(责任编辑:IT)
nginx别名设置 nginx 调整后,还需要把tomcat也命名 server { listen 80; server_name www..it.net.cn www.itnetcn.com; #charset koi8-r; <Host name="new.tarena.com.cn" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Alias>www.it.net.cn</Alias> <Alias>www.itnetcn.com</Alias> <Context path="" docBase="/data/tomcat1/webapps/myapp" reloadable="true"></Context> </Host> (责任编辑:IT) |