{"action":"created","issue":{"url":"https://api.github.com/repos/z-song/laravel-admin/issues/2134","repository_url":"https://api.github.com/repos/z-song/laravel-admin","labels_url":"https://api.github.com/repos/z-song/laravel-admin/issues/2134/labels{/name}","comments_url":"https://api.github.com/repos/z-song/laravel-admin/issues/2134/comments","events_url":"https://api.github.com/repos/z-song/laravel-admin/issues/2134/events","html_url":"https://github.com/z-song/laravel-admin/issues/2134","id":331907259,"node_id":"MDU6SXNzdWUzMzE5MDcyNTk=","number":2134,"title":"laravel  admin 访问后台403 Forbidden nginx/1.10.3 (Ubuntu);非要加indexphp/admin 才行","user":{"login":"dengyupeng","id":29151484,"node_id":"MDQ6VXNlcjI5MTUxNDg0","avatar_url":"https://avatars3.githubusercontent.com/u/29151484?v=4","gravatar_id":"","url":"https://api.github.com/users/dengyupeng","html_url":"https://github.com/dengyupeng","followers_url":"https://api.github.com/users/dengyupeng/followers","following_url":"https://api.github.com/users/dengyupeng/following{/other_user}","gists_url":"https://api.github.com/users/dengyupeng/gists{/gist_id}","starred_url":"https://api.github.com/users/dengyupeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dengyupeng/subscriptions","organizations_url":"https://api.github.com/users/dengyupeng/orgs","repos_url":"https://api.github.com/users/dengyupeng/repos","events_url":"https://api.github.com/users/dengyupeng/events{/privacy}","received_events_url":"https://api.github.com/users/dengyupeng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-13T09:11:36Z","updated_at":"2018-06-20T22:20:59Z","closed_at":null,"author_association":"NONE","body":"laravel -admin安装后(laravel 是5.5版本)，访问http://localhost:8000/admin/   报错：403 Forbidden nginx/1.10.3 (Ubuntu);\r\n\r\n\r\n需要这样才可以：http://localhost:8000/index.php/admin/  \r\n这个怎么解决的呀？有遇到一样问题的吗？"},"comment":{"url":"https://api.github.com/repos/z-song/laravel-admin/issues/comments/398916190","html_url":"https://github.com/z-song/laravel-admin/issues/2134#issuecomment-398916190","issue_url":"https://api.github.com/repos/z-song/laravel-admin/issues/2134","id":398916190,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODkxNjE5MA==","user":{"login":"noogen","id":95691,"node_id":"MDQ6VXNlcjk1Njkx","avatar_url":"https://avatars3.githubusercontent.com/u/95691?v=4","gravatar_id":"","url":"https://api.github.com/users/noogen","html_url":"https://github.com/noogen","followers_url":"https://api.github.com/users/noogen/followers","following_url":"https://api.github.com/users/noogen/following{/other_user}","gists_url":"https://api.github.com/users/noogen/gists{/gist_id}","starred_url":"https://api.github.com/users/noogen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noogen/subscriptions","organizations_url":"https://api.github.com/users/noogen/orgs","repos_url":"https://api.github.com/users/noogen/repos","events_url":"https://api.github.com/users/noogen/events{/privacy}","received_events_url":"https://api.github.com/users/noogen/received_events","type":"User","site_admin":false},"created_at":"2018-06-20T22:20:59Z","updated_at":"2018-06-20T22:20:59Z","author_association":"NONE","body":"@dengyupeng please post your nginx config for help with troubleshooting nginx.  These are what I use as example:\r\n\r\nnginx to phpfpm: https://github.com/niiknow/vestacp/blob/master/rootfs/sysprepz/nginx-templates/php-fpm.stpl\r\nnginx - proxy to - apache (simply proxy pass it directly into apache): https://github.com/serghey-rodin/vesta/blob/master/install/ubuntu/16.04/templates/web/nginx/default.stpl#L10\r\n\r\nI'm guessing you're using phpfpm so...  \r\n\r\nP.S. You seem to have permission issue so you may want to check all your folder permissions and the nginx user permission first before reading further.\r\n\r\n#TLDR\r\n## breaking down what is required from the nginx configuration template by line\r\n1.  https://github.com/niiknow/vestacp/blob/master/rootfs/sysprepz/nginx-templates/php-fpm.stpl#L13  You need to set your document root to the public/ folder.  The base folder is only for debug with artisan (see server.php) comment.  \r\n2.  https://github.com/niiknow/vestacp/blob/master/rootfs/sysprepz/nginx-templates/php-fpm.stpl#L23 This line say to try finding the file first, if not found, then fallback to use index.php and don't forget about query string.\r\n3.  https://github.com/niiknow/vestacp/blob/master/rootfs/sysprepz/nginx-templates/php-fpm.stpl#L30 this line and the rest of the lines below it are fpm configuration for the \".php\" extension file group.\r\n\r\nTherefore, if you add an admin folder, then that would overwrite the default laravel-admin routing of \"/admin\"\r\n\r\nAgain:\r\n1.   Check file system permission and nginx user can access to those folder.\r\n2.  Check if document root is correctly setup.\r\n3.  If you have a folder, check that you're not overwriting any default route.  Check that you have an index.php file under that folder if you do not have directory browsing on.\r\n"}}
{"actor":{"display_login":"noogen"}}