{"action":"created","comment":{"url":"https://api.github.com/repos/docker/distribution/pulls/comments/29184944","id":29184944,"diff_hunk":"@@ -0,0 +1,150 @@\n+#\n+# Sample Apache 2.x configuration where : \n+#\n+# http://registry.example.com proxify Docker Registry 1.0 in Mirror mode\n+# https://registry.example.com proxify Docker Registry 1.0 or 2.0 in Hosting mode\n+#\n+# 3 Docker containers should be started \n+#\n+# Docker Registry 1.0 in Mirror mode : port 5001\n+# Docker Registry 1.0 in Hosting mode : port 5000\n+# Docker Registry 2.0 in Hosting mode : port 5002\n+#\n+# Registry v1 :\n+# docker run -d -e SETTINGS_FLAVOR=dev -v /var/lib/docker-registry/storage/hosting-v1:/tmp -p 5000:5000 registry:0.9.1\"\n+#\n+# Mirror :\n+# docker run -d -e SETTINGS_FLAVOR=dev -e STANDALONE=false -e MIRROR_SOURCE=https://registry-1.docker.io -e MIRROR_SOURCE_INDEX=https://index.docker.io \\\n+#               -e MIRROR_TAGS_CACHE_TTL=172800 -v /var/lib/docker-registry/storage/mirror:/tmp -p 5001:5000 registry:0.9.1\"\n+#\n+# Registry v2 :\n+# docker run -d -e SETTINGS_FLAVOR=dev -v /var/lib/axway/docker-registry/storage/hosting2-v2:/tmp -p 5002:5000 registry:2.0\"\n+#\n+# For Hosting mode :\n+# \n+# users should have account (valid-user) to be able to fetch images\n+# only users using account docker-deployer will be allowed to push images\n+\n+<VirtualHost *:80>\n+         \n+  ServerName registry.example.com\n+  ServerAlias www.registry.example.com\n+\n+  ProxyRequests     off\n+  ProxyPreserveHost on\n+\n+  # no proxy for /error/ (Apache HTTPd errors messages)\n+  ProxyPass /error/ !\n+\n+  ProxyPass        /_ping http://localhost:5001/_ping\n+  ProxyPassReverse /_ping http://localhost:5001/_ping\n+\n+  ProxyPass        /v1 http://localhost:5001/v1\n+  ProxyPassReverse /v1 http://localhost:5001/v1\n+\n+  # Logs\n+  ErrorLog ${APACHE_LOG_DIR}/mirror_error_log\n+  CustomLog ${APACHE_LOG_DIR}/mirror_access_log combined env=!dontlog\n+\n+</VirtualHost>\n+\n+\n+<VirtualHost *:443>\n+\n+  ServerName registry.example.com\n+  ServerAlias www.registry.example.com\n+\n+  SSLEngine on\n+  SSLCertificateFile /etc/apache2/ssl/registry.example.com.crt\n+  SSLCertificateKeyFile /etc/apache2/ssl/registry.example.com.key\n+\n+  # Higher Strength SSL Ciphers\n+  SSLProtocol all -SSLv2 -SSLv3 -TLSv1 \n+  SSLCipherSuite RC4-SHA:HIGH\n+  SSLHonorCipherOrder on\n+\n+  # Logs\n+  ErrorLog ${APACHE_LOG_DIR}/registry_error_ssl_log\n+  CustomLog ${APACHE_LOG_DIR}/registry_access_ssl_log combined env=!dontlog\n+\n+  Header set Host \"registry.example.com\"\n+  Header set \"Docker-Distribution-Api-Version\" \"registry/2.0\"","path":"contrib/apache/apache.conf","position":48,"original_position":71,"commit_id":"7df490b6b2225dd1dd0791ec648d08c3ff3761bf","original_commit_id":"d90ff0e75ec578b671b2732fb37bf7eb111b9960","user":{"login":"hgomez","id":274370,"avatar_url":"https://avatars.githubusercontent.com/u/274370?v=3","gravatar_id":"","url":"https://api.github.com/users/hgomez","html_url":"https://github.com/hgomez","followers_url":"https://api.github.com/users/hgomez/followers","following_url":"https://api.github.com/users/hgomez/following{/other_user}","gists_url":"https://api.github.com/users/hgomez/gists{/gist_id}","starred_url":"https://api.github.com/users/hgomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgomez/subscriptions","organizations_url":"https://api.github.com/users/hgomez/orgs","repos_url":"https://api.github.com/users/hgomez/repos","events_url":"https://api.github.com/users/hgomez/events{/privacy}","received_events_url":"https://api.github.com/users/hgomez/received_events","type":"User","site_admin":false},"body":"I'm unsure we could set Headers inside Location.","created_at":"2015-04-27T20:03:42Z","updated_at":"2015-04-27T20:03:42Z","html_url":"https://github.com/docker/distribution/pull/423#discussion_r29184944","pull_request_url":"https://api.github.com/repos/docker/distribution/pulls/423","_links":{"self":{"href":"https://api.github.com/repos/docker/distribution/pulls/comments/29184944"},"html":{"href":"https://github.com/docker/distribution/pull/423#discussion_r29184944"},"pull_request":{"href":"https://api.github.com/repos/docker/distribution/pulls/423"}}},"pull_request":{"url":"https://api.github.com/repos/docker/distribution/pulls/423","id":33931919,"html_url":"https://github.com/docker/distribution/pull/423","diff_url":"https://github.com/docker/distribution/pull/423.diff","patch_url":"https://github.com/docker/distribution/pull/423.patch","issue_url":"https://api.github.com/repos/docker/distribution/issues/423","number":423,"state":"open","locked":false,"title":"Apache HTTPd sample configuration","user":{"login":"hgomez","id":274370,"avatar_url":"https://avatars.githubusercontent.com/u/274370?v=3","gravatar_id":"","url":"https://api.github.com/users/hgomez","html_url":"https://github.com/hgomez","followers_url":"https://api.github.com/users/hgomez/followers","following_url":"https://api.github.com/users/hgomez/following{/other_user}","gists_url":"https://api.github.com/users/hgomez/gists{/gist_id}","starred_url":"https://api.github.com/users/hgomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgomez/subscriptions","organizations_url":"https://api.github.com/users/hgomez/orgs","repos_url":"https://api.github.com/users/hgomez/repos","events_url":"https://api.github.com/users/hgomez/events{/privacy}","received_events_url":"https://api.github.com/users/hgomez/received_events","type":"User","site_admin":false},"body":"Apache HTTPd sample configuration to proxify, Registry v1 in mirror mode, Registry v1 in hosting mode and Registry v2 in hosting mode ","created_at":"2015-04-23T07:57:46Z","updated_at":"2015-04-27T20:03:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7b84bf0de6ebd45efd8589151e1f98acf86a295f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker/distribution/pulls/423/commits","review_comments_url":"https://api.github.com/repos/docker/distribution/pulls/423/comments","review_comment_url":"https://api.github.com/repos/docker/distribution/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/distribution/issues/423/comments","statuses_url":"https://api.github.com/repos/docker/distribution/statuses/7df490b6b2225dd1dd0791ec648d08c3ff3761bf","head":{"label":"hgomez:master","ref":"master","sha":"7df490b6b2225dd1dd0791ec648d08c3ff3761bf","user":{"login":"hgomez","id":274370,"avatar_url":"https://avatars.githubusercontent.com/u/274370?v=3","gravatar_id":"","url":"https://api.github.com/users/hgomez","html_url":"https://github.com/hgomez","followers_url":"https://api.github.com/users/hgomez/followers","following_url":"https://api.github.com/users/hgomez/following{/other_user}","gists_url":"https://api.github.com/users/hgomez/gists{/gist_id}","starred_url":"https://api.github.com/users/hgomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgomez/subscriptions","organizations_url":"https://api.github.com/users/hgomez/orgs","repos_url":"https://api.github.com/users/hgomez/repos","events_url":"https://api.github.com/users/hgomez/events{/privacy}","received_events_url":"https://api.github.com/users/hgomez/received_events","type":"User","site_admin":false},"repo":{"id":34441336,"name":"distribution","full_name":"hgomez/distribution","owner":{"login":"hgomez","id":274370,"avatar_url":"https://avatars.githubusercontent.com/u/274370?v=3","gravatar_id":"","url":"https://api.github.com/users/hgomez","html_url":"https://github.com/hgomez","followers_url":"https://api.github.com/users/hgomez/followers","following_url":"https://api.github.com/users/hgomez/following{/other_user}","gists_url":"https://api.github.com/users/hgomez/gists{/gist_id}","starred_url":"https://api.github.com/users/hgomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgomez/subscriptions","organizations_url":"https://api.github.com/users/hgomez/orgs","repos_url":"https://api.github.com/users/hgomez/repos","events_url":"https://api.github.com/users/hgomez/events{/privacy}","received_events_url":"https://api.github.com/users/hgomez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hgomez/distribution","description":"The Docker toolset to pack, ship, store, and deliver content","fork":true,"url":"https://api.github.com/repos/hgomez/distribution","forks_url":"https://api.github.com/repos/hgomez/distribution/forks","keys_url":"https://api.github.com/repos/hgomez/distribution/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hgomez/distribution/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hgomez/distribution/teams","hooks_url":"https://api.github.com/repos/hgomez/distribution/hooks","issue_events_url":"https://api.github.com/repos/hgomez/distribution/issues/events{/number}","events_url":"https://api.github.com/repos/hgomez/distribution/events","assignees_url":"https://api.github.com/repos/hgomez/distribution/assignees{/user}","branches_url":"https://api.github.com/repos/hgomez/distribution/branches{/branch}","tags_url":"https://api.github.com/repos/hgomez/distribution/tags","blobs_url":"https://api.github.com/repos/hgomez/distribution/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hgomez/distribution/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hgomez/distribution/git/refs{/sha}","trees_url":"https://api.github.com/repos/hgomez/distribution/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hgomez/distribution/statuses/{sha}","languages_url":"https://api.github.com/repos/hgomez/distribution/languages","stargazers_url":"https://api.github.com/repos/hgomez/distribution/stargazers","contributors_url":"https://api.github.com/repos/hgomez/distribution/contributors","subscribers_url":"https://api.github.com/repos/hgomez/distribution/subscribers","subscription_url":"https://api.github.com/repos/hgomez/distribution/subscription","commits_url":"https://api.github.com/repos/hgomez/distribution/commits{/sha}","git_commits_url":"https://api.github.com/repos/hgomez/distribution/git/commits{/sha}","comments_url":"https://api.github.com/repos/hgomez/distribution/comments{/number}","issue_comment_url":"https://api.github.com/repos/hgomez/distribution/issues/comments{/number}","contents_url":"https://api.github.com/repos/hgomez/distribution/contents/{+path}","compare_url":"https://api.github.com/repos/hgomez/distribution/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hgomez/distribution/merges","archive_url":"https://api.github.com/repos/hgomez/distribution/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hgomez/distribution/downloads","issues_url":"https://api.github.com/repos/hgomez/distribution/issues{/number}","pulls_url":"https://api.github.com/repos/hgomez/distribution/pulls{/number}","milestones_url":"https://api.github.com/repos/hgomez/distribution/milestones{/number}","notifications_url":"https://api.github.com/repos/hgomez/distribution/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hgomez/distribution/labels{/name}","releases_url":"https://api.github.com/repos/hgomez/distribution/releases{/id}","created_at":"2015-04-23T07:41:13Z","updated_at":"2015-04-27T11:00:57Z","pushed_at":"2015-04-27T11:00:56Z","git_url":"git://github.com/hgomez/distribution.git","ssh_url":"git@github.com:hgomez/distribution.git","clone_url":"https://github.com/hgomez/distribution.git","svn_url":"https://github.com/hgomez/distribution","homepage":null,"size":2110,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"4dde6b9d64db8393abec0d175eacb4ee7c77be4e","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":28366058,"name":"distribution","full_name":"docker/distribution","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/distribution","description":"The Docker toolset to pack, ship, store, and deliver content","fork":false,"url":"https://api.github.com/repos/docker/distribution","forks_url":"https://api.github.com/repos/docker/distribution/forks","keys_url":"https://api.github.com/repos/docker/distribution/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/distribution/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/distribution/teams","hooks_url":"https://api.github.com/repos/docker/distribution/hooks","issue_events_url":"https://api.github.com/repos/docker/distribution/issues/events{/number}","events_url":"https://api.github.com/repos/docker/distribution/events","assignees_url":"https://api.github.com/repos/docker/distribution/assignees{/user}","branches_url":"https://api.github.com/repos/docker/distribution/branches{/branch}","tags_url":"https://api.github.com/repos/docker/distribution/tags","blobs_url":"https://api.github.com/repos/docker/distribution/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/distribution/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/distribution/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/distribution/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/distribution/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/distribution/languages","stargazers_url":"https://api.github.com/repos/docker/distribution/stargazers","contributors_url":"https://api.github.com/repos/docker/distribution/contributors","subscribers_url":"https://api.github.com/repos/docker/distribution/subscribers","subscription_url":"https://api.github.com/repos/docker/distribution/subscription","commits_url":"https://api.github.com/repos/docker/distribution/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/distribution/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/distribution/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/distribution/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/distribution/contents/{+path}","compare_url":"https://api.github.com/repos/docker/distribution/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/distribution/merges","archive_url":"https://api.github.com/repos/docker/distribution/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/distribution/downloads","issues_url":"https://api.github.com/repos/docker/distribution/issues{/number}","pulls_url":"https://api.github.com/repos/docker/distribution/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/distribution/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/distribution/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/distribution/labels{/name}","releases_url":"https://api.github.com/repos/docker/distribution/releases{/id}","created_at":"2014-12-22T23:49:26Z","updated_at":"2015-04-27T19:54:35Z","pushed_at":"2015-04-27T19:08:30Z","git_url":"git://github.com/docker/distribution.git","ssh_url":"git@github.com:docker/distribution.git","clone_url":"https://github.com/docker/distribution.git","svn_url":"https://github.com/docker/distribution","homepage":null,"size":6391,"stargazers_count":373,"watchers_count":373,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":99,"mirror_url":null,"open_issues_count":119,"forks":99,"open_issues":119,"watchers":373,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/distribution/pulls/423"},"html":{"href":"https://github.com/docker/distribution/pull/423"},"issue":{"href":"https://api.github.com/repos/docker/distribution/issues/423"},"comments":{"href":"https://api.github.com/repos/docker/distribution/issues/423/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/distribution/pulls/423/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/distribution/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/distribution/pulls/423/commits"},"statuses":{"href":"https://api.github.com/repos/docker/distribution/statuses/7df490b6b2225dd1dd0791ec648d08c3ff3761bf"}}}}