ข้ามไปที่เนื้อหาหลัก

About the virtual host.

Virtual host is There two categories.
1. IP-Base Virtual Host
Virtual host like this. All servers must have a different IP Address can be done by machines that do virtual post should have more than one network card. that is the first card is 1 IP Address, or if there is only one card only. We can do virtual IP on the card the same time. But for this method to check whether the operating system supports viewed or not.

2. Name-Base Virtual Host
Virtual Hosts Another option is what the name server differently but IP Address the same where we use DNS to help is defined in DNS, each host server, pointing to the IP Address the same after that it will adjust the Aphache Web Server on each host to manage again.

To make a virtual host IP-Base Virturl Host.
Of a virtual host in ubuntu to create files in a virtual host by creating that directory.
/etc/apache2/sites-available. And the name of Virtual host.
/etc/apache2/site-available/NameVirtualHost

Samples used to create the virtual host is different.
EX 1 : This example, a server machine has two IP Address is 203.10.103.22 and 203.10.103.44. Which referred to name. ubuntu.zoo.co.th and www.ubuntu.com. By the machine. ubuntu.zoo.com have been made CNAME to a Host name www.ortherubuntu.co.th it if we want the client to use both web server through the URL http://www.ubuntu.co.th. And www.ortherubuntu.co.th


Listen 80
ServerName ubuntu.zoo.co.th

<VirtualHost 203.10.103.22>
DocumentRoot /www/ubuntu_web
ServerName www.ubuntu.co.th

....
</VirtualHost>



<VirtualHost 203.10.103.44>
DocumentRoot /www/ortherubuntu_web
ServerName www.ortherubuntu.co.th

....
</VirtualHost>




EX 2 : This example, a server machine has two IP Address is 203.10.103.22 and 203.10.103.55. Which referred to name. zoo.ubuntu.co.th and cache.ubuntu.co.th by the Host name www.ubuntu.co.th a CNAME to point to zoo.ubuntu.co.th. The main server cache.ubuntu.co.th. Is used as a proxy cache that uses port 80.


Listen 203.10.103.22:80
Listen 203.10.103.55:8080
ServerName zoo.ubuntu.co.th

<VirtualHost 203.10.103.22:80>
DocumentRoot /www/ubuntu_web
ServerName www.ubuntu.co.th

....
</VirtualHost>



<VirtualHost 203.10.103.55:8080>
ServerName cache.ubuntu.co.th
...

<Directory proxy>
Order Deny,Allow
Deny from all
Allow from 203.10.103
&#/Directory>
</VirtualHost>






To make a virtual host Name-Base Virturl Host.
EX 1 : Server is a single IP Address 203.10.103.22. Compared with the host name ubuntu.zoo.co.th the host name has a nickname with a CNAME to www.zoo.co.th with ortherzoo.co.th. In the example, want to use the web through two nicknames. The host name is considered both as a separate machine.



Listen 80
ServerName ubuntu.zoo.co.th

NameVirtualHost 203.10.103.22

<VirtualHost 203.10.103.22>
DocumentRoot /www/zoo_web
ServerName www.zoo.co.th

....
</VirtualHost>


<VirtualHost 203.10.103.22>
DocumentRoot /www/orther_web
ServerName www.ortherzoo.co.th

....
</VirtualHost>





EX 2 : Single IP Address but the server supports multiple domains and multiple port by port can be specified through the NameVirtualHost.


NameVirtualHost 203.10.103.22:80
NameVirtualHost 203.10.103.22:8080

<VirtualHost 203.10.103.22:80>
DocumentRoot /www/zoo1_web
ServerName www.zoo1.co.th
</VirtualHost>

<VirtualHost 203.10.103.22:8080>
DocumentRoot /www/zoo2_web
ServerName www.zoo2.co.th
</VirtualHost>

<VirtualHost 203.10.103.22:80>
DocumentRoot /www/zoo3_web
ServerName www.zoo3.co.th
</VirtualHost>

<VirtualHost 203.10.103.22:8080>
DocumentRoot /www/zoo4_web
ServerName www.zoo4.co.th
</VirtualHost>






Translation by : Google Translation

ความคิดเห็น

โพสต์ยอดนิยมจากบล็อกนี้

ส่วนประกอบของเมนบอร์ด คอมพิวเตอร์ PC

