Types of Virtual Hosting
1. Introduction (परिचय)
Internet पर लाखों Websites उपलब्ध हैं, जिन्हें Users अपने Web Browser की सहायता से Access करते हैं। प्रत्येक Website को Internet पर उपलब्ध कराने के लिए एक Web Server की आवश्यकता होती है। सामान्यतः एक Web Server एक ही Physical Computer पर कई Websites को Host कर सकता है। इस तकनीक को Virtual Hosting कहा जाता है।
Virtual Hosting एक ऐसी तकनीक है, जिसकी सहायता से एक ही Physical Web Server पर Multiple Websites को अलग-अलग Domain Names, IP Addresses या Port Numbers के माध्यम से Host किया जा सकता है।
उदाहरण के लिए, एक ही Web Server पर निम्नलिखित Websites Host की जा सकती हैं:
www.mantrixa.comwww.example.comwww.college.com
जब कोई User इनमें से किसी Website को Browser में Open करता है, तो Web Server Request में उपलब्ध Domain Name, IP Address या Port Number के आधार पर सही Website की Files उपलब्ध कराता है।
Virtual Hosting का मुख्य उद्देश्य Server Resources का बेहतर उपयोग करना, Hosting Cost कम करना और एक ही Server पर Multiple Websites को Manage करना है।
Virtual Hosting का मुख्य उद्देश्य Server Resources का बेहतर उपयोग करना, Hosting Cost कम करना और एक ही Server पर Multiple Websites को Manage करना है।
2. Definition of Virtual Hosting (वर्चुअल होस्टिंग की परिभाषा)
Virtual Hosting एक ऐसी Web Server Technology है, जिसमें एक ही Physical Server पर एक से अधिक Websites या Domains को Host किया जाता है। इसमें Web Server प्रत्येक Website की Request को उसके Domain Name, IP Address या Port Number के आधार पर पहचानता है और संबंधित Website का Content User को प्रदान करता है।
सरल शब्दों में, Virtual Hosting का अर्थ है एक ही Physical Web Server का उपयोग करके कई अलग-अलग Websites को संचालित करना।
3. Types of Virtual Hosting (वर्चुअल होस्टिंग के प्रकार)
Virtual Hosting मुख्य रूप से तीन प्रकार की होती है:
Name-Based Virtual Hosting
IP-Based Virtual Hosting
Port-Based Virtual Hosting
अब इन तीनों प्रकारों को विस्तार से समझते हैं।
3.1 Name-Based Virtual Hosting (नेम-बेस्ड वर्चुअल होस्टिंग)
Name-Based Virtual Hosting एक ऐसी तकनीक है, जिसमें एक ही IP Address पर Multiple Websites को अलग-अलग Domain Names की सहायता से Host किया जाता है।
इस तकनीक में Web Server यह पहचानता है कि User ने किस Domain Name के लिए Request भेजी है। इसके लिए HTTP (Hypertext Transfer Protocol) Request के Host Header का उपयोग किया जाता है।
उदाहरण के लिए, मान लीजिए एक Web Server का IP Address 192.168.1.10 है। इस एक ही IP Address पर तीन Websites Host की गई हैं:
www.mantrixa.comwww.college.comwww.example.com
जब User www.mantrixa.com को Browser में Open करता है, तो Browser Web Server को HTTP Request भेजता है। इस Request के Host Header में www.mantrixa.com होता है।
Web Server Host Header को Check करके Mantrixa Website की Files User को उपलब्ध कराता है।
Working of Name-Based Virtual Hosting:
User अपने Browser में किसी Website का Domain Name Enter करता है।
DNS (Domain Name System) उस Domain Name को संबंधित IP Address में Resolve करता है।
Browser उस IP Address पर Web Server को HTTP Request भेजता है।
Request के Host Header में Requested Domain Name मौजूद होता है।
Web Server Host Header को Check करता है।
Server संबंधित Virtual Host Configuration को पहचानता है।
संबंधित Website की Files Browser को भेज दी जाती हैं।
Example:
Server IP Address: 192.168.1.10
Website 1: www.mantrixa.com
Website 2: www.college.com
Website 3: www.example.comइन तीनों Websites को एक ही IP Address पर Host किया जा सकता है।
Advantages:
एक ही IP Address पर Multiple Websites Host की जा सकती हैं।
IP Addresses की आवश्यकता कम होती है।
Hosting Cost कम होती है।
Server Resources का बेहतर उपयोग होता है।
Multiple Domains को Manage करना आसान होता है।
Limitation:
Name-Based Virtual Hosting के लिए Client और Server को Host Header Support करना आवश्यक है। आधुनिक HTTP/1.1 और HTTP/2 में यह सामान्य रूप से उपलब्ध है। HTTPS में TLS Handshake के दौरान सही Website Certificate चुनने के लिए सामान्यतः SNI (Server Name Indication) का उपयोग किया जाता है।
3.2 IP-Based Virtual Hosting (IP-बेस्ड वर्चुअल होस्टिंग)
IP-Based Virtual Hosting एक ऐसी तकनीक है, जिसमें एक ही Physical Web Server पर Multiple Websites को अलग-अलग IP Addresses के माध्यम से Host किया जाता है।
इस तकनीक में प्रत्येक Website को एक अलग IP Address Assign किया जाता है। जब User किसी Website को Access करता है, तो Web Server उस Request के Destination IP Address के आधार पर संबंधित Website की पहचान करता है।
उदाहरण के लिए, मान लीजिए एक Physical Server पर तीन IP Addresses उपलब्ध हैं:
192.168.1.10192.168.1.20192.168.1.30
इन IP Addresses के साथ अलग-अलग Websites Configure की जाती हैं।
Working of IP-Based Virtual Hosting:
प्रत्येक Website के लिए एक अलग IP Address Configure किया जाता है।
DNS में प्रत्येक Domain Name को उसके संबंधित IP Address से Map किया जाता है।
User Browser में Website का Domain Name Enter करता है।
DNS Domain Name को संबंधित IP Address में Resolve करता है।
Browser उस IP Address पर Web Server को Request भेजता है।
Web Server Destination IP Address के आधार पर सही Website की पहचान करता है।
Server संबंधित Website का Content Browser को भेज देता है।
Example:
Website | IP Address |
|---|---|
www.mantrixa.com | 192.168.1.10 |
www.college.com | 192.168.1.20 |
www.example.com | 192.168.1.30 |
इस उदाहरण में तीनों Websites एक ही Physical Server पर Host हैं, लेकिन प्रत्येक Website के लिए अलग IP Address का उपयोग किया गया है।
Advantages:
प्रत्येक Website का अपना अलग IP Address होता है।
अलग-अलग Websites की Configuration Manage करना आसान होता है।
कुछ विशेष Network और Application Requirements को पूरा किया जा सकता है।
पुराने SSL/TLS Clients के साथ अलग IP पर HTTPS Hosting उपयोगी हो सकती थी।
Disadvantages:
प्रत्येक Website के लिए अलग IP Address की आवश्यकता होती है।
IP Addresses की उपलब्धता एक समस्या हो सकती है।
Configuration और Maintenance की लागत बढ़ सकती है।
3.3 Port-Based Virtual Hosting (पोर्ट-बेस्ड वर्चुअल होस्टिंग)
Port-Based Virtual Hosting एक ऐसी तकनीक है, जिसमें एक ही IP Address पर Multiple Websites या Web Applications को अलग-अलग Port Numbers के माध्यम से Host किया जाता है।
इस तकनीक में Web Server केवल IP Address या Domain Name के आधार पर Website की पहचान नहीं करता, बल्कि Incoming Request के Port Number को भी Check करता है।
Network Communication में Port Number किसी विशेष Service या Application तक Request पहुँचाने में सहायता करता है।
उदाहरण के लिए, HTTP का Default Port Number 80 और HTTPS का Default Port Number 443 होता है।
एक ही Server पर अलग-अलग Port Numbers का उपयोग करके विभिन्न Websites या Applications को Access किया जा सकता है।
Working of Port-Based Virtual Hosting:
Web Server पर अलग-अलग Port Numbers Configure किए जाते हैं।
प्रत्येक Website या Application को एक Specific Port Number Assign किया जाता है।
User Browser में IP Address या Domain Name के साथ Port Number Enter करता है।
Browser संबंधित Port पर Request भेजता है।
Web Server Incoming Request के Port Number को Check करता है।
Port Number के आधार पर Server संबंधित Website या Application को पहचानता है।
संबंधित Website का Content Browser को भेज दिया जाता है।
Example:
मान लीजिए Web Server का IP Address 192.168.1.10 है।
Website / Application | URL |
|---|---|
Website 1 |
|
Website 2 |
|
Website 3 |
|
इस उदाहरण में सभी Websites एक ही IP Address का उपयोग कर रही हैं, लेकिन अलग-अलग Port Numbers के माध्यम से Access की जाती हैं।
Advantages:
एक ही IP Address पर Multiple Applications चल सकती हैं।
अलग-अलग Applications के लिए अलग Port Numbers निर्धारित किए जा सकते हैं।
Development और Testing Environment में उपयोगी है।
Server Resources का बेहतर उपयोग होता है।
Disadvantages:
User को URL में Port Number लिखना पड़ सकता है।
सभी Port Numbers को Firewall और Network Configuration में Allow करना पड़ सकता है।
अलग-अलग Ports को Manage करना कभी-कभी जटिल हो सकता है।
