Hi Fumito,

Indeed, this is a case not being managed and your solution seems perfect.
Do you make a PR on Dubrovka branch or do you want that we do that ourselves?
Par Gilles FELIX , 14 avril 2014 ·
Hello, FIlles,

I made a Pull Request
https://github.com/novius-os/core/pull/94
Par Fumito MIZUNO , 15 avril 2014 ·
Merged !

Thank you Fumito !
Par Gilles FELIX , 15 avril 2014 ·
À
    ou Annuler
DOCROOT changeable
Par Fumito MIZUNO , 14 avril 2014
À

In novius-os/framework/bootstrap.php #L26, DOCROOT is fixed.

define('DOCROOT', NOSROOT.'public'.DIRECTORY_SEPARATOR);

https://github.com/novius-os/core/blob/master/dubrovka/framework/bootstrap.php#L26

 

In some servers, the folder of webroot is fixed (public, public_html, htdocs, etc.) I mean "fixed" is "Users(not root) of the server cannot change it." It works if I change the #L26, as shown below.

 

define('DOCROOT', NOSROOT.'public_html'.DIRECTORY_SEPARATOR);

 

I think the code below is better. 

 

define('PUBLIC_DIR', 'public');

define('DOCROOT', NOSROOT.PUBLIC_DIR.DIRECTORY_SEPARATOR);