{"id":18555698,"url":"https://github.com/n2ref/apache_config_parser","last_synced_at":"2025-07-16T21:37:32.397Z","repository":{"id":23123415,"uuid":"26478080","full_name":"n2ref/apache_config_parser","owner":"n2ref","description":"Parse apache config","archived":false,"fork":false,"pushed_at":"2022-07-13T13:21:02.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-13T23:35:28.167Z","etag":null,"topics":["apache","config","parser"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"fossasia/meilix","license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/n2ref.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}},"created_at":"2014-11-11T09:26:34.000Z","updated_at":"2023-04-09T14:40:59.000Z","dependencies_parsed_at":"2022-07-27T03:47:18.708Z","dependency_job_id":null,"html_url":"https://github.com/n2ref/apache_config_parser","commit_stats":null,"previous_names":["n2ref/apache_config_parser"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/n2ref/apache_config_parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2ref%2Fapache_config_parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2ref%2Fapache_config_parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2ref%2Fapache_config_parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2ref%2Fapache_config_parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n2ref","download_url":"https://codeload.github.com/n2ref/apache_config_parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2ref%2Fapache_config_parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265542383,"owners_count":23785217,"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":["apache","config","parser"],"created_at":"2024-11-06T21:27:37.616Z","updated_at":"2025-07-16T21:37:32.378Z","avatar_url":"https://github.com/n2ref.png","language":"PHP","readme":"Apache config parser\n====================\n\nParse apache config\n\n## Example\n```php\n\nrequire_once('Apache_Config_Parser.php');\n\n$server_apache_config = '/etc/apache2/apache2.conf';\n\n$apache_config_parser = new Apache_Config_Parser($server_apache_config);\n$apache_hosts         = $apache_config_parser-\u003egetApacheHosts();\n\necho'\u003cpre\u003e';print_r($apache_hosts);echo'\u003c/pre\u003e';\n```\n\nResult\n\n```html\nArray (\n    [host1.com] =\u003e Array (\n        [is_active] =\u003e 1\n        [document_root] =\u003e /home/username1/www/host1.com\n        [aliases] =\u003e Array (\n            0 =\u003e Array (\n                [name] =\u003e www.host1.com\n                [is_active] =\u003e 1\n            )\n            1 =\u003e Array (\n                [name] =\u003e h1.com\n                [is_active] =\u003e 1\n            )\n        )\n    )\n\n    [host2.com] =\u003e Array (\n        [is_active] =\u003e 1\n        [document_root] =\u003e /home/username2/www/host2.com\n        [aliases] =\u003e Array (\n        )\n    )\n\n    [host3.com] =\u003e Array (\n        [is_active] =\u003e 1\n        [document_root] =\u003e /home/username2/www/host2.com\n        [aliases] =\u003e Array (\n        )\n    )\n    \n    ...\n    \n)        \n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn2ref%2Fapache_config_parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn2ref%2Fapache_config_parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn2ref%2Fapache_config_parser/lists"}