25% OFF High Performance Plans — Limited Time! Deal ends in:
00days
:
00hrs
:
00min
:
00sec
Developer Tools

Nginx & Apache
Config Generator

Generate a ready-to-paste Nginx server block or Apache VirtualHost. Add PHP-FPM, an HTTPS redirect and your document root — no boilerplate to memorise.

Nginx
Apache
PHP-FPM
server {
listen 80;
server_name site.com;
root /var/www/site;
}
/etc/nginx/sites-available/example.com

            

Frequently Asked Questions

Where do I save an Nginx server block?
Put it in /etc/nginx/sites-available/your-domain, then symlink it into sites-enabled with ln -s, test with nginx -t, and reload using systemctl reload nginx.
How do I enable an Apache VirtualHost?
Save the config to /etc/apache2/sites-available/your-domain.conf, enable it with a2ensite your-domain, then run systemctl reload apache2.
What is PHP-FPM and do I need it?
PHP-FPM is a fast process manager that runs PHP behind the web server. Enable it if your site uses PHP (WordPress, Laravel, etc.). The generated config passes .php requests to the FPM socket.
How do I add a free SSL certificate?
After the site is live, run Certbot — certbot --nginx or certbot --apache — and it will obtain a free Let's Encrypt certificate and update your config automatically.

Related Tools

Redirect Generator Htpasswd Generator Subnet Calculator

Deploy Your Site on a Root-Access VPS

TextraHost Linux VPS plans start at $5.50/mo — full root, NVMe storage, India & Singapore.

Call Us WhatsApp
Trusted & Certified
HostAdvice Silver — Top 25 Reseller Hosting HostAdvice — Top 25 Offshore Hosting 2026 HostAdvice — Over 99% Uptime 2025 Website Planet Feature Accredited .xyz Registrar tawk.to Partner Green hosting verified by The Green Web Foundation AbuseIPDB Contributor Badge