I scanned my site from the New Magento Security Tool available from magento partner portal.
The report showed me a vulnerability issue
Your Web server is configured to run Magento from %MAGENTO_ROOT% directory. It is recommended to set %MAGENTO_ROOT%/pub as a Web server root directory.
The Magento installation is a multi-website with let's say 4 websites. When I set for example the document root of website 3 to /foo/bar/domain.website3/public/pub
and after that navigate to the domain of website 3. Website 1 is shown, because the index.php which gets loaded is in the pub directory of the magento root installation. That means every domain will show the same website, because the index.php in the pub directory is static.
How can I setup my multi-website installation to use the pub directory as DocumentRoot?