来源:深圳沃龙软件开发公司 2017-03-10
Apache Tomcat下如何 配置多个域名对应一个目录,比如 wwww.woooolong.com 和 m.wooolong.com 指向同一个目录呢?具体该怎么实现,才能不损耗性能呢?
网上很多配置如下:
<Host name="www.wooolong.com" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
<Context path="" docBase="C:\apache-tomcat-7.0.52\webapps\WoLongV2" debug="0" reloadable="true"/>
</Host>
<Host name="m.wooolong.com" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
<Context path="" docBase="C:\apache-tomcat-7.0.52\webapps\WoLongV2" debug="0" reloadable="true"/>
</Host>
相信网上很多都是我这样类似的配置,可是 tomcat重复加载了2次该应用,虽然我们也达到了失效效果,但是这是非常消耗资源的,而且这也不是安全、正确的方法。
其实在<Host>标签内部有一种<Alias>标签的写法,如下面红色部分的标记例子,非常简单实用,节省了不少空间。
<Host name="www.wooolong.com" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Alias>wooolong.com</Alias>
<Alias>m.wooolong.com</Alias>
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
<Context path="" docBase="C:\apache-tomcat-7.0.52\webapps\WoLongV2" debug="0" reloadable="true"/>
</Host>
本内容皆为 深圳沃龙软件开发公司 原创
如需转载,请注明文章出处和来源网址:http://www.wooolong.com/blog/1.html
楼主好棒好棒!!!!!!!!!!!!!楼主好棒好棒!!!!!!!!!!!!!楼主好棒好棒!!!!!!!!!!!!!楼主好棒好棒!!!!!!!!!!!!!楼主好棒好棒!!!!!!!!!!!!!楼主好棒好棒!!!!!!!!!!!!!
Nicely put, Thanks a lot. 《a href="HHtps://theessayswriters.com/"》writing a persuasive essay《/a》 write my essay for cheap 《a href="HHtps://bestcheapessaywriters.com/"》write a essay for me《/a》 essay writer free trial 《a href=HHtps://bestpaperwritingservice.com/》custom handwriting paper《/a》 pay to write paper 《a href=HHtps://bestonlinepaperwritingservices.com/》custom research paper writing services《/a》 pay to write paper what a college essay should look like HHtps://phdthesisdissertation.
Seriously loads of useful information! 《a href=HHtps://essaywritingservicelinked.com/》essay service review《/a》 essay writing meme 《a href=HHtps://essaywritingservicetop.com/》college admissions essay writing service《/a》 executive resume writing service
Thanks! A good amount of write ups! 《a href="HHtps://ouressays.com/"》term paper help《/a》 research paper helper 《a href="HHtps://researchpaperwriterservices.com/"》online proposal《/a》 buy term paper
Seriously a good deal of terrific information! 《a href=HHtps://ouressays.com/》research paper helper《/a》 research paper proposal 《a href=HHtps://researchpaperwriterservices.com/》termpaper《/a》 research proposal apa
With thanks, Plenty of stuff. 《a href="HHtps://dissertationwritingtops.com/"》proquest dissertations《/a》 phd dissertation 《a href="HHtps://helpwritingdissertation.com/"》dissertation writing service《/a》 dissertation service 《a href=HHtps://researchproposalforphd.com/》research proposal cover page《/a》 college term papers 《a href=HHtps://writingresearchtermpaperservice.com/》thesis proposal《/a》 writing proposal website to write essays HHtps://bestcheapessaywriters.com
Many thanks! I like it. 《a href=HHtps://bestpaperwritingservice.com/》pay someone to write a paper《/a》 custom paper 《a href=HHtps://bestonlinepaperwritingservices.com/》professional paper writing service《/a》 professional paper writing service
Wow a lot of wonderful tips. 《a href=HHtps://topswritingservices.com/》college essay writing services《/a》 admission essay writing service 《a href=HHtps://essaywriting4you.com/》online essay writing《/a》 writing service essay
Excellent posts. Cheers! 《a href=HHtps://hireawriterforanessay.com/》essay writer free trial《/a》 website that writes essays for you 《a href=HHtps://theessayswriters.com/》writing a good essay《/a》 write my essay for cheap
Thank you! Wonderful information! custom essay writing service 《a href=HHtps://essayservicehelp.com/》college papers writing service《/a》 professional essay writing service
You actually explained this adequately. 《a href="HHtps://writinganessaycollegeservice.com/"》essay writing service 3 hours《/a》 my essay service 《a href="HHtps://essayservicehelp.com/"》best essay writing《/a》 fast essay writing service 《a href=HHtps://argumentativethesis.com/》define thesis《/a》 thesis template 《a href=HHtps://bestmasterthesiswritingservice.com/》a good thesis statement《/a》 thesis writer how to write a good 5 paragraph essay HHtps://ouressays.com
Whoa lots of excellent info! 《a href="HHtps://argumentativethesis.com/"》thesis writer《/a》 define thesis statement 《a href="HHtps://bestmasterthesiswritingservice.com/"》thesis proposal example《/a》 thesis statment
Truly a lot of great knowledge! 《a href="HHtps://domyhomeworkformecheap.com/"》cpm homework《/a》 coursework 《a href="HHtps://domycollegehomeworkforme.com/"》pay to do my homework《/a》 do my homework 《a href=HHtps://englishessayhelp.com/》help with writing an essay《/a》 essaytyper 《a href=HHtps://essaywritinghelperonline.com/》college application essay help《/a》 essay helper legal essay writing HHtps://cheapessaywriteronlineservices.com
Superb forum posts. Cheers. 《a href="HHtps://argumentativethesis.com/"》thesis binding《/a》 define thesis statement 《a href="HHtps://bestmasterthesiswritingservice.com/"》working thesis《/a》 how to write thesis
Appreciate it, Ample postings. 《a href=HHtps://domyhomeworkformecheap.com/》xyz homework《/a》 do my math homework 《a href=HHtps://domycollegehomeworkforme.com/》can you do my homework《/a》 homework help cpm
Good advice. Regards! 《a href="HHtps://ouressays.com/"》research proposal cover page《/a》 term paper help 《a href="HHtps://researchpaperwriterservices.com/"》research paper writer《/a》 proposal essay 《a href=HHtps://topswritingservices.com/》cv writing service《/a》 essay writting 《a href=HHtps://essaywriting4you.com/》cheapest essay writing service uk《/a》 writing a college admission essay writing academic essays HHtps://paperwritingservicecheap.com
Nicely put, Thanks a lot! 《a href=HHtps://researchproposalforphd.com/》writing proposal《/a》 research proposal 《a href=HHtps://writingresearchtermpaperservice.com/》research proposal apa《/a》 research proposal cover page
Thanks, Numerous info. 《a href="HHtps://customthesiswritingservice.com/"》thesis statements《/a》 good thesis 《a href="HHtps://writingthesistops.com/"》strong thesis statement《/a》 thesis creator
Regards! I value it. 《a href="HHtps://argumentativethesis.com/"》define thesis《/a》 write a thesis 《a href="HHtps://bestmasterthesiswritingservice.com/"》thesis statment《/a》 thesis 《a href=HHtps://hireawriterforanessay.com/》write my essays online《/a》 writing essays for money 《a href=HHtps://theessayswriters.com/》do my essay《/a》 write my essay cheap my custom essay HHtps://writingpaperforme.com
You revealed it wonderfully. 《a href=HHtps://writinganessaycollegeservice.com/》argumentative essay writing《/a》 what is the best essay writing service 《a href=HHtps://essayservicehelp.com/》best online essay writing services reviews《/a》 cheap essay writing service us
Great forum posts. Kudos. 《a href="HHtps://writingpaperforme.com/"》write my term paper《/a》 how to write a conclusion for a research paper 《a href="HHtps://custompaperwritersservices.com/"》write a research paper《/a》 essay writers online
Kudos! A lot of forum posts. 《a href="HHtps://englishessayhelp.com/"》essay bot《/a》 essay writer 《a href="HHtps://essaywritinghelperonline.com/"》essaypro《/a》 medical school personal statement 《a href=HHtps://englishessayhelp.com/》essay help《/a》 essay helper free 《a href=HHtps://essaywritinghelperonline.com/》paper writing help《/a》 college application essay help write my essay affordable HHtps://theessayswriters.com
You made your point extremely nicely.. 《a href=HHtps://quality-essays.com/》pay someone to write paper《/a》 pay for essay online 《a href=HHtps://buyanessayscheaponline.com/》pay someone to write paper《/a》 buy an essay
Many thanks! Ample content! 《a href="HHtps://homeworkcourseworkhelps.com/"》i don t want to do my homework《/a》 do my homework for money 《a href="HHtps://helpmedomyxyzhomework.com/"》do my finance homework《/a》 cpm homework
Really a good deal of excellent advice! 《a href=HHtps://helpwithdissertationwriting.com/》dissertation service《/a》 dissertation service 《a href=HHtps://dissertationwritingtops.com/》dissertation editing《/a》 dissertation service
You suggested that very well! 《a href=HHtps://homeworkcourseworkhelps.com/》homework help cpm《/a》 hire someone to do my homework 《a href=HHtps://helpmedomyxyzhomework.com/》reddit do my homework《/a》 do my college homework
Nicely put. Regards. 《a href="HHtps://domyhomeworkformecheap.com/"》online coursework《/a》 pay to do my homework 《a href="HHtps://domycollegehomeworkforme.com/"》cpm homework help《/a》 homework help cpm
Thanks a lot. Valuable information. 《a href="HHtps://topswritingservices.com/"》ebook writing service《/a》 writing an argumentative essay 《a href="HHtps://essaywriting4you.com/"》write essay service《/a》 essay writing service buy 《a href=HHtps://researchproposalforphd.com/》research paper services《/a》 research paper writer services 《a href=HHtps://writingresearchtermpaperservice.com/》termpaper《/a》 buy term paper thesis in HHtps://argumentativethesis.com
Very good tips. Cheers. 《a href="HHtps://argumentativethesis.com/"》example thesis《/a》 good thesis statement 《a href="HHtps://bestmasterthesiswritingservice.com/"》working thesis《/a》 phd thesis database
You explained that fantastically! 《a href="HHtps://hireawriterforanessay.com/"》do my essay free《/a》 do my essay for me 《a href="HHtps://theessayswriters.com/"》essay writer review《/a》 best essay writers 《a href=HHtps://service-essay.com/》buy a paper for college《/a》 online paper writing service 《a href=HHtps://custompaperwritingservices.com/》buy a paper for college《/a》 pay to write paper write custom essays HHtps://writeadissertation.com
Seriously loads of fantastic info. 《a href=HHtps://essaytyperhelp.com/》essay helper online《/a》 help with writing an essay 《a href=HHtps://helptowriteanessay.com/》paper writing help《/a》 help with writing an essay
Cheers. A good amount of postings. 《a href="HHtps://service-essay.com/"》pay someone to write paper《/a》 buying papers for college 《a href="HHtps://custompaperwritingservices.com/"》best college paper writing service《/a》 buying papers for college
Valuable knowledge. Regards. 《a href="HHtps://writingpaperforme.com/"》writers of the federalist papers《/a》 paper writers 《a href="HHtps://custompaperwritersservices.com/"》essay writter《/a》 write my research paper 《a href=HHtps://essaytyperhelp.com/》free writing assistant《/a》 essay helper free 《a href=HHtps://helptowriteanessay.com/》paperhelp《/a》 best essay writing service how to write a good history essay HHtps://theessayswriters.com
Thank you! I enjoy it! 《a href=HHtps://essayssolution.com/》essay writer no plagiarism《/a》 write my research paper for me 《a href=HHtps://cheapessaywriteronlineservices.com/》website that writes essays for you《/a》 who can write my essay
This is nicely put. ! 《a href="HHtps://englishessayhelp.com/"》essaytyper《/a》 help with writing an essay 《a href="HHtps://essaywritinghelperonline.com/"》medical school personal statement《/a》 paper writing help
This is nicely expressed. . 《a href="HHtps://bestpaperwritingservice.com/"》custom papers《/a》 buy a paper for college 《a href="HHtps://bestonlinepaperwritingservices.com/"》paper help《/a》 paper writer services 《a href=HHtps://argumentativethesis.com/》thesis sentence《/a》 thesis statment 《a href=HHtps://bestmasterthesiswritingservice.com/》thesis writer《/a》 college thesis best essay websites HHtps://helpmedomyxyzhomework.com
You have made the point! 《a href=HHtps://englishessayhelp.com/》help essay《/a》 essay helper free 《a href=HHtps://essaywritinghelperonline.com/》help with my essay《/a》 essay writing service
Thanks a lot! Good information. 《a href="HHtps://ouressays.com/"》custom research paper writing services《/a》 custom research paper writing services 《a href="HHtps://researchpaperwriterservices.com/"》research paper help《/a》 buy a research paper
Fantastic posts. Regards. 《a href="HHtps://writingpaperforme.com/"》essay writer《/a》 write my paper 《a href="HHtps://custompaperwritersservices.com/"》essay writter《/a》 do my paper 《a href=HHtps://service-essay.com/》pay for college papers《/a》 cheap research paper writing service 《a href=HHtps://custompaperwritingservices.com/》pay someone to write paper《/a》 pay to write paper essay writing website reviews HHtps://writeadissertation.com
Terrific facts, Thanks a lot. 《a href=HHtps://ouressays.com/》research paper help《/a》 write my research paper for me 《a href=HHtps://researchpaperwriterservices.com/》term papers《/a》 research proposals
You've made the point. 《a href="HHtps://essaywritingservicelinked.com/"》writing a college essay《/a》 student essay writing 《a href="HHtps://essaywritingservicetop.com/"》paper writing service college《/a》 top ten essay writing services
Awesome facts, With thanks. 《a href="HHtps://englishessayhelp.com/"》write my essay《/a》 essay helper online 《a href="HHtps://essaywritinghelperonline.com/"》essays help《/a》 help me write an essay 《a href=HHtps://essaytyperhelp.com/》help with writing an essay《/a》 essay typer 《a href=HHtps://helptowriteanessay.com/》help with my essay《/a》 essay writing help writing a summary essay HHtps://essaypromaster.com
Thank you, I appreciate it! 《a href=HHtps://argumentativethesis.com/》a good thesis statement《/a》 write a thesis 《a href=HHtps://bestmasterthesiswritingservice.com/》thesis statement《/a》 a good thesis statement
You said it very well.. 《a href="HHtps://argumentativethesis.com/"》thesis writer《/a》 good thesis statement 《a href="HHtps://bestmasterthesiswritingservice.com/"》thesis creator《/a》 define thesis statement
Beneficial material. Thanks a lot! 《a href="HHtps://service-essay.com/"》pay someone to write your paper《/a》 pay for research paper 《a href="HHtps://custompaperwritingservices.com/"》pay someone to write a paper《/a》 paper help 《a href=HHtps://englishessayhelp.com/》argumentative essay《/a》 free writing assistant 《a href=HHtps://essaywritinghelperonline.com/》write my essay《/a》 help me write an essay grant writing service HHtps://custompaperwritersservices.com
Very well spoken truly! ! 《a href=HHtps://ouressays.com/》research paper writer services《/a》 research proposal apa 《a href=HHtps://researchpaperwriterservices.com/》custom research paper writing services《/a》 buy term paper
Lovely info, Thanks a lot. 《a href="HHtps://englishessayhelp.com/"》helping others essay《/a》 free writing assistant 《a href="HHtps://essaywritinghelperonline.com/"》how to write a college essay《/a》 essay writing help
Wonderful postings. Many thanks. 《a href="HHtps://writinganessaycollegeservice.com/"》best online essay writing services reviews《/a》 essay service 《a href="HHtps://essayservicehelp.com/"》essay writing service reddit《/a》 custom paper writing service 《a href=HHtps://topswritingservices.com/》essay writting《/a》 cheap custom essay writing service 《a href=HHtps://essaywriting4you.com/》writing an essay outline《/a》 writing an opinion essay college essay music HHtps://domyhomeworkformecheap.com
You expressed this superbly! 《a href=HHtps://essaywritingservicehelp.com/》easy essay writing《/a》 top ten essay writing services 《a href=HHtps://essaywritingservicebbc.com/》paper writing services for college students《/a》 essay writing service cheap
You revealed that well. 《a href="HHtps://homeworkcourseworkhelps.com/"》should i do my homework《/a》 do my math homework for me 《a href="HHtps://helpmedomyxyzhomework.com/"》cpm homework help《/a》 i don t want to do my homework
Cheers! Quite a lot of postings. 《a href="HHtps://service-essay.com/"》custom handwriting paper《/a》 paper help 《a href="HHtps://custompaperwritingservices.com/"》buying papers for college《/a》 pay someone to write your paper 《a href=HHtps://englishessayhelp.com/》argumentative essay《/a》 essay helper online 《a href=HHtps://essaywritinghelperonline.com/》essay typer《/a》 help me write my essay essay to get into college HHtps://studentessaywriting.com
You suggested it very well. 《a href=HHtps://payforanessaysonline.com/》buy essay online《/a》 buy essays online 《a href=HHtps://buycheapessaysonline.com/》pay to write essay《/a》 pay for essay online
Many thanks. I like this. 《a href="HHtps://argumentativethesis.com/"》writing a thesis statement《/a》 argumentative thesis statement 《a href="HHtps://bestmasterthesiswritingservice.com/"》thesis help《/a》 research thesis
Nicely put. With thanks! 《a href="HHtps://topswritingservices.com/"》seo article writing service《/a》 free essay writing service 《a href="HHtps://essaywriting4you.com/"》essay writing service《/a》 cheap custom writing service 《a href=HHtps://service-essay.com/》paper help《/a》 pay for college papers 《a href=HHtps://custompaperwritingservices.com/》paper writer services《/a》 best college paper writing service writing a masters dissertation HHtps://helpmedomyxyzhomework.com
You made your stand pretty effectively.! 《a href=HHtps://quality-essays.com/》buy essays cheap《/a》 buy an essay 《a href=HHtps://buyanessayscheaponline.com/》pay to write my essay《/a》 order essay online
Nicely put. Kudos. 《a href="HHtps://hireawriterforanessay.com/"》write paper for me《/a》 do my essay for me 《a href="HHtps://theessayswriters.com/"》online essay writers《/a》 essay writter
Thanks a lot, Numerous write ups. 《a href="HHtps://hireawriterforanessay.com/"》write my essay online《/a》 writing an opinion essay 《a href="HHtps://theessayswriters.com/"》do my essay free《/a》 write my paper for me free 《a href=HHtps://writinganessaycollegeservice.com/》best paper writing service《/a》 cheap essay writing services 《a href=HHtps://essayservicehelp.com/》best online essay writing service《/a》 essay write service geography dissertations HHtps://homeworkcourseworkhelps.com
With thanks, Lots of material. 《a href=HHtps://helpwithdissertationwriting.com/》dissertation service《/a》 phd paper 《a href=HHtps://dissertationwritingtops.com/》buy dissertations《/a》 phd dissertation writing
Whoa plenty of beneficial data. 《a href="HHtps://quality-essays.com/"》pay for research paper《/a》 order essay 《a href="HHtps://buyanessayscheaponline.com/"》order essay《/a》 pay someone to write my college essay
Kudos! Plenty of info! 《a href="HHtps://dissertationwritingtops.com/"》dissertation writing services《/a》 dissertation abstracts 《a href="HHtps://helpwritingdissertation.com/"》proquest dissertations《/a》 phd dissertation help 《a href=HHtps://homeworkcourseworkhelps.com/》i don t want to do my homework《/a》 cpm homework help 《a href=HHtps://helpmedomyxyzhomework.com/》cpm homework help《/a》 hire someone to do my homework college application essay heading HHtps://quality-essays.com
Amazing a good deal of good knowledge. 《a href=HHtps://argumentativethesis.com/》thesis writer《/a》 a thesis statement 《a href=HHtps://bestmasterthesiswritingservice.com/》thesis statement《/a》 tentative thesis
Every weekend i used to go to see this website, for the reason that i want enjoyment, for the reason that this this web page conations really good funny stuff too.
ghUb t2hU, VTVuAD Kj2Qpf S8 《a href=HHtp://ciali.sbs》cialis online pharmacy《/a》
Hello! I'm at work browsing your blog from my new apple iphone! Just wanted to say I love reading your blog and look forward to all your posts! Carry on the excellent work!
Link exchange is nothing else but it is only placing the other person's website link on your page at proper place and other person will also do same for you.
What's up to every , as I am genuinely eager of reading this weblog's post to be updated daily. It consists of good stuff.
What's up to every , as I am genuinely eager of reading this weblog's post to be updated daily. It consists of good stuff.
Since the admin of this site is working, no doubt very rapidly it will be renowned, due to its feature contents.
This is very interesting, You are a very skilled blogger. I've joined your feed and look forward to seeking more of your excellent post. Also, I've shared your site in my social networks!
I love it when people come together and share thoughts. Great blog, continue the good work!
It's an awesome paragraph in support of all the online people; they will get benefit from it I am sure.
Fastidious respond in return of this question with genuine arguments and explaining the whole thing on the topic of that.
I am extremely inspired along with your writing abilities as neatly as with the structure to your weblog. Is that this a paid subject or did you customize it yourself? Either way keep up the nice quality writing, it's uncommon to look a nice blog like this one these days..
Hello There. I discovered your blog using msn. This is a really well written article. I will make sure to bookmark it and return to read extra of your useful info. Thanks for the post. I'll definitely comeback.
I'm not sure exactly why but this weblog is loading extremely slow for me. Is anyone else having this issue or is it a problem on my end? I'll check back later on and see if the problem still exists.
I'm not sure exactly why but this weblog is loading extremely slow for me. Is anyone else having this issue or is it a problem on my end? I'll check back later on and see if the problem still exists.
发表评论