1 app 1 mysql, 1 ci + many domains. is it possible? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: 1 app 1 mysql, 1 ci + many domains. is it possible? (/showthread.php?tid=37499) |
1 app 1 mysql, 1 ci + many domains. is it possible? - El Forum - 01-11-2011 [eluser]srpurdy[/eluser] Title sort of explains it. I want to be able to do 1 ci install. (that's not a problem) than have 1 application that runs. Where files can be uploaded etc. and lastly it will run off a single db. Than for example I can have simply an index.php that remotely uses this application. So that it seems like for the most part it is they're website. So multiple domains accessing 1 app. The only difference is each site will display information specific to that site. So really want I want to be able to do I think is be able to change the base_url on the application. Dynamically. I guess the good question is can this really logistically be done. Say more than 1 request comes in at the same time. That might cause some issues. All of these would run off the same server of course. Any thoughts? Shawn 1 app 1 mysql, 1 ci + many domains. is it possible? - El Forum - 01-11-2011 [eluser]lennierb5[/eluser] I had a similar problem relating to CSRF.. The suggested fix was to change the base_url dynamically as you are looking to do. See a code example of how this would work here: http://ellislab.com/forums/viewthread/175117/#831552 1 app 1 mysql, 1 ci + many domains. is it possible? - El Forum - 01-14-2011 [eluser]srpurdy[/eluser] Thanks that helps. Does anyone know how I could read directory's above the directory index is located. I have a new vps and I'm having problems getting the vhost.conf to allow access to my application. :| I guess it's not really on topic. Thought I'd ask though. I had no problem doing this on my other server, but it wasn't a vps. Any ideas? 1 app 1 mysql, 1 ci + many domains. is it possible? - El Forum - 01-14-2011 [eluser]srpurdy[/eluser] nevermind was a config issue on the server. fixed it. |