How to make subdomain in debian

Subdomain is a part of domain. subdomain usually use as area from a website. Example, first area school website using www.smktisingaraja.com and in the school will have a skills program like COMPUTER AND NETWORKING ENGINERING so,   tkj.smktisingaraja.com is subdomain that explain about tkj in smktingaraja.com.

before I have ever explain about configure DNS ( Domain Name Server ) and now I wanna give you how to configure subdomain in debian.

make sure the ip address that you will give a domain can be connect to the server

before you continue the steps you have to read how to make a DNS server

HOW TO MAKE A DNS SERVER IN DEBIAN 
 you have to edit in db. budi (db budi is zone reverse ) where like shown bellow. using command nano /etc/bind/db.budi and save using command ctrl + X and then Y and enter
note : tkj and mm is a subdomain with ip address 10.10.10.1
          budi.com is a domain
also edit in db.10 ( db 10 is zone forward ) use command nano /etc/bind/db.10

restart your bind9. service bind9 restart

before you continue make sure you have install web server if you yet install you can read bellow
HOW TO INSTALL WEB SERVER
after you install web server make directori again in /var/www  that is tkj and mm
use command mkdir /var/www/tkj and mkdir /var/www/mm
 write a simple content in your web pages of subdomain tkj and mm
for tkj using command nano /var/www/tkj/index.html
for mm using command nano /var/www/mm/index.html
that all subdomains are well conected now we make a virtualhost edit in nano /etc/apache2/sites-available/default
cause we have 2 subdomain so, we have to write more virtual host or you can also copy the virtual host use ctrl + 6 to mark, alt + 6 to copy and ctrl + u to paste. put it in the very bottom dont forget to write the end tag of virtual host
the first virtual host for subdomain of tkj write the subdomain name tkj,the document root of tkj and the second virtual host for mm and also write the document root and the subdomain name mm
save your work.
restart your web server. service apache2 restart
to see the change cek in your browser 
insert tkj.budi.com in your browser
and for mm.budi.com

7 Comments

Mohon untuk berkomentar yang bijak. Jangan Lakukan Spam Komentar. Komentar akan dibalas secepatnya. Terima Kasih

  1. Most reliable human being messages, nicely toasts. are already provided gradually during the entire wedding celebration and therefore are anticipated to be very laid back, humorous and as well as new all at once. best man speech website design company

    ReplyDelete
  2. Really nice style and design and excellent content , nothing at all else we need : D. ui/ux design

    ReplyDelete
  3. An impressive share, I just given this onto a colleague who was doing a little evaluation on this. And he in reality bought me breakfast as a result of I found it for him.. smile. So let me reword that: Thnx for the treat! But yeah Thnkx for spending the time to discuss this, I really feel strongly about it and love studying extra on this topic. If potential, as you develop into expertise, would you mind updating your weblog with extra particulars? It’s extremely useful for me. Huge thumb up for this weblog submit! ui/ux designer

    ReplyDelete
  4. Hello there! Good post! Please inform us when I will see a follow up! ipad mockup

    ReplyDelete
  5. Regards for this post, I am a big fan of this website would like to go along updated. android phone template

    ReplyDelete
  6. I have been exploring for a little bit for any high-quality articles or blog posts on this sort of area . Exploring in Yahoo I at last stumbled upon this website. Reading this information So i am happy to convey that I’ve an incredibly good uncanny feeling I discovered exactly what I needed. I most certainly will make certain to do not forget this web site and give it a glance regularly. webflow development agency

    ReplyDelete
  7. The actual challenge to become is normally you can actually SOLE check out that level of your tax discount over the internet by looking at your RATES web-site. web developer company

    ReplyDelete
Post a Comment
Previous Post Next Post