Developer Tools
Nginx Config Generator — Free, No Upload, Browser-Based
🔒 Kjører i nettleseren din
Generate ready-to-paste Nginx or Apache server block configurations in seconds — choose from static site, reverse proxy, SSL redirect, or PHP-FPM modes, set your domain, root, and options, and the config updates live as you type. Everything runs in your browser: no files are uploaded and nothing leaves your machine. Copy the result and drop it straight into your server.
Slik bruker du dette verktøyet
- Select Nginx or Apache and choose a mode: static site, reverse proxy, SSL redirect, or PHP-FPM.
- Fill in your domain name, document root or upstream URL, listen port, and toggle options like Gzip, browser caching, and access logs.
- Copy the generated config block and paste it into your server's sites-available directory or configuration file.
Server
Mode
Options
server {
listen 80;
listen [::]:80;
server_name example.com;
root /var/www/html;
index index.html index.htm;
location / {
try_files $uri $uri/ =404;
}
# Deny hidden files
location ~ /\. {
deny all;
}
# Gzip compression
gzip on;
gzip_vary on;
gzip_min_length 1024;
gzip_proxied any;
gzip_comp_level 6;
gzip_types text/plain text/css text/xml application/json application/javascript application/rss+xml application/atom+xml image/svg+xml;
access_log /var/log/nginx/example.com.access.log;
error_log /var/log/nginx/example.com.error.log warn;
}Generated entirely in your browser — nothing is sent to a server. Review and test in a staging environment before deploying.