设置网站服务器apache tomcat配置,泛域名解析

泛域名  时间:2020-12-30  阅读:()

网站服务器apache+tomcat配置,泛域名解析Web server apache+tomcat conf iguration, universal domain name resolution

1, modify the host file, DNS simulation analysis.

192. 168. 1. 211 cc.com to the CNCA folder

192. 168. 1. 211 xj.cc.com to the CNCA folder

192. 168. 1. 211 xz.cc.com to the CNCA folder

192. 168. 1. 211 *. cc. com to the CNCA folder

2, install Apache

Http://www.apache.org/dist//httpd/binaries/win32/

If you install SQL 2008 after installation will appear 80 port conf lict

CMD, executive

Netstat -aon|findstr "80" search occupy 80 port process Tasklist|findstr process of the "ID" look to occupy the port service

Close service, re install

3, install Tomcat

The default port 8080

If it is unpacked version:

Decompress Tomcat to D:Program FilesTomcat, setting system environment variables:

CATALINA_BASE = D:Program Files omcat

CATALINA_HOME = D:Program Fi les omcat

CLASSPATH =%CATALINA_HOME%l ibservl et-api. jar

JAVA_HOME = D:Program Fi lesJavajdk1.6.0_07

C LAS SPATH

=. ;%Java_Home%l ib oo l s. jar;%Java_Home%l ibdt. jar;

PATH =%Jav a_Home% i n

4, install JK

Http://www.apache.org/dist/tomcat/

Copy mod_jk-1.2. 26-httpd-2.2.4. so to D:Program

FilesApache2.2modules

The following server configuration:

1, the configuration of Tomcat

Find the Tomcat directory of the conf/server.xml file in the <host></host> into the middle of the following statement to modify the default directory:

<Context "path=" docBase= "E:wwwroot" reloadable= "true"crossContext= "true" / >

Here, if the path is not empty, it is set to the virtual directory, the value of path for the virtual directory name.Find the Tomcat directory of the conf/workers.properties file,and compare the text below, if not the same, to modify below the text shall prevail.

Workers.tomcat_home=D:Program FilesTomcat # let mod_jk know Tomcat position module

Workers. java_home=D:Program FilesJavajre1.6.0_07 # let mod_jk know JRE position module

Ps=

Worker. list=ajp13 # module version

Worker.ajp13.port=8009 #working port, if not occupied without modification

Worker.ajp13.host=localhost # this machine, if the above

Apache host is not localhost, modify

Worker.ajp13. type=ajp13 # type

Worker.ajp13. lbfactor=1 # number of agents, without modification

If the file does not exist, according to the above content creation. Any modifications to the Tomcat set to restart will come into effect.

Tomcat configuration method IP on multi domain in detail as follows.

< host name = "localhost" debug = "0" appbase = "d: webapps tomcat 5.0"unpackwars = "true" autodeploy = "true"xmlvalidation = "false" xmlnamespaceaware = "false" >< alias > < / > localhost.com alias

< logger classname = "org.apache.catalina. logger.filelogger"directory= "logs" prefix= "localhost_log. " suffix= ".txt"t imestamp = "true" / >

< context path= "" docbase= "d: tomcat 5.0 webapps gg" reloadable = "true" casesensitive = "false" debug = "0" >

< / context.

> < / host

< host name = "one. localhost" debug = "0" appbase = "d: \ webapps tomcat 5.0"unpackwars = "true" autodeploy = "true"xmlvalidation = "false" xmlnamespaceaware = "false" >< alias > < / > one. localhost.com alias

< logger classname = "org.apache.catalina. logger.filelogger"directory= "logs" prefix= "localhost _log. " suffix= ".txt"t imestamp = "true" / >

< context path= "" docbase= "d: tomcat 5.0 webapps kk\"reloadable="true"casesensitive="false"debug="0" >< / context.

> < / host

2、配置apache

打开d: program fi les apache2.2 conf下的httpd. conf,在最后加入下面这段代码并保存.loadmodule jk_module modules mod_jk-1.2. 26-httpd-2.2.4. so

#此处mo d_ j k的文件为你下载的文件jkworkersf ile "d: program files tomcat conf workers.properties"

#指定tomcat监听配置文件地址jklogfile "d: program files tomcat logs mod_jk2. log"#指定日志存放位置jkloglevel info

#设置虚拟主机

< > virtualhost localhost

#如果非虚拟主机,将< virtualhost localhost >和最后的< /virtualhost >注释或者删除掉即可serveradmin localhost documentroot and wwwroot: /

"directory" e: / wwwroot ">

#您的站点项目所在路径,应与tomcat中的目录设置相同,据说以上两个必须同时设置才可以生效,没有试过不同的时候会有什么情况

messaging localhost directoryindex index. jsp index.html.errorlog logs / shsc error_ log.txt customlog logs / shsc - access _ log.txt common jkmount / servlet / * ajp 13

