Nginx Location Generator

Generate nginx location blocks with reverse proxy, static file serving, or redirect configurations. Supports WebSocket proxying, CORS headers, and various redirect status codes.

How to Use Nginx Location Generator

Choose a location path and type (proxy, static, or redirect), configure the relevant settings like proxy URL or root directory, and generate a ready-to-use nginx location block with proper headers and options.

Step-by-Step Instructions

  1. Enter the location path (e.g. /api)
  2. Select the type: reverse proxy, static files, or redirect
  3. Configure type-specific options and enable extras like CORS
  4. Click Generate and copy the nginx location block

Related Tools

More Free Tools