CodeIgniter Forums
CMS with Apache Virtual Directory - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: CMS with Apache Virtual Directory (/showthread.php?tid=38484)



CMS with Apache Virtual Directory - El Forum - 02-09-2011

[eluser]Davide Bellini[/eluser]
Hi guys!!
I would protect and share my CMS code (backend and frontend engine) with several domains on linux web server ... my idea is this :

Website root (for example "www.domain.com"):
- config/
- db_conf.php (database config)
- contents/
- uploads/
- templates/ (using template engine system like Smarty)
- index.php


CMS source (in Apache virtual directory with name "webapp")
- application/ (CI Application)
- config/
- controllers/
- admin/
- dashboard.php
- page.php
- ...
- system/ (CI Framework)
- engine.php (CI App Config - $system_path, $application_folder, ...)


When I try to access to :
"www.domain.com" run "engine.php" in Virtual Directory and show the frontend

while

"www.domain.com/admin" run "engine.php" and with a routing, access to backend (controllers/admin/dashboard.php)


In "index.php" file in Website Root I wrote :
Code:
<?php virtual('/webapp/engine.php'); ?>


This is the correct way to implement my idea??
Any suggestion?


CMS with Apache Virtual Directory - El Forum - 03-20-2011

[eluser]Sara Martin[/eluser]
Sometimes CMS code are very complicated and difficult to understand.But you are providing in a very simple way.