Specific problem with links in index file which point to Contao web site
Hi everybody,
I have specific situation.
On my main domain, I have just index file with basic HTML code and two links to two Web sites. One of them is new Contao 4.7 installation.
Therefore, my main domain are point to main root folder: maindoman.com/ , and my link to Contao web site: maindoman.com/contaowebsite1/web
PHP version of the main domain is 7.2, and everything look normal, but I always received ERROR 500.
Log file showed next message:
Code:
[2019-07-17 08:20:41] request.CRITICAL: Uncaught PHP Exception Contao\CoreBundle\Exception\InternalServerErrorHttpException: "Your installation is not secure. Please set the document root to the /web subfolder." at /www/htdocs/#############/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php line 110 {"exception":"[object] (Contao\\CoreBundle\\Exception\\InternalServerErrorHttpException(code: 0): Your installation is not secure. Please set the document root to the /web subfolder. at /www/htdocs/#############/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php:110, Contao\\CoreBundle\\Exception\\InsecureInstallationException(code: 0): Your installation is not secure. Please set the document root to the /web subfolder. at /www/htdocs/#############/vendor/contao/core-bundle/src/EventListener/InsecureInstallationListener.php:39, Contao\\CoreBundle\\Exception\\InternalServerErrorHttpException(code: 0): Your installation is not secure. Please set the document root to the /web subfolder. at /www/htdocs/#############/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php:110, Contao\\CoreBundle\\Exception\\InsecureInstallationException(code: 0): Your installation is not secure. Please set the document root to the /web subfolder. at /www/htdocs/#############/vendor/contao/core-bundle/src/EventListener/InsecureInstallationListener.php:39)"} []
[2019-07-17 08:20:41] request.CRITICAL: Exception thrown when handling an exception (Contao\CoreBundle\Exception\InsecureInstallationException: Your installation is not secure. Please set the document root to the /web subfolder. at /www/htdocs/#############/vendor/contao/core-bundle/src/EventListener/InsecureInstallationListener.php line 39) {"exception":"[object] (Contao\\CoreBundle\\Exception\\InsecureInstallationException(code: 0): Your installation is not secure. Please set the document root to the /web subfolder. at /www/htdocs/#############/vendor/contao/core-bundle/src/EventListener/InsecureInstallationListener.php:39)"} []
What i do wrong, I am a bit confused?
Thanks for suggestions