设置网站服务器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

麻花云:3折优惠,香港CN2安徽麻花云香港安徽移动BGP云服务器(大带宽)

麻花云在7月特意为主机测评用户群定制了促销活动:香港宽频CN2云服务器、安徽移动云服务器(BGP网络,非单线,效果更好)、安徽移动独立服务器、安徽电信独立服务器,全部不限制流量,自带一个IPv4,默认5Gbps的DDoS防御。活动链接:https://www.mhyun.net/act/zjcp特价云服务器不限流量,自带一个IPv4,5Gbps防御香港宽频CN2全固态Ⅲ型 4核4G【KVM】内存:...

UCloud新人优惠中国香港/日本/美国云服务器低至4元

UCloud优刻得商家这几年应该已经被我们不少的个人站长用户认知,且确实在当下阿里云、腾讯云服务商不断的只促销服务于新用户活动,给我们很多老用户折扣的空间不多。于是,我们可以通过拓展选择其他同类服务商享受新人的福利,这里其中之一就选择UCloud商家。UCloud服务商2020年创业板上市的,实际上很早就有认识到,那时候价格高的离谱,谁让他们只服务有钱的企业用户呢。这里希望融入到我们大众消费者,你...

企鹅小屋:垃圾服务商有跑路风险,站长注意转移备份数据!

企鹅小屋:垃圾服务商有跑路风险!企鹅不允许你二次工单的,二次提交工单直接关服务器,再严重就封号,意思是你提交工单要小心,别因为提交工单被干了账号!前段时间,就有站长说企鹅小屋要跑路了,站长不太相信,本站平台已经为企鹅小屋推荐了几千元的业绩,CPS返利达182.67CNY。然后,站长通过企鹅小屋后台申请提现,提现申请至今已经有20几天,企鹅小屋也没有转账。然后,搞笑的一幕出现了:平台账号登录不上提示...

泛域名为你推荐
域名注册商中国十大域名注册商电信主机租用租用电信服务器要注意什么?vps主机vps主机是什么?美国vps租用VPS服务器租用哪里的好?台湾vps台湾服务器 哪里稳定速度快?100m虚拟主机100M虚拟主机有多大,能放多少东西北京虚拟主机租用租用虚拟主机在哪里租用比较好windows虚拟主机在windows 系统上装虚拟机有什么好的建议虚拟主机测评我们可以用哪些命令来测试一个虚拟主机的好坏?长沙虚拟主机长沙点航网络科技有限公司怎么样?
zpanel oneasiahost 国内永久免费云服务器 iisphpmysql directadmin 网站被封 骨干网络 免费mysql 什么是刀片服务器 网站cdn加速 cdn加速原理 国外代理服务器软件 phpmyadmin配置 架设邮件服务器 西安主机 工信部网站备案查询 服务器防火墙 万网空间 酸酸乳 国外免费云空间 更多