{"id":20371610,"url":"https://github.com/atulkamble/azurevm-website-hosting","last_synced_at":"2025-03-04T20:28:00.992Z","repository":{"id":219523150,"uuid":"749263210","full_name":"atulkamble/azurevm-website-hosting","owner":"atulkamble","description":"A step-by-step guide to host a static website using Git and Mini-httpd on a Linux server.","archived":false,"fork":false,"pushed_at":"2024-09-24T15:21:32.000Z","size":4230,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-01T10:48:28.597Z","etag":null,"topics":["azure","azurevm","git","httpd","linux","linuxserver","static-website","webhosting"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atulkamble.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-01-28T03:23:52.000Z","updated_at":"2024-09-24T15:21:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"967393aa-9ace-49f5-9220-5f31ca775c44","html_url":"https://github.com/atulkamble/azurevm-website-hosting","commit_stats":null,"previous_names":["atulkamble/testwebsite","atulkamble/azurevm-website-hosting"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atulkamble%2Fazurevm-website-hosting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atulkamble%2Fazurevm-website-hosting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atulkamble%2Fazurevm-website-hosting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atulkamble%2Fazurevm-website-hosting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atulkamble","download_url":"https://codeload.github.com/atulkamble/azurevm-website-hosting/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241916704,"owners_count":20041964,"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":["azure","azurevm","git","httpd","linux","linuxserver","static-website","webhosting"],"created_at":"2024-11-15T01:08:42.564Z","updated_at":"2025-03-04T20:28:00.965Z","avatar_url":"https://github.com/atulkamble.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic - Project: Website Code | GitHub | Web Server - Hosting\n\nThis repository contains a step-by-step guide to set up and host a static website using Git and Mini-httpd on a Linux server. The process demonstrates how to clone your website code from GitHub and serve it through a simple HTTP server.\n\n## Prerequisites\n- A Linux-based virtual machine (VM) like an Ubuntu server.\n- A public IP address for accessing the hosted website.\n- Git installed on the server.\n\n## Steps to Set Up the Server\n\n1. **Update the Machine**\n   ```bash\n   sudo apt update -y\n   ```\n\n2. **Install Git**\n   ```bash\n   sudo apt install git -y\n   ```\n\n3. **Install Mini-HTTPD (Web Server)**\n   ```bash\n   sudo apt install mini-httpd -y\n   ```\n\n4. **Start and Enable Mini-HTTPD**\n   ```bash\n   sudo systemctl start mini-httpd\n   sudo systemctl enable mini-httpd\n   ```\n\n5. **Navigate to the Web Root Directory**\n   ```bash\n   cd /var/www/html\n   ```\n\n6. **Clone the Website Repository**\n   Clone your website code from GitHub:\n   ```bash\n   git clone https://github.com/atulkamble/testwebsite.git\n   ```\n   Alternatively, clone with `sudo` for permission issues:\n   ```bash\n   sudo git clone https://github.com/atulkamble/testwebsite.git\n   ```\n\n7. **Move Website Files to the Web Directory**\n   ```bash\n   sudo cp testwebsite/* .\n   sudo mv testwebsite/css /var/www/html\n   sudo mv testwebsite/js /var/www/html\n   sudo mv testwebsite/images /var/www/html\n   ```\n\n8. **Access the Website**\n   Replace the public IP with your Azure VM's public IP and visit the website in your browser:\n   ```\n   http://\u003cyour-public-ip\u003e/\n   ```\n\n   Example:\n   ```\n   http://98.70.89.130/\n   ```\n\n## License\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\n\nLet me know if you need any additional changes!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatulkamble%2Fazurevm-website-hosting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatulkamble%2Fazurevm-website-hosting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatulkamble%2Fazurevm-website-hosting/lists"}