{"action":"closed","issue":{"url":"https://api.github.com/repos/puphpet/puphpet/issues/1387","labels_url":"https://api.github.com/repos/puphpet/puphpet/issues/1387/labels{/name}","comments_url":"https://api.github.com/repos/puphpet/puphpet/issues/1387/comments","events_url":"https://api.github.com/repos/puphpet/puphpet/issues/1387/events","html_url":"https://github.com/puphpet/puphpet/issues/1387","id":58747811,"number":1387,"title":".htaccess ignored on ssl vhost if directory has another non-ssl vhost","user":{"login":"Norcoen","id":1840514,"avatar_url":"https://avatars.githubusercontent.com/u/1840514?v=3","gravatar_id":"","url":"https://api.github.com/users/Norcoen","html_url":"https://github.com/Norcoen","followers_url":"https://api.github.com/users/Norcoen/followers","following_url":"https://api.github.com/users/Norcoen/following{/other_user}","gists_url":"https://api.github.com/users/Norcoen/gists{/gist_id}","starred_url":"https://api.github.com/users/Norcoen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Norcoen/subscriptions","organizations_url":"https://api.github.com/users/Norcoen/orgs","repos_url":"https://api.github.com/users/Norcoen/repos","events_url":"https://api.github.com/users/Norcoen/events{/privacy}","received_events_url":"https://api.github.com/users/Norcoen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/puphpet/puphpet/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-24T14:45:06Z","updated_at":"2015-03-23T04:55:32Z","closed_at":"2015-03-23T04:55:32Z","body":"When using mod_rewrite (TYPO3 with realurl) it only works with the non-ssl adress (commenting out the redirect to test it).\r\n\r\nThis is because, when generating the site_enabled config for apache, the ssl-vhost ist missing the directory configuration part, especially the \"AllowOverride\":\r\n```\r\n<Directory \"/var/www/typo3\">\r\n    Options Indexes FollowSymlinks MultiViews\r\n    AllowOverride All\r\n    Order allow,deny\r\n    Allow from all\r\n</Directory>\r\n```\r\n\r\nPart of my config.yaml created by puphpet:\r\n```\r\napache:\r\n    install: '1'\r\n    settings:\r\n        user: www-data\r\n        group: www-data\r\n        default_vhost: true\r\n        manage_user: false\r\n        manage_group: false\r\n        sendfile: 0\r\n    modules:\r\n        - rewrite\r\n        - userdir\r\n        - vhost_alias\r\n        - ssl\r\n    vhosts:\r\n        frvus8ysbs9f:\r\n            servername: test.local\r\n            serveraliases:\r\n                - www.test.local\r\n            docroot: /var/www/typo3\r\n            port: '80'\r\n            setenv:\r\n                - 'APP_ENV dev'\r\n            directories:\r\n                cnu0mabsd5w6:\r\n                    provider: directory\r\n                    path: /var/www/typo3\r\n                    options:\r\n                        - Indexes\r\n                        - FollowSymlinks\r\n                        - MultiViews\r\n                    allow_override:\r\n                        - All\r\n                    require:\r\n                        - all\r\n                        - granted\r\n                    custom_fragment: ''\r\n            engine: php\r\n            custom_fragment: 'Redirect permanent / https://www.test.local/'\r\n            ssl: '0'\r\n            ssl_cert: ''\r\n            ssl_key: ''\r\n            ssl_chain: ''\r\n            ssl_certs_dir: ''\r\n        fnie9xilc508:\r\n            servername: test.local\r\n            serveraliases:\r\n                - www.test.local\r\n            docroot: /var/www/typo3\r\n            port: '443'\r\n            setenv:\r\n                - 'APP_ENV dev'\r\n            directories:\r\n                gorqeqqblyog:\r\n                    provider: directory\r\n                    path: ''\r\n                    options:\r\n                        - Indexes\r\n                        - FollowSymlinks\r\n                        - MultiViews\r\n                    allow_override:\r\n                        - All\r\n                    require:\r\n                        - all\r\n                        - granted\r\n                    custom_fragment: ''\r\n            engine: php\r\n            custom_fragment: ''\r\n            ssl: '1'\r\n            ssl_cert: ''\r\n            ssl_key: ''\r\n            ssl_chain: ''\r\n            ssl_certs_dir: ''\r\n    mod_pagespeed: 0\r\n```"}}