{"id":19121701,"url":"https://github.com/maricard18/42-webserv","last_synced_at":"2025-09-19T22:55:59.557Z","repository":{"id":211342315,"uuid":"702921418","full_name":"maricard18/42-webserv","owner":"maricard18","description":"This project is about writing your own HTTP server","archived":false,"fork":false,"pushed_at":"2024-02-03T20:17:07.000Z","size":125498,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-26T08:27:19.307Z","etag":null,"topics":["42","42-webserv","42-webserver","42born2code","42cursus","42projects","42school","42webserv","cpp","http","http-server","webserv","webserver"],"latest_commit_sha":null,"homepage":"","language":"C++","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/maricard18.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":"2023-10-10T09:04:55.000Z","updated_at":"2024-03-15T22:28:03.000Z","dependencies_parsed_at":"2024-02-03T20:41:07.794Z","dependency_job_id":null,"html_url":"https://github.com/maricard18/42-webserv","commit_stats":null,"previous_names":["maricard18/42-webserver","maricard18/42-webserv"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maricard18/42-webserv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maricard18%2F42-webserv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maricard18%2F42-webserv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maricard18%2F42-webserv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maricard18%2F42-webserv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maricard18","download_url":"https://codeload.github.com/maricard18/42-webserv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maricard18%2F42-webserv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276012571,"owners_count":25569844,"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","status":"online","status_checked_at":"2025-09-19T02:00:09.700Z","response_time":108,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["42","42-webserv","42-webserver","42born2code","42cursus","42projects","42school","42webserv","cpp","http","http-server","webserv","webserver"],"created_at":"2024-11-09T05:18:10.680Z","updated_at":"2025-09-19T22:55:59.536Z","avatar_url":"https://github.com/maricard18.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **webserver**\nThis project was graded \u003cstrong\u003e110/100\u003c/strong\u003e \u003cbr\u003e\n-\u003e [Subject](./assets/subject.pdf)\n\n## 📝 **Authorship**\n\n- [Mario Henriques](https://github.com/maricard18) ([**maricard**](https://profile.intra.42.fr/users/maricard))\n- [Bruno Costa](https://github.com/BrunoCostaGH) ([**bsilva-c**](https://profile.intra.42.fr/users/bsilva-c))\n\n## 🧬 **Cloning**\n\nTo successfully clone this repository, use this command\n\n```shell\ngit clone https://github.com/maricard18/42-webserver.git \n```\n\n## 📒 **About**\nThis project guides you in building a C++ HTTP server, offering a practical understanding of the HTTP protocol. \u003cbr\u003e\nTest your server with real browsers and delve into the fundamentals of networking. \u003cbr\u003e\nGain insights into web security while creating a functional web server, even if web development isn't your primary focus. \u003cbr\u003e\nWebserv provides a hands-on, educational experience for anyone interested in the core technologies of the internet.\n\n\n## 🎥 **Demo**\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./assets/demo.gif\" width=\"100%\"\u003e\n\u003c/p\u003e\n\n\n## 📦 **Compilation**\nTo compile the webserver you should run `make` with the configuration file of your choice. \u003cbr\u003e\u003cbr\u003e\nThis rule will generate a `webserv` file, which is the zipped version of all the object files. \u003cbr\u003e\u003cbr\u003e\nTo launch the executable you should follow this syntax...\n\n```sh\n$ ./webserv config_file/server.conf\n```\n\nWhere `config_file/server.conf` is the name of a file that represents the configuration of the webserver. \u003cbr\u003e\u003cbr\u003e\nYou can find example of configuration files in the `config_files` folder. \u003cbr\u003e\n\n\n## 🕹️ **Configuration File rules**\n\n```bash\nServer {\n    root /absolute/path;\n    index index.html; # optional\n    autoindex true; # optional, default is false\n    server_name _; # optional\n    listen 0.0.0.0:8080; # optional IP, default is 0.0.0.0:8080\n    client_max_body_size 1M; # optional, default is 1M\n    upload_store /path/to/uploaded/files; # optional, default is /uploads\n    error_page 404 /relative/path/to/error/page.html; # optional\n\n    location /delete/ {\n        # root /path/to/root;\n        # index index_file.html;\n        # autoindex false/true;\n        # allow_methods GET POST DELETE;\n    }\n\n    location .py {\n        # path to executable\n        cgi_pass /absolute/path/to/executable;\n    }\n}\n```\n\n## 💫 **Testing**\n\nThis project was tested using self-made tests \u003cbr\u003e\nYou can find some of them in the `tests` folder. \u003cbr\u003e\n\n---\n\u003e Feel free to ask me any questions through Slack (**maricard**). \u003cbr\u003e\n\u003e GitHub [@maricard18](https://github.com/maricard18) \u0026nbsp;\u0026middot;\u0026nbsp;\n\u003e Linkedin [Mario Henriques](https://www.linkedin.com/in/mario18) \u0026nbsp;\u0026middot;\u0026nbsp;\n\u003e [42 Porto](https://www.42porto.com/en)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaricard18%2F42-webserv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaricard18%2F42-webserv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaricard18%2F42-webserv/lists"}