CodeIgniter Forums
Separating the main "/system" folder out of WWW root for multiple web apps? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Separating the main "/system" folder out of WWW root for multiple web apps? (/thread-11111.html)



Separating the main "/system" folder out of WWW root for multiple web apps? - El Forum - 08-26-2008

[eluser]taewoo[/eluser]
Hi all.
I have multiple web applications (that do totally different, unrelated things) written in CI. It seems to me the main CI "plumbing" should be removed from the WWW root since this stuff doesn't change (unless official versions of CI are released in which case update is done - but this occurs rarely).

Is there a "clean" way to host multiple applications using one CI copy/instance on my web server?


Separating the main "/system" folder out of WWW root for multiple web apps? - El Forum - 08-26-2008

[eluser]ehicks727[/eluser]
http://codeigniter.com/wiki/Multiple_Applications/


Separating the main "/system" folder out of WWW root for multiple web apps? - El Forum - 08-26-2008

[eluser]fesweb[/eluser]
I do it this way:
Code:
* the public url
/myapp/

* the actual application
/code/ciapps/myapp/

* the system folder
/code/CI_1.6.3/mysystemfolder/
This allows me to:
1. easily upgrade and downgrade any application independently from the others, in case something doesn't work with newer version of CI.
2. run variants of the same application at two different public urls (ex: "/myapp2/" could point to the same app).


Separating the main "/system" folder out of WWW root for multiple web apps? - El Forum - 08-26-2008

[eluser]taewoo[/eluser]
sweet. thanks guys