changing docroot to pub magento
-
This question has been bugging me for a while.How do you achieve this in cwp for the nginx, varnish, apache-php-fpm configuration?
The magento docs says to edit apache vhost and configure nginx vhost to include its sample nginx.
I can access my files in the root directory from the browser which I beleive is a security risk.
Cheers.
-
@legend are you using nginx + apache for the magento website then you don't need to do anyhting in nginx when using apache
-
@sandeep I am using this configuration:
Nginx + Varnish + Apache PHP-FPM Performance -
@legend then you don't need to configure nginx as Apache is the main webserver here and nginx is just a proxy server.