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. YOU NEED FAST PROXY SERVERS ?

    Check it out this Anonymous and Private Proxy Servers.
    HTTP & SOCKS5 Proxy supported.
    IP Authentication or Password Authentication available.
    HERE: https://bit.ly/3ifZkmL

  2. YOU NEED QUALITY VISITORS for your: umarfaisol.com

    I Will Provide Organic Traffic By Keyword From Search Engines Or Social Media

    YOU GET HIGH-QUALITY VISITORS
    – visitors from search engines
    – visitors from social media
    – visitors from any country you want
    – very low bounce rate & long visit duration

    CLAIM YOUR 24 HOURS FREE TEST => https://bit.ly/2HQZggh

  3. YOU NEED QUALITY VISITORS for your: umarfaisol.com

    I Will Provide Organic Traffic By Keyword From Search Engines Or Social Media

    YOU GET HIGH-QUALITY VISITORS
    – visitors from search engines
    – visitors from social media
    – visitors from any country you want
    – very low bounce rate & long visit duration

    CLAIM YOUR 24 HOURS FREE TEST => https://bit.ly/2HQZggh

  4. YOU NEED QUALITY VISITORS FOR YOUR: umarfaisol.com

    WE PROVIDE ORGANIC TRAFFIC BY KEYWORD FROM SEARCH ENGINES OR SOCIAL MEDIA

    YOU GET HIGH-QUALITY VISITORS
    – visitors from search engines
    – visitors from social media
    – visitors from any country you want

    CLAIM YOUR 24 HOURS FREE TEST => https://bit.ly/2HQZggh

  5. NOT SATISFIED WITH YOUR HOSTING ?

    Check Out Our Coupons for This Month & Get Your Domain, Hosting and SSLs For Less!
    Namecheap Offers Amazing Deals That Save You Money Across Our Product Range!
    Best Value Web Products. 20 Years Serving You. Free WhoisGuard. #1 for Value Vs. Others.

    Check Out Our Coupons for This Month => https://zeep.ly/5uSUK

Comments are closed.