Sorry should have mentioned this is a shared hosting environment (nearlyfreespeech.net) so changing the /home directory is not possible (ie. I only have /protected and /public) so I can't add any new folders there or modify the apache config, I can obviously use .htaccess though.
On Jun 17, 9:41 pm, euromark <[email protected]> wrote: > wouldnt it be easier to properly set em up? > at least if you're actually configurating your apache config files > > /home > /home/cake > /home/vendors > /home/app1 > /home/app2 > > where as ALL those folders are still protected and "under the surface" > only /home/app[0|1]/webroot is public > > therefore no changes have to be made to any index.php or .htaccess > files > and you could use several domains or subdomains. > > On 17 Jun., 16:59, Felix <[email protected]> wrote: > > > > > Hi, > > > I new to cake and trying to install it using the advanced installation > > so only have one copy of the 'cake' directory to use for all my > > projects. > > > The directory structure I use is: > > > /home > > /protected (- location of '/cake' directory) > > /public (- where all public content lives) > > /help.felixfennell.co.uk > > /app > > {STANDARD APP FOLDERS} > > /webroot > > {STANDARD WEBROOT STUFF} > > -index.php > > -.htaccess > > -index.php > > -.htaccess > > -index.php > > -.htaccess > > /www.felixfennell.co.uk > > /{STATIC CONTENT} > > > The protected directory is accessible only to the webserver and not to > > the outside world. > > > The public directory contains a folder for each domain and uses > > a .htaccess file to redirect the request to the correct folder as > > listed by my webhost's wiki: > > > RewriteEngine on > > RewriteCond %{ENV:REDIRECT_ENTEREDSITE} !=1 > > RewriteCond %{ENV:REDIRECT_REDIRECT_ENTEREDSITE} !=1 > > RewriteRule ^.*$ %{HTTP_HOST}/$0 [env=ENTEREDSITE:1] [last] > > > The redirect works fine as does setting the location of '/cake' folder > > to the protected folder: > > > /** > > * The absolute path to the "cake" directory, WITHOUT a trailing DS. > > * > > */ > > if (!defined('CAKE_CORE_INCLUDE_PATH')) { > > define('CAKE_CORE_INCLUDE_PATH', $_SERVER['NFSN_SITE_ROOT'] > > . > > DS.'protected'); > > } > > > However what I CAN NOT set directly is the location of the webroot > > folder. > > > It is currently located at: (/home/public/help.felixfennell.co.uk/) > > app/webroot (indicates not visible in URL) > > > When viewing the default installation page the CSS file is trying to > > be got > > from:http://help.felixfennell.co.uk/help.felixfennell.co.uk/app/webroot/cs... > > for example to get the css file of the installation page. > > > This is clearly wrong and should just > > be:http://help.felixfennell.co.uk/css/cake.generic.css > > > What I can't work out is how to change this, I have tried setting both > > WWW_ROOT and WWWROOT_DIR but whatever change I make doesn't seem to > > have any effect to the URL the page generates. > > > What must I set to make this work as it should? > > > My current index.php (the webroot one) is located > > here:http://snipt.net/fenfe1/webroot-of-cakephp > > > Sorry for such a long post but I wanted to be as clear as possible! > > > Thanks, Felix Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
