Setting Multiple Domain pada Apache Tomcat

Tutorial

Banyak domain (Multiple domain) dapat diletakkan pada satu mesin/server dengan satu web server, misalnya Tomcat, Apache atau IIS. Cara seperti ini dapat digunakan untuk menghemat IP publik. Beberapa domain dan subdomain misalnya www.domainku.com, blog.domainku.com dan download.domainku.com dapat di-host pada satu web server dengan satu IP publik.

Pada tomcat, yang perlu dilakukan adalah menambahkan beberapa konfigurasi:

Pertama,
Buka file server.xml pada ${CATALINA_HOME}/conf
${CATALINA_HOME} adalah direktori tempat tomcat diinstall. Misalnya /usr/local/tomcat pada linux atau c:\tomcat ada Windows tergantung dimana Tomcat diinstall, kemudian tambahkan kode berikut:

<Server>
     <Service>
         <Engine>
           ..................
           ..................
           <Host name="blog.domainku.com"
                       debug="0"
                       appBase="/home/user/blog"
                       unpackWARs="true"
                       autoDeploy="true"
                       xmlValidation="true"
                       xmlNamespaceAware="false">
                    <Alias>blog.domainku.com</Alias>
           </Host>
         </Engine>
     </Service>
 </Server>

Kedua,
Masuk ke direktori ${CATALINA_HOME}/conf/Catalina dan buat direktori baru blog.domainku.com

Ketiga,
Masuk ke direktori ${CATALINA_HOME}/conf/Catalina/blog.domainku.com dan buat file baru dengan nama ROOT.xml yang isinya adalah sebagai berikut:

<Context docBase="/home/user/blog" path="" />

Terakhir,
Restart tomcat.

9,917 thoughts on “Setting Multiple Domain pada Apache Tomcat

  1. Excellent items from you, man. I’ve consider your stuff prior
    to and you are simply too wonderful. I actually like what you have bought here,
    really like what you are stating and the way in which wherein you say it.
    You are making it enjoyable and you still care for to keep
    it sensible. I cant wait to read far more from you. That is really a great website.

  2. whoah this blog is fantastic i love studying your posts.
    Stay up the great work! You recognize, lots of
    persons are searching around for this information, you
    can aid them greatly.

  3. Great beat ! I wish to apprentice while you amend your website, how could i
    subscribe for a blog site? The account helped me a acceptable deal.
    I had been tiny bit acquainted of this your broadcast
    offered bright clear concept

  4. It’s difficult to find knowledgeable people in this particular topic, but you seem
    like you know what you’re talking about! Thanks

  5. Hello

    YOU NEED HELP TO BUILD SEO BACKLINKS FOR: umarfaisol.com ?

    WE SELL HIGH-QUALITY DOFOLLOW POWERFUL BACKLINKS WITH HIGH DOMAIN AUTHORITY, PA, TF, CF…

    ► Rank Higher In Google (google backlinks, DoFollow backlinks, SEO DoFollow backlinks)
    ► Rank Higher Video in Youtube & Google (youtube backlinks, video backlinks, video embedded)
    ► Rank Higher GMB In Google Maps (Google maps backlinks, GMB maps backlinks, GMB embedded, NAP embedded)
    ► Rank Higher Images In Google (google images backlinks, google backlinks)

    You Can Increase Traffic to your websites which will lead to a higher number of customers and much more sales for you.

    CLAIM YOUR FREE TEST HERE => seosubmitter@mail.com

    Thanks, Josefa Barnard

  6. I think this is among the so much significant information for me.
    And i’m glad studying your article. But want to statement on some normal issues,
    The web site taste is great, the articles is in reality great :
    D. Excellent job, cheers

  7. Hello, i feel that i saw you visited my weblog thus i came to
    return the desire?.I’m trying to in finding things to improve my site!I
    guess its adequate to make use of a few of your concepts!!

  8. Its like you learn my mind! You seem to know so much about this,
    like you wrote the e book in it or something. I think that you simply can do with a few percent
    to drive the message home a bit, however instead of that, that is magnificent blog.
    A fantastic read. I’ll definitely be back.

  9. I was suggested this web site by my cousin. I am not sure whether this post is written by him
    as no one else know such detailed about my trouble.
    You are wonderful! Thanks!

Comments are closed.