歡迎您光臨本站 註冊首頁

tomcat5.5.26多域名配置時出現的奇怪問題!!!!

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

tomcat5.5.26多域名配置時出現的奇怪問題!!!!

<Engine name="Catalina" defaultHost="61.139.77.12">
<Host name="61.139.77.12" appBase="" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="/home/local/webapps" reloadable="true" workDir="/tmp/website/"/>
</Host>

<Host name="article.news.com" appBase="" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="/home/local/webapps/article" reloadable="true" workDir="/tmp/website/"/>
</Host>

<Host name="reseller.news.com" appBase="" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="/home/local/webapps/reseller" reloadable="true" workDir="/tmp/website/"/>
</Host>

<Host name="pass.ok.com" appBase="" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="/home/local/webapps/ROOT" reloadable="true" workDir="/tmp/website/"/>
</Host>

</Engine>


可以正常啟動,也可以正常訪問:
61.139.77.12\article.news.com\reseller.news.com 這幾個域名可以正常訪問
但是pass.ok.com去訪問目錄 /home/local/webapps/ROOT 去了,不能正常訪問

真奇怪!!!有誰曉得是什麼原因不???
《解決方案》

我也想知道,期待高手解決!!!
《解決方案》

這個要這樣寫:
<Context path="/" docBase="/home/local/webapps/ROOT" reloadable="true" workDir="/tmp/website/"/>

[火星人 ] tomcat5.5.26多域名配置時出現的奇怪問題!!!!已經有376次圍觀

http://coctec.com/docs/service/show-post-28127.html