Version 4.2
As subject. Should Apache be set up as…
DocumentRoot /var/www/html/silverstripe/public
or
DocumentRoot /var/www/html/silverstripe
Version 4.2
As subject. Should Apache be set up as…
DocumentRoot /var/www/html/silverstripe/public
or
DocumentRoot /var/www/html/silverstripe
The first one. Set the document root as public
That’s what I thought… but the docs don’t say that. Well… not that I could see.
Anyway, thanks for confirming
there is no problem to set it to install folder, as there is a .htaccess in install folder to deal with the situation:
RewriteEngine On
RewriteRule ^(.*)$ public/$1
Perfectly happy to set it to /public but the install instructions are not explicit on the matter. Thought I’d check.
Whilst there’s no problem, there are advantages to running the public webroot, in particular it places the php scripts and template files, etc. out of a publicly accessible location, greatly reducing the opportunity for nefarious operators to find exploits.