제목 | CI 멀티 사이트 설정하기.. | ||
---|---|---|---|
글쓴이 | 듬직이 | 작성시각 | 2009/08/30 17:39:42 |
|
|||
주소 : http://www.askaboutphp.com/tutorials/88/codeigniter-setting-up-multiple-sites-on-one-install.html 좀 성의 없어 보일려나요 ^^;; 좋은 자료 같아서 원문을 옮겨 봅니다. 요약 하자면, 아파치의 virtual host를 사용해서 http://dev.ci/와 http://live.ci/를 나눠서 사용하는 방법입니다. 여러개의 사이트를 운영하거나 테스트용 사이트를 운영할려고 하면 도움이 될 것 같습니다. 그림이 워낙 잘 되어 있어서 그냥.. 그림만 보고 따라해도 될 정도네요 6^^ It’s been awhile since I last posted about Codeigniter. In this post, I’m going to walkthrough how I setup a CI install that can support multiple sites. This is by no means the only way to do it, but it’s what works for me. CI’s default folder structure is really geared towards one site domain, and having both the By configuring your install to support multiple sites, not only do you make the updating of the CI core easier, but also make the CI install more secure as a whole. So without delay, let’s get started…
In this walkthrough, I’m setting up my multiple CI sites on my local XAMPP install, which is on my I’m planning to setup two sites just for illustration – Codeigniter default folder structure You would have set your Apache’s configuration to point to your CI folder (which is If you have setup the default CI before, you may know that within the Adjusting the application folders Since I’m setting up to run two distinct sites sharing the same CI core, I will make another copy of the Create the web root folders Make copies of the Open Configure Apache virtual hosts My Apache virtual host configuration looks like this: Don’t forget to edit your local hosts file so that your system recognizes the dev.ci and live.ci domains. Once you fire up your Apache web server, you should be able to load either site accordingly (*fingers crossed*) Renaming the Conclusion Of course, this is not the only way you can configure CI for multiple sites/applications, check out some of these alternatives: Please feel free to give your thoughts and feedback. Thanks! |
|||
태그 | ci | ||
다음글 | 제가 초보라서 그럽니다. (2) | ||
이전글 | 첫글이닷.. (3) | ||
행복충만
/
2009/08/31 14:36:03 /
추천
0
|
번역해 주신다면.. 추천...꾸욱~~