{"id":16317909,"url":"https://github.com/sihar/yii2-nginx-configuration","last_synced_at":"2026-01-23T07:07:05.380Z","repository":{"id":111082635,"uuid":"209756555","full_name":"sihar/yii2-nginx-configuration","owner":"sihar","description":null,"archived":false,"fork":false,"pushed_at":"2019-09-20T10:00:04.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-13T17:15:57.709Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/sihar.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":"2019-09-20T09:39:56.000Z","updated_at":"2019-09-20T10:00:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"47e9a18f-5fa3-4492-9592-4b5c46d6cbac","html_url":"https://github.com/sihar/yii2-nginx-configuration","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"149ee39cd311f90cd3b948ce87497c5777f93f9d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sihar/yii2-nginx-configuration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sihar%2Fyii2-nginx-configuration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sihar%2Fyii2-nginx-configuration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sihar%2Fyii2-nginx-configuration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sihar%2Fyii2-nginx-configuration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sihar","download_url":"https://codeload.github.com/sihar/yii2-nginx-configuration/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sihar%2Fyii2-nginx-configuration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28682304,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"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":[],"created_at":"2024-10-10T22:09:31.340Z","updated_at":"2026-01-23T07:07:05.366Z","avatar_url":"https://github.com/sihar.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# yii2-nginx-configuration\r\n\r\n## Langkah-langkah konfigurasi nginx untuk yii2 di windows\r\n- Start php cgi\r\n\r\n```\r\npath_php\u003ephp-cgi.exe -b 127.0.0.1:9000\r\n```  \r\n\r\n- Lakukan konfigurasi di file nginx.conf  \r\n\r\n```\r\n    server {\r\n        listen       8081;\r\n        server_name  localhost;\r\n\t\troot   html/aplikasi1/web;\r\n\t\tindex  index.php index.html index.htm;\t\t\t\r\n        charset utf-8;\r\n\r\n        location / {\r\n\t\t\ttry_files $uri $uri/ /index.php$is_args$args;\r\n        }\r\n\r\n\t\tlocation ~ ^/assets/.*\\.php$ {\r\n\t\t\tdeny all;\r\n\t\t}\r\n\r\n\t\tlocation ~ \\.php$ {\r\n\t\t\tinclude fastcgi_params;\r\n\t\t\tfastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n\t\t\tfastcgi_pass 127.0.0.1:9000;\r\n\t\t\ttry_files $uri =404;\r\n\t\t}\r\n\r\n\t\tlocation ~* /\\. {\r\n\t\t\tdeny all;\r\n\t\t}\r\n\t\r\n    }\r\n\t\r\n    server {\r\n        listen       8082;\r\n        server_name  localhost;\r\n\t\troot   html/aplikasi2/web;\r\n\t\tindex  index.php index.html index.htm;\t\t\t\r\n        charset utf-8;\r\n\r\n        location / {\r\n\t\t\ttry_files $uri $uri/ /index.php$is_args$args;\r\n        }\r\n\r\n\t\tlocation ~ ^/assets/.*\\.php$ {\r\n\t\t\tdeny all;\r\n\t\t}\r\n\r\n\t\tlocation ~ \\.php$ {\r\n\t\t\tinclude fastcgi_params;\r\n\t\t\tfastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n\t\t\tfastcgi_pass 127.0.0.1:9000;\r\n\t\t\ttry_files $uri =404;\r\n\t\t}\r\n\r\n\t\tlocation ~* /\\. {\r\n\t\t\tdeny all;\r\n\t\t}\r\n\t\r\n    }\t\r\n\r\n```\r\n\r\n- Jalankan aplikasi nginx\r\n```\r\npath_nginx\u003e nginx.exe\r\n```\r\n\r\n- Buka url dan port sesuai konfigurasi nginx, http://localhost:8081 dan http://localhost:8082\r\n\r\n## Referensi\r\nhttps://www.yiiframework.com/doc/guide/2.0/en/start-installation#recommended-nginx-configuration  \r\nhttps://www.mkyong.com/nginx/nginx-php-on-windows/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsihar%2Fyii2-nginx-configuration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsihar%2Fyii2-nginx-configuration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsihar%2Fyii2-nginx-configuration/lists"}