{"id":23762041,"url":"https://github.com/sameer266/nodejs-apache-linux-deploy","last_synced_at":"2025-06-26T23:05:25.260Z","repository":{"id":269915883,"uuid":"908844633","full_name":"sameer266/nodejs-apache-linux-deploy","owner":"sameer266","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-27T05:55:30.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-27T06:25:14.573Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/sameer266.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":"2024-12-27T05:34:17.000Z","updated_at":"2024-12-27T05:55:33.000Z","dependencies_parsed_at":"2024-12-27T06:25:17.564Z","dependency_job_id":"e59fd1b5-fb88-448d-8b86-99c26d4ff3ad","html_url":"https://github.com/sameer266/nodejs-apache-linux-deploy","commit_stats":null,"previous_names":["sameer266/nodejs-apache-linux-deploy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameer266%2Fnodejs-apache-linux-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameer266%2Fnodejs-apache-linux-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameer266%2Fnodejs-apache-linux-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameer266%2Fnodejs-apache-linux-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sameer266","download_url":"https://codeload.github.com/sameer266/nodejs-apache-linux-deploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239934196,"owners_count":19720898,"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":"2024-12-31T21:16:11.377Z","updated_at":"2025-02-21T00:38:58.607Z","avatar_url":"https://github.com/sameer266.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js App Deployment with Apache\n\nThis project demonstrates how to deploy a Node.js application behind Apache as a reverse proxy.\n\n## Setup and Deployment Steps\n\n### Prerequisites\n- Node.js installed\n- Apache installed with `proxy` and `proxy_http` modules enabled\n- PM2 (optional) for process management\n\n### Running the Node.js App\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/your-username/nodejs-apache-deploy.git\n   cd nodejs-apache-deploy\n   ```\n2. Install dependencies:\n   ```bash\n   npm install\n   ```\n3. Start the application:\n   ```bash\n   node server.js\n   ```\n   Or using PM2:\n   ```bash\n   pm2 start server.js\n   ```\n\n### Apache Configuration\nAdd the following configuration to your Apache Virtual Host file (e.g., `node_app.conf`):\n```apache\n\u003cVirtualHost *:8080\u003e\n    ServerName \u003cip\u003e\n\n    ProxyPreserveHost On\n    ProxyPass / http://localhost:8000/\n    ProxyPassReverse / http://localhost:8000/\n\n    ErrorLog ${APACHE_LOG_DIR}/node_app_error.log\n    CustomLog ${APACHE_LOG_DIR}/node_app_access.log combined\n\u003c/VirtualHost\u003e\n```\nEnable the configuration:\n```bash\nsudo a2ensite node_app.conf\nsudo systemctl restart apache2\n```\n\n### Accessing the App\nOpen your browser and go to:\n```\nhttp://\u003cip\u003e:8080\n```\n\n---\n\n### Screenshots\nInclude screenshots of the app running via Apache.\n# Project Name\n\nThis is a description of your project.\n\n## Screenshots\n\n### Screenshot 1\n![Screenshot 1](./Screenshot%202024-12-27%20104301.png)\n\n### Screenshot 2\n![Screenshot 2](./Screenshot%202024-12-27%20104228.png)\n\n### Screenshot 3\n![Screenshot 3](./Screenshot%202024-12-27%20104740.png)\n\n### License\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameer266%2Fnodejs-apache-linux-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsameer266%2Fnodejs-apache-linux-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameer266%2Fnodejs-apache-linux-deploy/lists"}