{"action":"created","issue":{"url":"https://api.github.com/repos/adelton/docker-freeipa/issues/26","labels_url":"https://api.github.com/repos/adelton/docker-freeipa/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/adelton/docker-freeipa/issues/26/comments","events_url":"https://api.github.com/repos/adelton/docker-freeipa/issues/26/events","html_url":"https://github.com/adelton/docker-freeipa/issues/26","id":92416588,"number":26,"title":"can not connect to the freeipa web ui using the host IP","user":{"login":"kforner","id":122744,"avatar_url":"https://avatars.githubusercontent.com/u/122744?v=3","gravatar_id":"","url":"https://api.github.com/users/kforner","html_url":"https://github.com/kforner","followers_url":"https://api.github.com/users/kforner/followers","following_url":"https://api.github.com/users/kforner/following{/other_user}","gists_url":"https://api.github.com/users/kforner/gists{/gist_id}","starred_url":"https://api.github.com/users/kforner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kforner/subscriptions","organizations_url":"https://api.github.com/users/kforner/orgs","repos_url":"https://api.github.com/users/kforner/repos","events_url":"https://api.github.com/users/kforner/events{/privacy}","received_events_url":"https://api.github.com/users/kforner/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-01T15:42:12Z","updated_at":"2015-07-02T11:50:40Z","closed_at":"2015-07-02T11:29:25Z","body":"Hello,\r\n\r\nCould you please give me an example on how to run the freeipa so that the freeipa web ui is available on the local host and on external hosts ? \r\n\r\nIs-it possible mapping the 80 and 443 freeipa ports to different ports on the host ? \r\n\r\nThanks a lot\r\nKarl Forner"},"comment":{"url":"https://api.github.com/repos/adelton/docker-freeipa/issues/comments/118007414","html_url":"https://github.com/adelton/docker-freeipa/issues/26#issuecomment-118007414","issue_url":"https://api.github.com/repos/adelton/docker-freeipa/issues/26","id":118007414,"user":{"login":"kforner","id":122744,"avatar_url":"https://avatars.githubusercontent.com/u/122744?v=3","gravatar_id":"","url":"https://api.github.com/users/kforner","html_url":"https://github.com/kforner","followers_url":"https://api.github.com/users/kforner/followers","following_url":"https://api.github.com/users/kforner/following{/other_user}","gists_url":"https://api.github.com/users/kforner/gists{/gist_id}","starred_url":"https://api.github.com/users/kforner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kforner/subscriptions","organizations_url":"https://api.github.com/users/kforner/orgs","repos_url":"https://api.github.com/users/kforner/repos","events_url":"https://api.github.com/users/kforner/events{/privacy}","received_events_url":"https://api.github.com/users/kforner/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T11:50:40Z","updated_at":"2015-07-02T11:50:40Z","body":"Hi, thanks for your quick reply.\r\nWhat I want to achieve: pretend that the docker host is the freeipa server, and offer all services.\r\nThe problem is that I already have a web server on port 80 and 443. \r\nI tried as you suggested to forward on other ports, but it seems that the web ui redirects URLs on fixed ports. \r\n\r\nMy current plan is to mess up with **/data/etc/httpd/conf.d/ipa-rewrite.conf**, does it seem right to you ?\r\n```\r\n# VERSION 6 - DO NOT REMOVE THIS LINE\r\n\r\nRewriteEngine on\r\n\r\n# By default forward all requests to /ipa. If you don't want IPA\r\n# to be the default on your web server comment this line out.\r\nRewriteRule ^/$ https://ipa.example.test/ipa/ui [L,NC,R=301]\r\n\r\n# Redirect to the fully-qualified hostname. Not redirecting to secure\r\n# port so configuration files can be retrieved without requiring SSL.\r\nRewriteCond %{HTTP_HOST}    !^ipa.example.test$ [NC]\r\nRewriteRule ^/ipa/(.*)      http://ipa.example.test/ipa/$1 [L,R=301]\r\n\r\n# Redirect to the secure port if not displaying an error or retrieving\r\n# configuration.\r\nRewriteCond %{SERVER_PORT}  !^443$\r\nRewriteCond %{REQUEST_URI}  !^/ipa/(errors|config|crl)\r\nRewriteCond %{REQUEST_URI}  !^/ipa/[^\\?]+(\\.js|\\.css|\\.png|\\.gif|\\.ico|\\.woff|\\.svg|\\.ttf|\\.eot)$\r\nRewriteRule ^/ipa/(.*)      https://ipa.example.test/ipa/$1 [L,R=301,NC]\r\n\r\n# Rewrite for plugin index, make it like it's a static file\r\nRewriteRule ^/ipa/ui/js/freeipa/plugins.js$    /ipa/wsgi/plugins.py [PT]\r\n\r\n```\r\n\r\n "}}