{"id":24989119,"url":"https://github.com/engineervix/hello-nginx","last_synced_at":"2026-01-07T19:04:39.584Z","repository":{"id":38084658,"uuid":"500358583","full_name":"engineervix/hello-nginx","owner":"engineervix","description":"minimal example of how to setup a simple site with NGIИX","archived":false,"fork":false,"pushed_at":"2023-12-15T05:33:51.000Z","size":6,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-04T12:16:51.990Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/engineervix.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}},"created_at":"2022-06-06T08:51:49.000Z","updated_at":"2022-06-06T08:55:05.000Z","dependencies_parsed_at":"2023-12-15T06:47:48.931Z","dependency_job_id":null,"html_url":"https://github.com/engineervix/hello-nginx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engineervix%2Fhello-nginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engineervix%2Fhello-nginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engineervix%2Fhello-nginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engineervix%2Fhello-nginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/engineervix","download_url":"https://codeload.github.com/engineervix/hello-nginx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246180898,"owners_count":20736459,"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":[],"created_at":"2025-02-04T12:16:55.173Z","updated_at":"2026-01-07T19:04:39.104Z","avatar_url":"https://github.com/engineervix.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hello NGIИX\n\nThis directory (`hello-nginx`) contains an example of how to setup a simple site with [NGIИX](https://www.nginx.com/).\n\nThis may particularly be useful in a situation where\n\n- you have just [setup a new Linux server](https://github.com/engineervix/ubuntu-server-setup/tree/feature/mailjet) (including installation of NGIИX) and\n- you have created **A** / **CNAME** DNS records that point to your server's IP address ...\n\n... and you want to check that your NGIИX setup is working as expected\n\n## First things first\n\n1. Clone this repo: `git clone https://github.com/engineervix/hello-nginx.git`\n2. Create a directory for your test website. For instance, let's call it `hello_world`, and let's create it in `$HOME/PROJECTS/`. On the CLI, this would look like this:\n\n    ```bash\n    # This will also create the PROJECTS directory (if it doesn't exist) in your $HOME directory,\n    # so you can change this to suit your naming \u0026 location preferences\n    mkdir -p ~/PROJECTS/hello_world\n    ```\n\n3. Copy the contents of `hello-nginx` into the `hello_world` directory you created:\n\n    ```bash\n    # assuming you're in the `hello-nginx` directory\n    # the -R flag is for recursively copying, the -v is for verbose mode\n    cp -Rv * ~/PROJECTS/hello_world/\n    ```\n\n4. Edit the NGIИX configuration file `~/PROJECTS/hello_world/hello_world_nginx_config/example_nginx_no-https.conf` by\n    - replacing `/the/path/to/your/project` with the actual **full path** to your project. This should neither be literally `$HOME/PROJECTS/hello_world` nor `~/PROJECTS/hello_world`, you have to write it in full. If your username is *kate*, for instance, then this will be `/home/kate/PROJECTS/hello_world`\n    - replacing `example.org` with your actual domain\n\n## Next Steps\n\n1. You now need to inform NGIИX about your new site:\n\n    ```bash\n    # navigate to /etc/nginx/sites-enabled/ and in there, create a symlink to your new site's NGIИX configuration\n    cd /etc/nginx/sites-enabled/\n    # replace `example.org` with your own suitable reference\n    sudo ln -s ~/PROJECTS/hello_world/hello_world_nginx_config/example_nginx_no-https.conf example.org\n    ```\n\n2. Test your NGIИX configuration: `sudo nginx -t`.\n3. If everything is okay, reload NGIИX configuration (`sudo nginx -s reload`) and check your domain to see that you can access your simple test site.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengineervix%2Fhello-nginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fengineervix%2Fhello-nginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengineervix%2Fhello-nginx/lists"}