Theory
आपके Laptop पर अटका Portfolio
आपने साफ़ HTML tables और polished CSS selectors के साथ एक शानदार portfolio website बनाई है। जब आप इसे locally खोलते हैं यह शानदार दिखती है। पर एक बड़ी बाधा है: आपका browser address bar file:///C:/Users/BCA/index.html पढ़ता है। अगर आप यह address एक campus recruiter को भेजते हैं, वे एक error page देखेंगे। आपकी files आपके local computer drive पर अलग-थलग हैं। आप public internet पर अपने code के लिए एक स्थायी घर कैसे खोजते हैं, और आप असल में अपनी files वहाँ कैसे ले जाते हैं?
Theory
किराए की Shop और Cargo Truck
web hosting को एक विशाल commercial market complex के अंदर एक retail store किराए पर लेने की तरह सोचिए। आप पूरी concrete building नहीं ख़रीदते: आप बस अपना सामान public को दिखाने के लिए floor space की एक ख़ास मात्रा किराए पर लेते हैं। पर, वह space किराए पर लेना बस step 1 है। आपको फिर भी अपने inventory को अपने घर के warehouse से उस storefront तक ले जाने के लिए एक भरोसेमंद cargo truck चाहिए। Web hosting आपका किराए का internet storefront है, और एक FTP client आपके code को सुरक्षित रूप से ले जाता cargo truck है।
Theory
Hosting और FTP को औपचारिक रूप से समझना
university examinations में, Web Hosting एक internet service के रूप में परिभाषित है जो आपकी website files रखने के लिए एक विशेष web server machine पर storage space आवंटित करती है, उन्हें World Wide Web के ज़रिए accessible बनाते हुए। FTP (File Transfer Protocol) IP networks भर files copy करने के लिए इस्तेमाल standard client:server network protocol है। एक FTP Client आपके local machine पर चलता software application है जो इन remote uploads execute करने के लिए एक साफ़ visual interface देता है।
At a glance
Table 1: मुख्य Web Hosting Solutions का विश्लेषण
| Hosting Type | Resource Allocation | Cost Structure | Best Used For |
|---|---|---|---|
| Shared | कई web sites 1 अकेली server hardware machine साझा करती हैं | बहुत सस्ता और सुलभ | Student portfolios और छोटे personal blogs |
| VPS (Virtual Private Server) | 1 physical server अलग virtual operating systems में बँटा है | मध्यम pricing | बढ़ते college festival portals या business pages |
| Dedicated | 1 पूरी physical server machine अनन्य रूप से 1 client को किराए पर | अत्यधिक महँगा | बड़े banking systems या भारी university networks |
| Cloud | कई जुड़े virtual web servers का एक लचीला network | असल hourly traffic इस्तेमाल के हिसाब से भुगतान | अप्रत्याशित traffic उछाल वाली scalable e-commerce sites |
Follow along
FTP के ज़रिए अपनी Website Deploy करना
- Hosting Credentials हासिल करना अपना explicit FTP server address, account username, secret password, और standard connection port, जो default रूप से port 21 है, पाने के लिए अपने web hosting control panel में log in कीजिए।
- Client को Connect करना FileZilla जैसा एक FTP client खोलिए, अपने इकट्ठा किए credentials शीर्ष Quickconnect bar में डालिए, और अपने computer को remote host से जोड़ने के लिए connection शुरू कीजिए।
- Public Directory खोजना दाईं ओर दिखाए remote server view panel में, designated root public folder खोजिए और खोलिए, जो लगभग हमेशा public_html या www नाम का होता है।
- Local Files Upload करना बाईं ओर panel से अपनी local folder files चुनिए, उन्हें दाईं ओर खुले public folder में खींचिए, और पूरा होने तक transfer queue track कीजिए।
Quiz
आपके college department को एक सख़्त, न्यूनतम budget पर एक 2 दिन के technical festival के लिए एक छोटी, temporary static website launch करनी है। आपको कौन सा hosting type सुझाना चाहिए?
- Dedicated Hosting
- Shared Hosting
- VPS Hosting
- fixed scale के साथ Cloud Hosting
Show the answer
Shared Hosting
Shared hosting एक कम traffic, temporary static project के लिए सबसे किफ़ायती और सीधा चुनाव है। Dedicated और cloud infrastructures विशाल ग़ैर-ज़रूरी processing power देते हैं और जटिल setups माँगते हैं, high university budget waste की ओर ले जाते हुए।
Think first
Directory Listing Error
आपने FileZilla के ज़रिए अपना पूरा assignment folder server पर upload किया, पर जब आप अपना domain name एक browser में type करते हैं, आप अपने design किए home page के बजाय एक raw file list देखते हैं। reveal करने को tap करने से पहले file name error मन में निकालने की कोशिश कीजिए।
Show the answer
Web server software entry point के रूप में load करने के लिए अपने-आप एक ख़ास default file name खोजता है। अगर आपका main page 'home.html', 'portfolio.html' नाम का है, या uppercase अक्षरों जैसे 'Index.html' के साथ लिखा है, server इसे match करने में विफल होता है। आपको अपनी primary landing file को बिल्कुल index.html पूरी तरह lowercase में नाम देना होगा।
Watch out
अदृश्य Root Directory जाल
web publishing lab practicals में marks खोने का सबसे आम तरीक़ा files को उस बिल्कुल पहले folder layout में सीधे upload करना है जो आप connect करने पर देखते हैं। अगर आपके assets public_html या www directory के बाहर बैठते हैं, वे आपके domain track करते web browsers के लिए पूरी तरह अदृश्य हैं। हमेशा पक्का कीजिए कि upload click करने से पहले दाईं ओर आपका destination path public_html पर ख़त्म होता है, वरना visitors को एक 404 error का सामना करना होगा।
Theory
Production Deployment Workflows
जबकि FileZilla जैसे tools के साथ हाथ का FTP file transfers सीखना आपके second semester curriculum की एक अहम ज़रूरत है, professional tech industries automated deployment pipelines इस्तेमाल करती हैं। अपनी बाद की cloud computing classes में, आप GitHub Actions जैसे CI/CD systems configure करेंगे। ये programs जब भी आप code update करते हैं अपने-आप आपकी updated files secure connections के ज़रिए production servers तक copy करते हैं, हाथ के काम को पूरी तरह बदलते हुए।
Summary
Key takeaways
- Web hosting एक active internet server पर समर्पित digital storage space assign करता है ताकि website assets globally सक्रिय रहें।
- Shared hosting कई users के बीच एक अकेला server साझा करता है, इसे कम cost वाले student portfolios के लिए आदर्श बनाते हुए।
- FTP structural networking protocol है जो local drives और remote internet servers के बीच files ले जाता है।
- FileZilla एक आम graphical FTP client है जो intuitive double panel layouts के ज़रिए files manage करता है।
- Files को सीधे public_html directory के अंदर upload करना होगा और सही दिखने के लिए एक index.html file से शुरू होना होगा।
- Memory hook: space के लिए Host, chase के लिए FTP!