{"action":"closed","issue":{"url":"https://api.github.com/repos/jsxc/jsxc/issues/223","labels_url":"https://api.github.com/repos/jsxc/jsxc/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/jsxc/jsxc/issues/223/comments","events_url":"https://api.github.com/repos/jsxc/jsxc/issues/223/events","html_url":"https://github.com/jsxc/jsxc/issues/223","id":107323588,"number":223,"title":"wiki lighttpd instructions","user":{"login":"select","id":1164760,"avatar_url":"https://avatars.githubusercontent.com/u/1164760?v=3","gravatar_id":"","url":"https://api.github.com/users/select","html_url":"https://github.com/select","followers_url":"https://api.github.com/users/select/followers","following_url":"https://api.github.com/users/select/following{/other_user}","gists_url":"https://api.github.com/users/select/gists{/gist_id}","starred_url":"https://api.github.com/users/select/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/select/subscriptions","organizations_url":"https://api.github.com/users/select/orgs","repos_url":"https://api.github.com/users/select/repos","events_url":"https://api.github.com/users/select/events{/privacy}","received_events_url":"https://api.github.com/users/select/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-19T10:33:04Z","updated_at":"2015-09-29T21:56:07Z","closed_at":"2015-09-29T21:56:07Z","body":"I use lighttpd and could not find the insturctions in the wiki so here is what I added to my `/etc/lighttpd/lighttpd.conf`\r\n\r\n```\r\nserver.modules += ( \"mod_proxy\" )\r\nproxy.server = (\r\n  \"/http-bind\" => (\r\n    ( \"host\" => \"127.0.0.1\", \"port\" => 5280 )\r\n  )\r\n)\r\n```\r\n\r\nThis is the general way to do this, activate mod_prox and then set up the proxy connection. Since I have OwnCloud running under a subdomain my configuration looks a bit different.\r\n\r\nIn the `lighttpd.conf` i added the module \r\n```\r\nserver.modules = (\r\n       ...\r\n      \"mod_proxy\"\r\n     ...\r\n)\r\n...\r\n# include all files that are under vhosts\r\ninclude_shell \"cat /etc/lighttpd/vhosts/*.conf\"\r\n```\r\n\r\nand in my vhosts/myserver.conf\r\n```\r\n$HTTP[\"host\"] == \"cloud.myserver.com\" {\r\n        server.document-root = \"/var/www/owncloud/\"\r\n        server.errorlog = \"/var/log/lighttpd/owncloud.error.log\"\r\n        accesslog.filename = \"/var/log/lighttpd/owncloud.access.log\"\r\n        proxy.server = (\r\n                \"/http-bind\" => (\r\n                        ( \"host\" => \"127.0.0.1\", \"port\" => 5280 )\r\n                )\r\n        )\r\n}\r\n# always redirect to https \r\n$HTTP[\"scheme\"] == \"http\" {\r\n    $HTTP[\"host\"] == \"cloud.myserver.com\" {\r\n            url.redirect = (\".*\" => \"https://cloud.myserver.com$0\")\r\n    }\r\n}\r\n```\r\n\r\nI can now connect with pidgin XMPP to myOCuser@cloud.myserver.com\r\n\r\nMaybe it would be nice to integrate this information into the wiki, to get others setup faster."}}