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.

10,038 thoughts on “Setting Multiple Domain pada Apache Tomcat

  1. I was curious if you ever thought of changing the page layout of your website? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having 1 or 2 pictures. Maybe you could space it out better?|

  2. Pornhub provides you with unlimited free porn videos with the hottest adult performers. Enjoy the largest amateur porn community on the net as well as full-length scenes from the top XXX studios. We update our porn videos daily to ensure you always get the best quality sex movies.
    Amateur
    Anal
    Big Ass
    Big Dick
    Big Tits
    Bisexual Male
    Blonde
    Blowjob
    Bondage
    Brazilian
    British

    Bukkake
    Cartoon
    Casting
    College (18
    Compilation
    Cosplay
    Cuckold
    Cumshot
    Czech
    Described Video
    Double Penetration
    Ebony
    Exclusive
    Feet
    Female Orgasm
    Fetish
    Fingering
    Fisting
    Funny
    Gangbang
    Gay
    Hardcore
    HD PornHD Porn
    Hentai
    Latina
    Lesbian
    MassageHide
    Masturbation
    Matur
    MILF
    Orgy
    Pissing
    Pornstar
    Pussy Licking
    Amateur
    Anal
    Big Ass
    Big Dick
    Big Tits
    Bisexual Male
    Blonde
    Blowjob
    Bondage
    Brazilian
    British

    Bukkake
    Cartoon
    Casting
    College (18
    Compilation
    Cosplay
    Cuckold
    Cumshot
    Czech
    Described Video
    Double Penetration
    Ebony
    Exclusive
    Feet
    Female Orgasm
    Fetish
    Fingering
    Fisting
    Funny
    Gangbang
    Gay
    Hardcore
    HD PornHD Porn
    Hentai
    Latina
    Lesbian
    MassageHide
    Masturbation
    Matur
    MILF
    Orgy
    Pissing
    Pornstar
    Pussy Licking

Comments are closed.