> Linux服务器 > nginx >

nginx 别名设置

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)