ส่วนประกอบของเมนบอร์ด คอมพิวเตอร์ PC เมนบอร์ดเป็นแผงวงจรหลักที่สำคัญที่สุดของคอมพิวเตอร์ ดังนั้น จึงควรรู้จักตำแหน่งของอุปกรณ์ต่างบนเมนบอร์ดเสียก่อน จึงจะสามารถประกอบเครื่องคอมพิวเตอร์ได้ อุปกรณ์หลักที่สำคัญก็มีช็อกเกตสำหรับติดตั้งซีพียู, ช็อกเกตแรม และซิปเซตที่ทำหน้าที่ควบคุมอุปกรณ์ทั้งหมด หัวต่อและสล็อตสำหรับติดตั้งอุปกรณ์และการ์ดต่างๆ รวมไปถึงหัวต่อกับอุปกรณ์ภายนอกที่ต่อออกทางด้านหลังเครื่อง อุปกรณ์ที่ติดตั้งบนเมนบอร์ดได้แก่  1. ช็อกเกตซีพียู (CPU Socket) ช็อกเกตซีพียู เป็นตำแหน่งติดตั้งซีพียู โดยรูปแบบของช็อกเกตจะแตกต่างกันไปตามยี่ห้อและรุ่นของซีพียู การซื้อเมนบอร์ดจะต้องตรวจสอบว่าต้องการใช้กับซีพียูยี่ห้อใดและรุ่นไหน หากซื้อซีพียูที่มีช็อกเกตไม่ตรงกับเมนบอร์ดจะไม่สามารถใช้งานได้ ปัจจุบันจะมีช็อกเกตที่ใช้งานบนเมนบอร์ดคือ Intel LGA 775,  Intel LGA 1150, Intel LGA 1151, Intel LGA1155 และ Intel LGA 2066 ใช้สำหรับซีพียู Intel ทั้งหมด แต่ต้องดูด้วยว่า ซีพียู อินเทลใดใช้ช็อกเกตเท่าไหร่ ส่วน AMD AM4, AMD sTRX4 และ AMD TR4 จะใช้สำหรับ CPU AMD เท่านั้นซึ่งก็เหมือนกับ...

รวม Code Debug Card Mainboard

รวม Code Debug Card Mainboard สำหรับช่างซ่อมคอมมือใหม่ที่มีเครื่องมือ Debug Card เป็นตัวช่วยแล้ว บางครั้งอาจจะไม่รู้ว่าค่า Error Code นั้นคืออะไร ผมได้สืบหาข้อมูลและเขียนเพื่อเตือนความจำของตนเองไว้ เพราะไม่ค่อยได้ใช้ตัว Debug Card นี้เช่นกัน นานๆครั้งมาใช้นั้น ค่อนข้างที่จะค้นหาข้อมูลอย่างลำบากเช่นกัน ผมจึงได้รวบรวมข้อมูลมาจากเว็บที่หาข้อมูลได้ ขอขอบคุณเจ้าของข้อมูลด้วยครับ CODE : ความหมาย 00 : ไม่มีสัญญาณให้เช็ค CPU หรือลองหา CPU ตัวใหม่มาเปลี่ยนดูครับ 01 : CPU TEST รอบที่ 1 02 : CPU TEST รอบที่ 2 04 : TEST Memory รีเฟรช ของอุปกรณ์ ต่าง ๆ  05 : Key board controller อาจมีปัญหา 07 : BIOS battery อาจจะหมด 0B : TEST cmos checksum 0D : เช็ค VGA CARD Interface C0 : ทดสอบหน่วยความจำและ slot(ลองฉีด สเปรย์สารพัดพิษดูครับ) 0E : เช็คหน่วยความจำ VGA(ลองหาตัวใหม่มาเปลี่ยนดูครับ)  11 :อาจมีปัญหาที่ DMA controller 41 : ให้ตรวจสอบ FLOPPY Drive 42 : .ให้ตรวจสอบ HARD DISK 43 : ค้นหาและตรวจสอบ serial และ parallel port 45 : ให้เช็ค Mainboard ว่าเข้า...

การสร้าง URL สั้นๆ เพื่อส่งไฟล์ให้เพื่อน

การสร้าง URL สั้นๆ เพื่อส่งไฟล์ให้เพื่อน การที่จะส่งไฟล์ให้เพื่อน เช่น ไฟล์รูป ไฟล์วีดีโอ หรือโปรแกรมอื่นๆ เวลาที่เราก็อปปี้ลิงค์จาก Google Drive นั้น มักจะเป็นลิงค์ที่ยาว หากเราทำการส่งลิงค์ใน Line เพื่อเปิดใน PC แล้วเพื่อนของคุณไม่ได้ติดตั้ง Line ใน PC ไว้ ต้องมานั่งพิมพ์ URL ยาวๆเอา ซึ่งไม่สะดวกสักเท่าไหร่นัก ดังนั้น เราควรทำลิงค์ให้สั้นๆ เพื่อให้เพื่อนของเราเปิดไฟล์ที่เราแชร์อย่างง่ายดาย ตัวอย่าง เช่น เราต้องการส่ง Link ของ ไฟล์ที่เราแชร์ใน Google drive 1. ให้เราวางข้อมูลที่เราต้องการแชร์  ใน Google ก่อน จากนั้นทำการแชร์ไฟล์ และเปลี่ยนสิทธิ์ในการแชร์ให้เรียบร้อย ดังภาพ 2. ให้เข้าเว็บ  https://www.shorturl.at/  แล้วทำการวางลิงค์ที่เราก็อปปี้มา แล้วกดปุ่ม Shorten URL ครับ จากนั้นก็ส่งลิงค์ให้เพื่อนได้เลยครับ