{"action":"created","issue":{"url":"https://api.github.com/repos/enterprisemediawiki/meza/issues/291","repository_url":"https://api.github.com/repos/enterprisemediawiki/meza","labels_url":"https://api.github.com/repos/enterprisemediawiki/meza/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/enterprisemediawiki/meza/issues/291/comments","events_url":"https://api.github.com/repos/enterprisemediawiki/meza/issues/291/events","html_url":"https://github.com/enterprisemediawiki/meza/issues/291","id":128922557,"number":291,"title":"Make http redirect to https","user":{"login":"jamesmontalvo3","id":716482,"avatar_url":"https://avatars.githubusercontent.com/u/716482?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesmontalvo3","html_url":"https://github.com/jamesmontalvo3","followers_url":"https://api.github.com/users/jamesmontalvo3/followers","following_url":"https://api.github.com/users/jamesmontalvo3/following{/other_user}","gists_url":"https://api.github.com/users/jamesmontalvo3/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesmontalvo3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesmontalvo3/subscriptions","organizations_url":"https://api.github.com/users/jamesmontalvo3/orgs","repos_url":"https://api.github.com/users/jamesmontalvo3/repos","events_url":"https://api.github.com/users/jamesmontalvo3/events{/privacy}","received_events_url":"https://api.github.com/users/jamesmontalvo3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/enterprisemediawiki/meza/milestones/10","html_url":"https://github.com/enterprisemediawiki/meza/milestones/meza%20v1.0%20-%20MVP%20to%20announce%20on%20wikitech","labels_url":"https://api.github.com/repos/enterprisemediawiki/meza/milestones/10/labels","id":1371529,"number":10,"title":"meza v1.0 - MVP to announce on wikitech","description":"","creator":{"login":"jamesmontalvo3","id":716482,"avatar_url":"https://avatars.githubusercontent.com/u/716482?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesmontalvo3","html_url":"https://github.com/jamesmontalvo3","followers_url":"https://api.github.com/users/jamesmontalvo3/followers","following_url":"https://api.github.com/users/jamesmontalvo3/following{/other_user}","gists_url":"https://api.github.com/users/jamesmontalvo3/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesmontalvo3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesmontalvo3/subscriptions","organizations_url":"https://api.github.com/users/jamesmontalvo3/orgs","repos_url":"https://api.github.com/users/jamesmontalvo3/repos","events_url":"https://api.github.com/users/jamesmontalvo3/events{/privacy}","received_events_url":"https://api.github.com/users/jamesmontalvo3/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":8,"state":"open","created_at":"2015-10-23T00:06:26Z","updated_at":"2016-04-22T02:43:02Z","due_on":"2016-12-25T06:00:00Z","closed_at":null},"comments":2,"created_at":"2016-01-26T19:47:42Z","updated_at":"2016-05-11T20:57:09Z","closed_at":null,"body":"In `httpd.conf` there is the following commented-out portion of code:\r\n\r\n```conf\r\n# Listen 80\r\n# <VirtualHost *:80>\r\n#      ServerName MezaHttpRedirect\r\n#      Redirect \"/\" \"https://INSERT-DOMAIN-OR-IP/\"\r\n# </VirtualHost>\r\n```\r\n\r\nThis, if un-commented, would tell Apache to listen to port 80 (http), then any requests to port 80 would fall into the VirtualHost called \"MezaHttpRedirect\", and would subsequently be redirected to https (the \"INSERT-DOMAIN-OR-IP\" is replaced by the domain or IP address during installation.\r\n\r\nThis does not work, however, with Elasticsearch. Something about this configuration prevents search results from working properly. The redirecting capability works fine."},"comment":{"url":"https://api.github.com/repos/enterprisemediawiki/meza/issues/comments/218587750","html_url":"https://github.com/enterprisemediawiki/meza/issues/291#issuecomment-218587750","issue_url":"https://api.github.com/repos/enterprisemediawiki/meza/issues/291","id":218587750,"user":{"login":"jamesmontalvo3","id":716482,"avatar_url":"https://avatars.githubusercontent.com/u/716482?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesmontalvo3","html_url":"https://github.com/jamesmontalvo3","followers_url":"https://api.github.com/users/jamesmontalvo3/followers","following_url":"https://api.github.com/users/jamesmontalvo3/following{/other_user}","gists_url":"https://api.github.com/users/jamesmontalvo3/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesmontalvo3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesmontalvo3/subscriptions","organizations_url":"https://api.github.com/users/jamesmontalvo3/orgs","repos_url":"https://api.github.com/users/jamesmontalvo3/repos","events_url":"https://api.github.com/users/jamesmontalvo3/events{/privacy}","received_events_url":"https://api.github.com/users/jamesmontalvo3/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T20:57:08Z","updated_at":"2016-05-11T20:57:08Z","body":"See \"Setup HSTS in Apache2\" [here](https://raymii.org/s/tutorials/HTTP_Strict_Transport_Security_for_Apache_NGINX_and_Lighttpd.html) for a method to use mod_rewrite to do redirect, which looks like we could make it so we don't need to modify httpd.conf with the domain."}}