{"action":"created","issue":{"url":"https://api.github.com/repos/Neilpang/acme.sh/issues/808","repository_url":"https://api.github.com/repos/Neilpang/acme.sh","labels_url":"https://api.github.com/repos/Neilpang/acme.sh/issues/808/labels{/name}","comments_url":"https://api.github.com/repos/Neilpang/acme.sh/issues/808/comments","events_url":"https://api.github.com/repos/Neilpang/acme.sh/issues/808/events","html_url":"https://github.com/Neilpang/acme.sh/issues/808","id":224702844,"number":808,"title":"Using --nginx mode, acme.sh can't find a server_name that exists","user":{"login":"DaveQB","id":2125514,"avatar_url":"https://avatars3.githubusercontent.com/u/2125514?v=3","gravatar_id":"","url":"https://api.github.com/users/DaveQB","html_url":"https://github.com/DaveQB","followers_url":"https://api.github.com/users/DaveQB/followers","following_url":"https://api.github.com/users/DaveQB/following{/other_user}","gists_url":"https://api.github.com/users/DaveQB/gists{/gist_id}","starred_url":"https://api.github.com/users/DaveQB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaveQB/subscriptions","organizations_url":"https://api.github.com/users/DaveQB/orgs","repos_url":"https://api.github.com/users/DaveQB/repos","events_url":"https://api.github.com/users/DaveQB/events{/privacy}","received_events_url":"https://api.github.com/users/DaveQB/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-04-27T08:01:35Z","updated_at":"2017-04-27T08:11:01Z","closed_at":null,"body":"<!--\r\n请确保已经更新到最新的代码, 然后贴上来 `--debug 2` 的调试输出. 没有调试输出,我帮不了你.\r\n如何调试 https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh\r\n\r\nIf it is a bug report:\r\n- make sure you are able to repro it on the latest released version. \r\nYou can install the latest version by: `acme.sh --upgrade`\r\n\r\n- Search the existing issues.\r\n- Refer to the [WIKI](https://wiki.acme.sh).\r\n- Debug info [Debug](https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh).\r\n\r\n-->\r\n\r\nSteps to reproduce\r\n------------------\r\nacme.sh --issue --nginx  --force  --debug --log  \r\n(followed by 31 -d <domain> arguments)\r\n\r\n\r\nDebug log\r\n-----------------\r\n\r\n\r\nacme.sh  --issue .....   --debug 2\r\n```\r\n[Thu Apr 27 17:45:41 AEST 2017] _isRealNginxConf wsgridiron.info /etc/nginx/sites-enabled/wspirates\r\n\r\n[Thu Apr 27 17:45:41 AEST 2017] Can not find conf file for domain wsgridiron.info\r\n[Thu Apr 27 17:45:41 AEST 2017] pid\r\n[Thu Apr 27 17:45:41 AEST 2017] No need to restore nginx, skip.\r\n[Thu Apr 27 17:45:41 AEST 2017] _clearupdns\r\n[Thu Apr 27 17:45:41 AEST 2017] Dns not added, skip.\r\n[Thu Apr 27 17:45:41 AEST 2017] _on_issue_err```\r\n\r\n[Thu Apr 27 17:47:02 AEST 2017] code='202'\r\n```\r\n\r\nYet:\r\n\r\n```\r\ngrep -o  wsgridiron.info /etc/nginx/sites-enabled/wspirates  \r\nwsgridiron.info  \r\nwsgridiron.info  \r\nwsgridiron.info  \r\nwsgridiron.info     \r\n```\r\n\r\nI switched to --nginx mode after trying to list multiple domains each with their own webroot, but it seems you can only have 1 webroot with acme.sh\r\nSuch as:\r\n\r\n-d 1.domain.com -d 2.domain.com -w /var/www/domain.com -d 3.domain.com -d 4.domain.com -w /var/www/domain2.com\r\n\r\nFor some reason acme tried to use /var/www/domain2.com for 1.domain.com. Anyway, that's another topic.\r\n\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/Neilpang/acme.sh/issues/comments/297644344","html_url":"https://github.com/Neilpang/acme.sh/issues/808#issuecomment-297644344","issue_url":"https://api.github.com/repos/Neilpang/acme.sh/issues/808","id":297644344,"user":{"login":"Neilpang","id":8305679,"avatar_url":"https://avatars1.githubusercontent.com/u/8305679?v=3","gravatar_id":"","url":"https://api.github.com/users/Neilpang","html_url":"https://github.com/Neilpang","followers_url":"https://api.github.com/users/Neilpang/followers","following_url":"https://api.github.com/users/Neilpang/following{/other_user}","gists_url":"https://api.github.com/users/Neilpang/gists{/gist_id}","starred_url":"https://api.github.com/users/Neilpang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neilpang/subscriptions","organizations_url":"https://api.github.com/users/Neilpang/orgs","repos_url":"https://api.github.com/users/Neilpang/repos","events_url":"https://api.github.com/users/Neilpang/events{/privacy}","received_events_url":"https://api.github.com/users/Neilpang/received_events","type":"User","site_admin":false},"created_at":"2017-04-27T08:11:01Z","updated_at":"2017-04-27T08:11:01Z","body":"Give me the full log and the nginx conf file, otherwise I can not fix it.\r\n\r\n"}}
{"actor":{"display_login":"Neilpang"}}