# NGINX Config Generator

URL: https://sohaib.com/blog/nginx-config-generator
Author: Sohaib Khan
Published: Jan 23, 2020
Updated: Sep 8, 2026
Category: Web Servers & DevOps

> I found this gold mine today and I tell you this is the best site for generating accurate Nginx configuration with all the necessary configuration. I am assuming you're running Ubuntu or any other Nix flavor and have…

I found this gold mine today and I tell you this is the best site for generating accurate Nginx configuration with all the necessary configuration.

I am assuming you're running Ubuntu or any other \*Nix flavor and have the nginx installed on your server - Following command is for Ubuntu or Debian.

```bash
apt-get install nginx -y
```

Visit [Nginx Config Generator](https://nginxconfig.io/) - Generate your configuration and you're done or you can click here to have my pre-define [nginx generated file](https://nginxconfig.io/?0.domain=test.com&0.email=youremail@YOURDOMAIN.COM&0.wordpress&0.access_log_domain&0.error_log_domain&php_server=%2Fvar%2Frun%2Fphp%2Fphp7.3-fpm.sock&log_not_found&symlink=false) which is for Wordpress.

Once you generated the file - You simply have to goto /etc/nginx and upload the config file & obviously if you are using Let's Encrypt or any other custom SSL certificate you've to manage and upload the certificates and also generate dhparam in order for you to have a running webserver - If you do end up with any issues - Please post them in your comments and I will help you out.
