Server Config Generator

Generate production-ready Nginx or Apache configs for static sites, PHP-FPM, reverse proxy, and Node.js apps.

Server:

Server type

Domain

Security headers



            
            

Deploy steps

About this tool

Generate production-ready Nginx server blocks or Apache VirtualHost configs. Supports static sites, PHP-FPM (Laravel, WordPress, Symfony), reverse proxy, and Node.js. Options for SSL/Let's Encrypt, HTTP/2, gzip, mod_deflate, security headers, caching, rate limiting, and WebSocket.

Frequently asked questions

Does this generate both Nginx and Apache configs?

Yes. Use the Nginx / Apache toggle at the top to switch between a Nginx server block and an Apache VirtualHost config. All settings — SSL, compression, security headers, caching, and framework presets — apply to both engines.

What server types are supported?

Static sites, PHP (with framework presets for Laravel, WordPress, Symfony, and generic PHP), reverse proxy to any upstream HTTP service, and Node.js apps on a specified port. Node.js is available for Nginx only; on Apache it is covered by the reverse proxy option.

What Apache modules are required?

mod_rewrite and mod_headers are always needed. mod_ssl for HTTPS, mod_deflate for compression, mod_expires for static asset caching, and mod_proxy plus mod_proxy_http for reverse proxy. Enable them with a2enmod.

Does the config work with Let's Encrypt?

Yes. When SSL is enabled, the config references the standard Certbot certificate paths. Run certbot --nginx or certbot --apache after deploying to issue and install the certificate automatically.

What security headers are included?

HSTS (Nginx and Apache HTTPS only), X-Frame-Options, X-Content-Type-Options, Referrer-Policy, and X-XSS-Protection. Each header can be toggled independently.

How do I deploy the generated file?

For Nginx: save to /etc/nginx/sites-available/, symlink to sites-enabled/, run nginx -t, then reload. For Apache: save to /etc/apache2/sites-available/ with a .conf extension, run a2ensite, then reload apache2.

Related tools

Password Gen QR Code Gradient Box Shadow