#让apache支持对servlet传送, 用以tomcat解析jkmount / *. jsp ajp13

Let # Apache support for JSP transmission, using Tomcat analysis

JkMount /*.do ajp13

Let#Apache support for.Do transmission, using Tomcat analysis </VirtualHost>

At the beginning of the # behavior can delete notes. I am here to set the configuration of the virtual directory, re designated serverName, DocumentRoot path allocation site, in fact, the Apache configuration can be very flexible, you can not use the virtual directory, directly to modify the default configuration of the site, the editing tool of any text search,such as ServerName, DocumentRoot, ServerAdmin other related items, then the configuration can be modified according to your

actual situation. I suggest that you can try a different configuration, this is a very fun experience.

After all the changes, double-click the Apache icon in the system tray, and then click Start to start the Apache service.In the address bar enter http://localhost/ and http://localhost:8080/respectively, if the result is the same,Apache and Tomcat integration success

3, the configuration of the Apache and Tomcat pan DNS Because of the way that *.yourdomain.com domain could not be configured Tomcat host, which is supported by Apache, as long as the set of*.yourdomain.com can be. In server.xml a<Engine defaultHost="localhost"name="Catalina" >when the non domain pointer to the way when they are submitted to the webapps/ROOT,so as to set up extensive domain name analysis to the default defaultHost on it.

The specific configuration of Apache and Tomcat extensive domain name analysis steps:

You confirm whether the domain name support extensive domain name analysis, now most of the domain name providers to support such services.

Conf igure the Apache pan DNS you

<VirtualHost *.*.*.*: 80>

S erverName *.yourdomai n.com

DocumentRoot /usr/local/jakarta-tomcat-5.0.28/webapps/ROOT ServerAdmin yntsky@gmai l. com

ErrorLog logs/a.ntsky. com_log

</VirtualHost>

The domain name to ROOT

Do not need to do other settings in tomcat, you can keep the original, for some special two level domain name as long as the tomcat/confg/server.xml configuration of<Engine defaultHost="localhost" name= "Catalina" >

Analysis of abc.yourdomain.com information in ABC code 2011-09-07

-----------------------------------------------------------

---------------------

C1009

日本vps云服务器选择指南。

日本vps云服务器怎么选择?很多人都会遇到日本vps和日本云服务器怎么选择的问题,日本云服务器具有免备案的特点。小编今天就分析一下日本云服务器价格多少钱,以方便大家选购的时候有个更加合适的取舍。日本云服务器租用前比较选择,高性能、安全、高效、免备案日本云服务器是很关键的因素。那么,日本云服务器该怎么选择呢?日本作为我们的邻国,与其贸易、文化往来是比较多的。日本云服务器价格多少钱一年?一、日本·CN...

bgpto:日本独立服务器6.5折($120起),新加坡独立服务器7.5折($93起)

bgp.to在对日本东京的独立服务器进行6.5折终身优惠促销,低至$120/月;对新加坡独立服务器进行7.5折终身优惠促销,低至$93/月。所有服务器都是直连国内,速度上面相比欧洲、美国有明显的优势,特别适合建站、远程办公等多种用途。官方网站:https://www.bgp.to/dedicated.html主打日本(东京、大阪)、新加坡、香港(CN)、洛杉矶(US)的服务器业务!日本服务器CPU...

LOCVPS新上日本软银线路VPS,原生IP,8折优惠促销

LOCVPS在农历新年之后新上架了日本大阪机房软银线路VPS主机,基于KVM架构,配备原生IP,适用全场8折优惠码,最低2GB内存套餐优惠后每月仅76元起。LOCVPS是一家成立于2012年的国人VPS服务商,提供中国香港、韩国、美国、日本、新加坡、德国、荷兰、俄罗斯等地区VPS服务器,基于KVM或XEN架构(推荐选择KVM),线路方面均选择国内直连或优化方案,访问延迟低,适合建站或远程办公使用。...

泛域名为你推荐
买虚拟主机在淘宝购买虚拟主机要注意什么?美国主机租用美国服务器租用整的这么便宜 啊虚拟主机服务器虚拟主机与独立服务器区别域名购买为什么要购买域名,域名是干嘛用的?台湾vps台湾服务器 哪里稳定速度快?香港虚拟空间香港虚拟空间哪家好?网站空间申请网站空间申请北京网站空间一个小型企业网站空间和网站域名一年需要多少钱?新加坡虚拟主机新加坡虚拟主机无法访问,Godaddy回邮件说是域名的问题?虚拟主机试用购买虚拟主机为什么商家会让你试用和测试?
国外虚拟空间 老左 lamp softlayer 腾讯云数据库 hnyd 促正网秒杀 静态空间 闪讯官网 空间登陆首页 789 asp空间 windowsserver2008 web是什么意思 认证机构 德国代理 天翼云主机 主机系统 紫田网络 大容量存储模式 更多