kenjis / codeigniter-composer-installer

Installs the offical CodeIgniter 3 with secure folder structure via Composer
MIT License
377 stars 118 forks source link

Specify hostname and document root. #34

Closed indrakaw closed 6 years ago

indrakaw commented 6 years ago

Specify hostname and document root are passed via args. e.g.

bin/server.sh 0.0.0.0:8001 ./

To serve 0.0.0.0:8001 and ./ (project root) for document root.

indrakaw commented 6 years ago

Before merge it, I have a question. Is there a way to bypass env variable into $_SERVER? I read this: https://www.codeigniter.com/user_guide/general/environments.html#the-environment-constant

That server variable config using SetEnv on Apache .htaccess.

kenjis commented 6 years ago

Is there a way to bypass env variable into $_SERVER?

What do you want to do?

See http://php.net/manual/en/ini.core.php#ini.variables-order.