{"action":"created","issue":{"url":"https://api.github.com/repos/ruddra/docker-django/issues/10","repository_url":"https://api.github.com/repos/ruddra/docker-django","labels_url":"https://api.github.com/repos/ruddra/docker-django/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/ruddra/docker-django/issues/10/comments","events_url":"https://api.github.com/repos/ruddra/docker-django/issues/10/events","html_url":"https://github.com/ruddra/docker-django/issues/10","id":339993646,"node_id":"MDU6SXNzdWUzMzk5OTM2NDY=","number":10,"title":"abc.com:8000 works, but abc:80 doesn't","user":{"login":"heyt0ny","id":4774606,"node_id":"MDQ6VXNlcjQ3NzQ2MDY=","avatar_url":"https://avatars1.githubusercontent.com/u/4774606?v=4","gravatar_id":"","url":"https://api.github.com/users/heyt0ny","html_url":"https://github.com/heyt0ny","followers_url":"https://api.github.com/users/heyt0ny/followers","following_url":"https://api.github.com/users/heyt0ny/following{/other_user}","gists_url":"https://api.github.com/users/heyt0ny/gists{/gist_id}","starred_url":"https://api.github.com/users/heyt0ny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heyt0ny/subscriptions","organizations_url":"https://api.github.com/users/heyt0ny/orgs","repos_url":"https://api.github.com/users/heyt0ny/repos","events_url":"https://api.github.com/users/heyt0ny/events{/privacy}","received_events_url":"https://api.github.com/users/heyt0ny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-10T20:25:04Z","updated_at":"2018-07-11T05:20:51Z","closed_at":null,"author_association":"NONE","body":"Hello!\r\n\r\nI'm trying to add domain `abc.com`. \r\nMy conf looks like this:\r\n\r\n```\r\nupstream web {  \r\n  ip_hash;\r\n  server web:8000;\r\n}\r\n\r\nserver {\r\n\r\n    location /static/ {    \r\n        autoindex on;    \r\n        alias /src/static/; \r\n    }\r\n\r\n    location / {\r\n        proxy_pass http://web/;\r\n    }\r\n    listen 8000;\r\n    server_name abc.com;\r\n}\r\n```\r\nand it works.\r\n\r\nHowever if I replace `listen 8000` to `listen 80` -- it doesn't. What am I doing wrong ?"},"comment":{"url":"https://api.github.com/repos/ruddra/docker-django/issues/comments/404048319","html_url":"https://github.com/ruddra/docker-django/issues/10#issuecomment-404048319","issue_url":"https://api.github.com/repos/ruddra/docker-django/issues/10","id":404048319,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDA0ODMxOQ==","user":{"login":"ruddra","id":3099861,"node_id":"MDQ6VXNlcjMwOTk4NjE=","avatar_url":"https://avatars0.githubusercontent.com/u/3099861?v=4","gravatar_id":"","url":"https://api.github.com/users/ruddra","html_url":"https://github.com/ruddra","followers_url":"https://api.github.com/users/ruddra/followers","following_url":"https://api.github.com/users/ruddra/following{/other_user}","gists_url":"https://api.github.com/users/ruddra/gists{/gist_id}","starred_url":"https://api.github.com/users/ruddra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruddra/subscriptions","organizations_url":"https://api.github.com/users/ruddra/orgs","repos_url":"https://api.github.com/users/ruddra/repos","events_url":"https://api.github.com/users/ruddra/events{/privacy}","received_events_url":"https://api.github.com/users/ruddra/received_events","type":"User","site_admin":false},"created_at":"2018-07-11T05:20:51Z","updated_at":"2018-07-11T05:20:51Z","author_association":"OWNER","body":"You need to change few other things to make it work.\r\n\r\n1.  In `Dockerfile` you need to change\r\n```\r\ngunicorn mydjango.wsgi -b 0.0.0.0:8000\r\n```\r\nto\r\n```\r\ngunicorn mydjango.wsgi -b 0.0.0.0:80\r\n```\r\n2. In NGINX file:\r\n\r\nupstream web {  \r\n  ip_hash;\r\n  server web:80;\r\n}\r\n```\r\nserver {\r\n    location /static/ {    \r\n        autoindex on;    \r\n        alias /src/static/; \r\n    }\r\n\r\n    location / {\r\n        proxy_pass http://web/;\r\n    }\r\n    listen 80;\r\n    server_name abc.com;\r\n}\r\n```"}}
{"actor":{"display_login":"ruddra"}}