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 서버 블록 설정이 생성됩니다. SSL, PHP-FPM, 리버스 프록시, gzip, 정적 파일 캐싱 지원 — 수동 편집 불필요.
Enter a domain name to generate a config…
How to use this tool
Step 1
Type your domain name (e.g. example.com). The www alias is added automatically.
Step 2
Toggle SSL, PHP-FPM, proxy pass, gzip, and caching on or off. The config updates instantly.
Step 3
Click Copy to paste directly into your terminal, or Download to save as nginx.conf.
Step 4
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
자주 묻는 질문
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.location / 블록을 다르게 처리합니다. PHP-FPM은 FastCGI를 사용해 PHP 파일을 PHP 프로세스에 전달하고, 프록시 패스는 모든 요청을 업스트림 서버(Node.js, Python 등)로 전달합니다. 동일한 location /에서 둘 다 사용하면 충돌이 발생합니다. 둘 다 필요하다면 별도의 location 블록을 사용하고 설정을 직접 수정하세요.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 경로를 사용합니다./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/에 직접 저장합니다./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./run/php/php8.1-fpm.sock입니다 — 이 도구가 생성하는 경로입니다. PHP 버전이 다른 경우(예: 8.2, 7.4) 설정에서 버전 번호를 변경하세요. 서버에서 ls /run/php/로 실제 소켓 경로를 확인할 수 있습니다.