Is that possible sharing one webroot for multiple cakephp app? -
i have 2 php applications. 1 main , 1 admin app. admin upload contents on folder , other app can fetch it. problem files stored in folder like:
/home/user/files/...
and must fetched both of application.
to simplify admin can upload file /home/user/files/ , can see /home/user/files/ , applications stay on /var/html/..
can done without symbolic links?
i suggest use virtualhosts configuration(example). can keep data in folder changing documentroot
<virtualhost *:80> documentroot /folder/whatever/you/want servername www.subdomain.example.com # other directives here might want allow single ip admin user options indexes multiviews followsymlinks allowoverride none order deny,allow deny allow your_ip </virtualhost>
www.subdomain.example.com serve files uploaded(by admin app) in webroot(via http). can change upload point of cakcphp application bootstrap uploads variable.
try way or admin routing usual method.
Comments
Post a Comment