{"id":15758965,"url":"https://github.com/petehouston/nginx-conf-files","last_synced_at":"2026-04-09T07:02:56.300Z","repository":{"id":73364678,"uuid":"497489562","full_name":"petehouston/nginx-conf-files","owner":"petehouston","description":"Some useful nginx conf files for sites","archived":false,"fork":false,"pushed_at":"2022-05-29T05:35:18.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-02-06T13:29:03.252Z","etag":null,"topics":["drupal","drupal-config","drupal-nginx","laravel","laravel-config","laravel-nginx","nginx","nginx-configuration","nginx-php","nginx-php-fpm","php","wordpress","wordpress-configuration","wordpress-nginx"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/petehouston.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-29T04:30:27.000Z","updated_at":"2024-11-19T01:09:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2bafbd9-3e38-45d1-ae6d-fbe81987ffc1","html_url":"https://github.com/petehouston/nginx-conf-files","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"9ebdc48cac71f2978ae8430bf30bf731958f2432"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petehouston%2Fnginx-conf-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petehouston%2Fnginx-conf-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petehouston%2Fnginx-conf-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petehouston%2Fnginx-conf-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petehouston","download_url":"https://codeload.github.com/petehouston/nginx-conf-files/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246443527,"owners_count":20778247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drupal","drupal-config","drupal-nginx","laravel","laravel-config","laravel-nginx","nginx","nginx-configuration","nginx-php","nginx-php-fpm","php","wordpress","wordpress-configuration","wordpress-nginx"],"created_at":"2024-10-04T10:01:57.547Z","updated_at":"2025-12-30T21:38:46.670Z","avatar_url":"https://github.com/petehouston.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# nginx-conf-files\n\nSome useful nginx config files for sites.\n\n## Usage\n\n1. Copy the appropriate config file and save into nginx site config directory, usually located at `/etc/nginx/sites-available`, and name it like domain name as a good practice.\n2. Edit the config file to satisfy your requirements, then save.\n3. Symbol link to `/etc/nginx/sites-enabled/`.\n4. Restart nginx service\n\nThose steps can be illustrated as follow commands:\n\n```shell\n$ sudo vi /etc/nginx/sites-available/example.com\n\n-- edit file then save\n\n$ sudo ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/\n$ sudo nginx -t\n$ sudo systemctl reload nginx\n```\n\n## Config file list\n\n| Application | Type | Download                                                                                                         | Notes                                                                                                          |\n| --------- | ---- |------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|\n| WordPress | Simple | [Click to Download](https://raw.githubusercontent.com/petehouston/nginx-conf-files/dev/conf/wordpress_simple.conf) | -                                                                                                              |\n| WordPress | Advanced | [Click to Download](https://raw.githubusercontent.com/petehouston/nginx-conf-files/dev/conf/wordpress_advanced.conf) | -                                                                                                              |\n| Laravel | Simple | [Click to Download](https://raw.githubusercontent.com/petehouston/nginx-conf-files/dev/conf/laravel_simple.conf) | -                                                                                                              |\n| Laravel | Advanced | [Click to Download](https://raw.githubusercontent.com/petehouston/nginx-conf-files/dev/conf/laravel_advanced.conf) | -                                                                                                              |\n| Drupal | Generic | [Click to Download](https://raw.githubusercontent.com/petehouston/nginx-conf-files/dev/conf/drupal.conf)         | applied to Drupal v8+                                                                                          |\n| Symfony | Simple | [Click to Download](https://raw.githubusercontent.com/petehouston/nginx-conf-files/dev/conf/symfony_simple.conf) | applied to Symfony v4+. [Reference](https://symfony.com/doc/current/setup/web_server_configuration.html#nginx) |\n\n## Leverage Let's Encrypt SSL\n\nOnce you add the config to nginx, you can add Let's Encrypt config to site config via `certbot`. \n\n```shell\n$ sudo certbot --nginx -d example.com -d www.example.com\n```\n\nAll necessary config fields for SSL will be added automatically, so you don't have to do anything at this point.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetehouston%2Fnginx-conf-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetehouston%2Fnginx-conf-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetehouston%2Fnginx-conf-files/lists"}