Welcome Guest, Not a member yet? Register   Sign In
CMS with Apache Virtual Directory
#1

[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?
#2

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




Theme © iAndrew 2016 - Forum software by © MyBB