मुख्य सामग्री पर जाएँ
kitlocal.dev

NGINX चीटशीट

लोकल चलता है

100% आपके ब्राउज़र में प्रोसेस होता है। इनपुट और आउटपुट कभी आपके डिवाइस से बाहर नहीं जाते।

NGINX कॉन्फ़िगरेशन डायरेक्टिव और CLI संचालन: सर्वर ब्लॉक, रिवर्स प्रॉक्सी हेडर, WebSockets, TLS, कैशिंग, कम्प्रेशन और रेट लिमिटिंग।

यह कैसे काम करता है

NGINX resolves `server { listen; server_name; }` first, then picks the most specific `location` block, forwarding or serving static files; always validate with `nginx -t` before `reload`.

सर्वाइवल किट

वे कुछ कमांड जिन्हें सबसे पहले सीखना चाहिए।

40 कमांड

कीबोर्ड शॉर्टकट/खोज पर फ़ोकस करेंJKचयन आगे-पीछे करेंCचयनित कॉपी करेंFचयनित बुकमार्क करेंEscखोज साफ़ करें

CLI Check, Reload & Logs

Validate syntax, reload without dropping connections, and inspect runtime config.

  • आवश्यक

    Test all included nginx configuration files for syntax and path errors

    nginx -t

    इसका उपयोग कब करें

    Never reload NGINX without testing first; broken config aborts reload safely only if checked.

    घटक विवरण

    -t
    Parse config and test validity without applying

    उदाहरण

    sudo nginx -t

    परिणाम

    nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
    nginx: configuration file /etc/nginx/nginx.conf test is successful

Server Blocks, Locations & Static Files

Understand location matching precedence, SPA fallbacks, and clean redirects.

Reverse Proxy, Upstreams & WebSockets

Forward client IPs, HTTP/1.1 keepalives, WebSocket upgrades, and timeouts.

TLS, Security Headers & Rate Limits

Enforce HTTPS, TLS 1.2/1.3, security headers, and per-IP rate/size caps.

Compression, Caching & Tuning

Enable gzip, cache-control headers, worker limits, and proxy microcaching.

इसे KitLocal टूल में आज़माएँ

15 नव॰ 2026 को जाँचा गया · वर्शन NGINX 1.26+ / mainline के विरुद्ध जाँचा गया

स्रोत: NGINX Documentation · NGINX ngx_http_proxy_module

कोण कोष्ठक में दी गई किसी भी चीज़ को अपने मानों से बदलें। कमांड आधिकारिक दस्तावेज़ों से लिए गए हैं, और उदाहरण दिखाए गए वर्शन पर चलाए गए थे।