tomcat部署專案如何去掉專案名稱
直接在server.xml中<Host></Host>間加了一句<Context path="" docBase="/test" debug="0" reloadable="true"/>,其中docBase="/test"中的/test是專案名字
把專案放到tomcat7\webapps下面
修改Host
<Host name="www.test.com" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context path="/" docBase="/test" debug="0" reloadable="true"></Context>
</Host>
這樣就可以通過域名www.test.cn訪問test為專案名的專案了。
如果主機中繫結多個域名,直接加host即可。相關推薦
tomcat部署專案去掉專案名稱,直接localhost不帶專案名稱訪問!
第一步、去除埠號8080。將server.xml中的 <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="40000" redirectPo
一個tomcat部署多個專案(同埠,多專案,不同訪問路徑)
使用tomcat的自動部署。(適用於檔案和war包,不需要重啟tomcat服務) 自定義web部署檔案。(只適用於檔案形式的,需要重啟tomcat服務) 一,自動部署 步驟: 瀏覽器輸入127.0.0.1:8080(如果你安裝時,改了埠的話,更改成你設定的埠),
獲取tomcat部署的所有專案的連結
<% //獲取網址 String url = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort(); //獲取專案絕對地址,然後得到專案名稱 String absoluteP
tomcat 部署多個專案
一個tomcat 如何釋出多個專案,如下 首先複製一個webapps,並且改名,我改成如下 然後修改 E:\apache-tomcat-7.0.79-windows-x64\apache-tomcat-7.0.79\conf目錄下的server.xml 檔案 如下:
Myeclipse中tomcat部署不了專案,java工程轉為web工程
把專案以Navigator開啟,可以看到.開頭的檔案,比如.projetc。 找到.projetc中<natures>標籤,在裡面加入 <nature>org.eclipse.jem.workbench.JavaEMFNature</nature> &
同一個tomcat部署多個專案
在開發專案中,有時候我們需要在同一個tomcat中部署多個專案,小編之前也是遇到了這樣的情況,碰過不少的壁,故整理總結如下,以供大家參考。(以Linux為例,其他系統同樣適用) 一、首先將需要部署的專案打成war包,放到tomcat的webapps目錄下
tomcat部署多個專案,通過不同域名解析訪問不同的網站
<Host name="bbs.ibelieve.com" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Context docBase="bbs" path="" reloadab
修改tomcat部署下,專案配置(涉及properties,xml,zip,war之間相互轉換修改)
思路:傳入tomcat部署路徑, 1,遍歷tomcat下所有的資料夾,因為要修改 的檔案都是固定,所以根據傳入路徑就能拼裝要修改的檔案。 2,像1的解決思路,可能導致tomcat不斷在啟動,因為檔案在修改。 所以又想到,將要修改的war包改成Zip,因為其結構都一樣
Linux學習7-一個tomcat部署多個專案(多個埠)
前言 前面已經在tomcat上搭建了jenkins的環境,如果我們有多個專案需要部署的話,如何在一個tomcat下部署多個專案呢? 前面是直接在:8080/jenkins訪問的,如果有其它專案部署的話,可以新開一個埠,讓新的專案訪問另外一個埠就行了 修改server.xml tomcat的配置檔案在/u
一個tomcat部署多個專案使用durid連線池報錯
伺服器windows server tomcat7免安裝板 問題: 在伺服器上安裝了一個tomcat7,需要在這個tomcat中部署3個專案,這三個專案都使用的是durid連線池,專案解壓war包的時候就報錯了。 ERROR [com.alibaba.druid.
Nginx+Tomcat部署Angular+javaweb專案(解決重新整理404)
最近專案進入了即將驗收階段,專案部署是必不可少的。由於某些原因,我們把前端專案(Angular4)和後端專案(JavaWeb),由於要部署了四個專案:Angular4(微信端),微信端資料服務,JavaWeb(PC端)*2,並且是放在同一個伺服器下。Java專案
CentOS7 安裝jetty 及 tomcat ,部署Java Web專案
安裝前須安裝JDK [[email protected] root~]# yum install java-1.8.0-openjdk wget 一,安裝jetty 1,下載jetty 可以建立一個目錄/dev,在/dev目錄下下載jetty [[ema
Tomcat 部署了web專案中文亂碼
本地Tomcat 啟動,網頁端的中文傳到後臺顯示亂碼。查詢前段已經設定了 UTF-8格式, 後臺收到中文的依然是亂碼,原來是Tomcat的配置問題。修改Tomcat的配置檔案server.xml ,新增一個屬性 URIEncoding="UTF-8",如下<Connec
解決nginx部署https後,原tomcat部署的javaweb專案http不能正常載入js、css資源問題
公司做的小程式專案到部署的時候發現必須要用https協議,這個時候就在阿里雲上申請了免費版本的SSL證書,這裡證書的申請就不做介紹了,下面直接看怎麼處理資源載入問題,從nginx和tomcat的配置檔案入手。 nginx配置vhost.conf 反向代理服務
關於Windows Server 伺服器 安裝tomcat部署Java Web 專案的問題
我遇到的問題是:不知道怎麼配置,感覺在伺服器上部署一個web專案,應該是很高大上,步驟應該很繁瑣,但是,事實卻不是那樣。配置反而挺簡單。 tomcat配置:在tomcat安裝目錄中的conf資料夾下有一個配置檔案:server.xml 1.檔案裡的:<Connecto
tomcat部署java web專案的過程
一.安裝JDK 到http://www.oracle.com/technetwork/java/javase/downloads/index.html下載JavaSE 6 Update 27 根據作業系統選擇Linux x64 - RPM Installer或Linux x
【web伺服器】——tomcat部署Java Web 專案的三種方式
最近這些天一直在用tomcat部署公司專案,一回生二回熟,可是還是會出現一些問題,例如tomcat起不來呀,這種常見的錯誤,起來了但是會出現異常等,還有一些奇葩的問題。
tomcat部署專案 以及 如何去掉專案名稱
1.直接將web專案檔案拷貝到webapps目錄中 Tomcat的webapps目錄是tomcat預設的應用目錄,伺服器啟動時,會載入這個目錄下的應用。將打包的war包放到目錄下,伺服器啟動時會自 動解開war包。並在該目錄下產生一個
tomcat部署專案如何去掉專案名稱
直接在server.xml中<Host></Host>間加了一句<Context path="" docBase="/test" debug="0" reloadable="true"/>,其中docBase="/test"中的/test
javaweb專案部署到tomcat上去掉專案名後報錯的問題
1.問題 最近心血來潮在部署tomcat 專案的時候把專案名給去掉 但是在去掉專案名釋出專案之後,出現了伺服器錯誤500的問題 去掉專案名的配置如下,在server.xml裡配置,配置path為”” ,docBase 跟上專案名稱即可。 <Context p