{"id":28857982,"url":"https://github.com/km-saifullah/deploy-static-webpage","last_synced_at":"2026-02-26T15:39:17.535Z","repository":{"id":295450433,"uuid":"990141143","full_name":"km-saifullah/deploy-static-webpage","owner":"km-saifullah","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-25T15:57:04.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-20T02:04:06.360Z","etag":null,"topics":["devops","docker","html","nginx","static-site"],"latest_commit_sha":null,"homepage":"","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/km-saifullah.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,"zenodo":null}},"created_at":"2025-05-25T15:32:08.000Z","updated_at":"2025-06-09T15:14:34.000Z","dependencies_parsed_at":"2025-05-26T14:00:43.061Z","dependency_job_id":null,"html_url":"https://github.com/km-saifullah/deploy-static-webpage","commit_stats":null,"previous_names":["km-saifullah/deploy-static-webpage"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/km-saifullah/deploy-static-webpage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/km-saifullah%2Fdeploy-static-webpage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/km-saifullah%2Fdeploy-static-webpage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/km-saifullah%2Fdeploy-static-webpage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/km-saifullah%2Fdeploy-static-webpage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/km-saifullah","download_url":"https://codeload.github.com/km-saifullah/deploy-static-webpage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/km-saifullah%2Fdeploy-static-webpage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29863603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T08:51:08.701Z","status":"ssl_error","status_checked_at":"2026-02-26T08:50:19.607Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["devops","docker","html","nginx","static-site"],"created_at":"2025-06-20T02:04:07.630Z","updated_at":"2026-02-26T15:39:17.518Z","avatar_url":"https://github.com/km-saifullah.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Host Static Website in VPS Server\n\nIn this guide, I will walk you through the step-by-step process of hosting a static website using a VPS (Virtual Private Server) and the Nginx web server. This guide doc covers everything from setting up your VPS to configuring Nginx for optimal performance and security.\n\n## SSH into your VPS\n\n```bash\nssh root@your_vps_ip\n```\n\n## Create a directory for your site (/var/www/static-site)\n\n```bash\nmkdir -p /var/www/static-site\ncd /cat/www/static-site\n```\n\n## Clone the code from the github\n\n```bash\ngit clone https://github.com/km-saifullah/deploy-static-webpage.git ./\n```\n\n## Install Nginx in the VPS server\n\n```bash\nsudo apt update\nsudo apt install nginx -y\n```\n\n## Create a new Nginx config file\n\n```bash\nsudo nano /etc/nginx/sites-available/static-site\n```\n\n## Paste the following configuration to the above nginx file\n\n```bash\nserver {\n    listen 80;\n    server_name site.example.com;\n\n    root /var/www/static-site;\n    index index.html;\n\n    location / {\n        try_files $uri $uri/ =404;\n    }\n}\n```\n\n## Enable the config\n\n```bash\nsudo ln -s /etc/nginx/sites-available/static-site /etc/nginx/sites-enabled\n```\n\n## Test the Nginx config\n\n```bash\nsudo nginx -t\n```\n\n## Reload Nginx\n\n```bash\nsudo systemctl reload nginx\n```\n\n## Install Certbot\n\n```bash\nsudo apt install certbot python3-certbot-nginx -y\n```\n\n## Run the Certbot\n\n```bash\nsudo certbot --nginx -d site.example.com\n```\n\n## Test your site\n\n```bash\nhttp://site.example.com\nhttps://site.example.com (if SSL enabled)\n```\n\nEverything is going great now.\nBest of luck....👍\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkm-saifullah%2Fdeploy-static-webpage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkm-saifullah%2Fdeploy-static-webpage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkm-saifullah%2Fdeploy-static-webpage/lists"}