{"action":"created","issue":{"url":"https://api.github.com/repos/Uberspace/manual/issues/102","repository_url":"https://api.github.com/repos/Uberspace/manual","labels_url":"https://api.github.com/repos/Uberspace/manual/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/Uberspace/manual/issues/102/comments","events_url":"https://api.github.com/repos/Uberspace/manual/issues/102/events","html_url":"https://github.com/Uberspace/manual/issues/102","id":549040270,"node_id":"MDU6SXNzdWU1NDkwNDAyNzA=","number":102,"title":"Add .htaccess example for individual document roots","user":{"login":"Spacelord09","id":26622202,"node_id":"MDQ6VXNlcjI2NjIyMjAy","avatar_url":"https://avatars1.githubusercontent.com/u/26622202?v=4","gravatar_id":"","url":"https://api.github.com/users/Spacelord09","html_url":"https://github.com/Spacelord09","followers_url":"https://api.github.com/users/Spacelord09/followers","following_url":"https://api.github.com/users/Spacelord09/following{/other_user}","gists_url":"https://api.github.com/users/Spacelord09/gists{/gist_id}","starred_url":"https://api.github.com/users/Spacelord09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Spacelord09/subscriptions","organizations_url":"https://api.github.com/users/Spacelord09/orgs","repos_url":"https://api.github.com/users/Spacelord09/repos","events_url":"https://api.github.com/users/Spacelord09/events{/privacy}","received_events_url":"https://api.github.com/users/Spacelord09/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2020-01-13T16:24:21Z","updated_at":"2020-01-13T16:30:10Z","closed_at":null,"author_association":"NONE","body":"Im using this snippet to use individual document roots for my subdomains can anyone add that to [the u7 manual](https://manual.uberspace.de/web-documentroot.html).\r\n\r\nFor example we have these domains added to our uberspace:\r\n`uberspace.de`\r\n`blog.uberspace.de`\r\n`cloud.uberspace.de`\r\n\r\neach of these subdomains has its own folder(Document root):\r\n`uberspace.de` = `/var/www/virtual/$user/html/` (root domain)\r\n`blog.uberspace.de` = `/var/www/virtual/$user/blog.uberspace.de/`\r\n`cloud.uberspace.de` = `/var/www/virtual/$user/cloud.uberspace.de/`\r\n\r\nTo set the document roots accordently to the subdomains you need to add a .htacces in  `/var/www/virtual/$user/html/.htaccess` with the following content:\r\n\r\n```\r\nRewriteBase /\r\n\r\nRewriteEngine on\r\nRewriteCond %{HTTP_HOST} ^(.*)\\.domain\\.de\r\nRewriteRule ^(.*)$ subdomains/%1/$1 [L,NC,QSA]\r\n```"},"comment":{"url":"https://api.github.com/repos/Uberspace/manual/issues/comments/573750491","html_url":"https://github.com/Uberspace/manual/issues/102#issuecomment-573750491","issue_url":"https://api.github.com/repos/Uberspace/manual/issues/102","id":573750491,"node_id":"MDEyOklzc3VlQ29tbWVudDU3Mzc1MDQ5MQ==","user":{"login":"Spacelord09","id":26622202,"node_id":"MDQ6VXNlcjI2NjIyMjAy","avatar_url":"https://avatars1.githubusercontent.com/u/26622202?v=4","gravatar_id":"","url":"https://api.github.com/users/Spacelord09","html_url":"https://github.com/Spacelord09","followers_url":"https://api.github.com/users/Spacelord09/followers","following_url":"https://api.github.com/users/Spacelord09/following{/other_user}","gists_url":"https://api.github.com/users/Spacelord09/gists{/gist_id}","starred_url":"https://api.github.com/users/Spacelord09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Spacelord09/subscriptions","organizations_url":"https://api.github.com/users/Spacelord09/orgs","repos_url":"https://api.github.com/users/Spacelord09/repos","events_url":"https://api.github.com/users/Spacelord09/events{/privacy}","received_events_url":"https://api.github.com/users/Spacelord09/received_events","type":"User","site_admin":false},"created_at":"2020-01-13T16:30:10Z","updated_at":"2020-01-13T16:30:10Z","author_association":"NONE","body":"ok? for me not?"}}
{"actor":{"display_login":"Spacelord09"}}