Virtual Host Configuration
Virutal Host ¸¦ ÀÌ¿ëÇÏ¿© ÇÑ ¼¹ö¿¡¼ ´Ù¸¥ µµ¸ÞÀÎÀ» »ç¿ëÇÏ¿©
¿©·¯°³ÀÇ È¨ÆäÀÌÁö¸¦ ¿î¿µÇØ º¸ÀÚ.
1) DNS ¼³Á¤ (»óȲ¿¡ µû¶ó ´Þ¶óÁú¼ö ÀÖÀ½)
- named.boot ÆÄÀÏ ¼öÁ¤ (µµ¸ÞÀÎ Ãß°¡)
primary domainname.co.kr db.domainname
- Zone ÆÄÀÏ ÆíÁý (db.domainname)
@ SOA ns.domainname.co.kr. Webmaster.ns.domainname.co.kr.
96092315 ; Serial
10800 ; Refresh 3 hours
3600 ; Retry 1 hours
3600000 ; Expire 1000 hours
3600
) ; Minimum 24 hours
;
IN NS test.uriel.net.
IN A 210.109.239.1
IN MX 0 test.uriel.net.
localhost IN A 127.0.0.1
www IN A 210.109.239.11
À§¿¡´Â ´ÜÁö ¿¹¸¦ µç°ÍÀÌ´Ù. ¿©·¯ºÐµéÀÇ »óȲ¿¡ ¸ÂÃß¾î º¯°æÇÏ¿©¾ß ÇÑ´Ù.
¹ÙÀε尡 ¼³Ä¡µÇ¾î ÀÖÁö ¾ÊÀ¸¸é ¼³Ä¡¸¦ ÇÏÀÚ. ¸®´ª½º¸¦ »ç¿ëÇÑ´Ù¸é
bind-4.9.6 RPM ¹æ½ÄÀÇ ÆÄÀÏÀ» °¡Á®´Ù ¼³Ä¡ÇÑ´Ù.
2) °¡»ó IP ¼³Á¤
* Linux ¸¦ »ç¿ëÇÒ°æ¿ì
¸®´ª½º´Â Ä¿³ÎÀÌ IP Alias ¸¦ Áö¿øÇϵµ·Ï µÇ¾î ÀÖ´Ù.
±×·¯³ª Ä¿³Î ¹èÆ÷º»¿¡´Â IP Alias °¡ Áö¿øµÇµµ·Ï
ÄÄÆÄÀÏÀÌ µÇ¾î ÀÖÁö ¾Ê±â ¶§¹®¿¡ IP Alias ¸¦ »ç¿ëÇÒ ¼ö
ÀÖµµ·Ï Ä¿³ÎÀ» ´Ù½Ã Àç ÄÄÆÄÀÏ ÇÏ¿©¾ß ÇÑ
´Ù.
±×·±´ÙÀ½, ifconfig ¸í·É¾î¸¦ ÀÌ¿ëÇÏ¿©
°¡»óÈ£½ºÆ®·Î »ç¿ëÇÒ IP ¾îµå·¹½º¸¦ Ãß°¡ÇØ ÁÖ¾î¾ß Çϸç
»ç¿ë¹ýÀº ´ÙÀ½°ú °°´Ù.
Ex)
# ifconfig eth0:1 210.109.239.11 netmask 255.255.255.0
¸®´ª½º´Â Ãß°¡ÀûÀ¸·Î ¶ó¿ìÆà Å×ÀÌºí¿¡µµ Ãß°¡¸¦ ÇØ ÁÖ¾î¾ß ÇÑ´Ù.
Ex)
# route add -host 210.109.239.11 dev eth0:1
# route -nr (¶ó¿ìÆà Å×À̺íÀ» È®ÀÎÇÏ¿© º¸ÀÚ)
* Solaris,SunOS ¸¦ »ç¿ëÇÒ °æ¿ì
Ex)
# ifconfig hme0:1 210.109.239.201 netmask 255.255.255.0 up
# ifconfig -a
lo0: flags=849 mtu 8232
inet 127.0.0.1 netmask ff000000
hme0: flags=863 mtu 1500
inet 210.109.239.1 netmask ffffff00 broadcast 210.109.239.255
hme0:1: flags=843 mtu 1500
inet 210.109.239.200 netmask ffffff00 broadcast 203.236.232.255
hme0:2: flags=843 mtu 1500
inet 210.109.239.201 netmask ffffff00 broadcast 210.109.239.255
3) httpd.conf ÆÄÀÏ ¼öÁ¤
ServerAdmin webmaster@www.domainname.co.kr
DocumentRoot /usr/local/httpd/docs/www.domainname.co.kr
ServerName www.domainname.co.kr
ErrorLog logs/www.domainname.co.kr-error_log
TransferLog logs/www.domainname.co.kr-access_log
|