如:我們要做pan.lfsenior.cn的映射
一、打開conf下的service.xml文件
在文件的末尾添加一個<host>節點即可
如:
<Host name="localhos" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> </Host> <Host name="pan.lfsenior.cn" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Context path="" docBase="BaiduYunSearch" debug="0" reloadable="true" /> </Host>二、如何在本機測試,還需配置C:/Windows/System32/drivers/etc/hosts如:
# localhost name resolution is handled within DNS itself.# 127.0.0.1 localhost# ::1 localhost 127.0.0.1 pan.lfsenior.cn三、接下來就可以通過pan.lfsenior.cn進行訪問
新聞熱點
疑難解答