Setting Multiple Domain pada Apache Tomcat


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, dan dapat di-host pada satu web server dengan satu IP publik.

Pada tomcat, yang perlu dilakukan adalah menambahkan beberapa konfigurasi:

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:

           <Host name=""

Masuk ke direktori ${CATALINA_HOME}/conf/Catalina dan buat direktori baru

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

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

Restart tomcat.

317 thoughts on “Setting Multiple Domain pada Apache Tomcat

  1. Hello


    – 100% safe for your site
    – real visitors with unique IPs. No bots, proxies, or datacenters
    – visitors from Search Engine (by keyword)
    – visitors from Social Media Sites (referrals)
    – visitors from any country you want (USA/UK/CA/EU…)
    – very low bounce rate
    – very long visit duration
    – multiple pages visited
    – tractable in google analytics
    – custom URL tracking provided
    – boost ranking in SERP, SEO, profit from CPM


    Thanks, Cameron Baeza

  2. Every weekend i used to pay a quick visit this web site, as i wish for enjoyment,
    as this this web site conations actually good funny information too.

  3. I don’t know if it’s just me or if everybody else experiencing problems with your blog.

    It appears like some of the written text
    on your content are running off the screen. Can someone else please provide feedback and let me
    know if this is happening to them as well?

    This could be a issue with my browser because I’ve had this happen before.
    Appreciate it

  4. Hi there, I found your blog by way of Google even as looking for
    a comparable subject, your web site got here up, it seems to
    be great. I have bookmarked it in my google bookmarks.

    Hi there, simply became aware of your blog through Google, and
    found that it is truly informative. I’m going to watch out for brussels.
    I’ll appreciate when you continue this in future. Lots of other people might be benefited from your
    writing. Cheers!

  5. I really love your website.. Very nice colors & theme. Did you make this site
    yourself? Please reply back as I’m hoping to create my
    own site and would like to find out where you
    got this from or what the theme is named. Cheers! games ps4 185413490784 games ps4

  6. It’s the best time to make some plans for the future and it is time to be happy.
    I have read this post and if I could I desire to
    suggest you few interesting things or suggestions. Perhaps you could write next articles referring
    to this article. I wish to read more things about it! games ps4 allenferguson games ps4

  7. Hello There. I discovered your blog the use of msn.
    This is a very well written article. I’ll be sure to bookmark it
    and return to read extra of your useful information. Thanks for the
    post. I’ll certainly comeback. games ps4 allenferguson games ps4

  8. Aw, this was an incredibly good post. Spending some time and actual effort
    to generate a very good article… but what can I say…
    I procrastinate a whole lot and never manage to get anything done.
    ps4 games allenferguson ps4 games

  9. Heya i am for the first time here. I came across this board and I find It really useful &
    it helped me out much. I hope to give something
    back and help others like you aided me.

  10. Spot on with this write-up, I truly think this amazing site
    needs far more attention. I’ll probably be back again to read more,
    thanks for the information!

Leave a Reply

Your email address will not be published. Required fields are marked *