Nginx Config Generator

Fill out the form and get a ready-to-use nginx server block config. Supports SSL, PHP-FPM, reverse proxy, gzip, and static file caching — no manual editing required.

Nginx 설정 생성기

폼을 채우면 바로 사용할 수 있는 nginx 서버 블록 설정이 생성됩니다. SSL, PHP-FPM, 리버스 프록시, gzip, 정적 파일 캐싱 지원 — 수동 편집 불필요.

SSL (Let's Encrypt)
Add HTTPS server block
PHP-FPM
fastcgi_pass via unix socket
Proxy Pass
Reverse proxy to upstream
Gzip Compression
Compress text responses
Static File Caching
30-day expires for assets
Generated Config
Enter a domain name to generate a config…

How to use this tool

Step 1

Enter your domain

Type your domain name (e.g. example.com). The www alias is added automatically.

Step 2

Configure options

Toggle SSL, PHP-FPM, proxy pass, gzip, and caching on or off. The config updates instantly.

Step 3

Copy or download

Click Copy to paste directly into your terminal, or Download to save as nginx.conf.

Step 4

Deploy to your server

Place the file at /etc/nginx/sites-available/, symlink it, then run nginx -t && systemctl reload nginx.

사용 방법

Step 1

도메인 입력

도메인 이름을 입력하세요 (예: example.com). www 별칭은 자동으로 추가됩니다.

Step 2

옵션 설정

SSL, PHP-FPM, 프록시 패스, gzip, 캐싱을 켜고 끄세요. 설정이 실시간으로 업데이트됩니다.

Step 3

복사 또는 다운로드

복사를 눌러 터미널에 바로 붙여넣거나, 다운로드를 눌러 nginx.conf로 저장하세요.

Step 4

서버에 배포

파일을 /etc/nginx/sites-available/에 저장하고 심볼릭 링크를 만든 후 nginx -t && systemctl reload nginx를 실행하세요.

Frequently Asked Questions

자주 묻는 질문

PHP-FPM and Proxy Pass both handle the location / block differently — PHP-FPM uses FastCGI to pass PHP files to a PHP process, while Proxy Pass forwards all requests to an upstream server (e.g. Node.js, Python). Combining them on the same location / would create a conflict. If you need both, configure them under separate location blocks and edit the output manually.
PHP-FPM과 프록시 패스는 모두 location / 블록을 다르게 처리합니다. PHP-FPM은 FastCGI를 사용해 PHP 파일을 PHP 프로세스에 전달하고, 프록시 패스는 모든 요청을 업스트림 서버(Node.js, Python 등)로 전달합니다. 동일한 location /에서 둘 다 사용하면 충돌이 발생합니다. 둘 다 필요하다면 별도의 location 블록을 사용하고 설정을 직접 수정하세요.
Install certbot and the nginx plugin: apt install certbot python3-certbot-nginx. Then run certbot --nginx -d example.com -d www.example.com. Certbot will obtain the certificate and update your nginx config automatically. The generated config uses the expected Let's Encrypt paths at /etc/letsencrypt/live/[domain]/.
certbot와 nginx 플러그인을 설치하세요: apt install certbot python3-certbot-nginx. 그 다음 certbot --nginx -d example.com -d www.example.com을 실행하세요. Certbot이 인증서를 발급받고 nginx 설정을 자동으로 업데이트합니다. 생성된 설정은 /etc/letsencrypt/live/[domain]/의 표준 Let's Encrypt 경로를 사용합니다.
Save the file to /etc/nginx/sites-available/example.com. Then create a symlink: ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/. Test the config with nginx -t, then reload: systemctl reload nginx. On some setups (e.g. CentOS), configs go directly in /etc/nginx/conf.d/ instead.
파일을 /etc/nginx/sites-available/example.com에 저장하세요. 그런 다음 심볼릭 링크를 만드세요: ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/. nginx -t로 설정을 테스트한 후 리로드하세요: systemctl reload nginx. CentOS 등 일부 환경에서는 /etc/nginx/conf.d/에 직접 저장합니다.
The default socket path for PHP 8.1 on Ubuntu/Debian is /run/php/php8.1-fpm.sock — that's what this tool generates. If you're running a different PHP version (e.g. 8.2, 7.4), change the version number in the config. You can verify the actual socket path with ls /run/php/ on your server.
Ubuntu/Debian에서 PHP 8.1의 기본 소켓 경로는 /run/php/php8.1-fpm.sock입니다 — 이 도구가 생성하는 경로입니다. PHP 버전이 다른 경우(예: 8.2, 7.4) 설정에서 버전 번호를 변경하세요. 서버에서 ls /run/php/로 실제 소켓 경로를 확인할 수 있습니다.
No. All config generation happens entirely in your browser with JavaScript. Nothing you type is transmitted anywhere. Your domain names and server paths stay completely private.
아니요. 모든 설정 생성은 JavaScript를 사용하여 브라우저 내에서만 처리됩니다. 입력한 내용은 어디에도 전송되지 않습니다. 도메인 이름과 서버 경로는 완전히 비공개로 유지됩니다.

Sponsor

Get started on Vultr

Get $300 free credit — valid for 30 days (limited-time offer)

Claim your credit →