Thursday, December 3, 2009

Re: apache setting for directory + alias

mod rewrite usually works on the same server, but without the
directory stuff though

so i tried
http://IP/app/index.php?url=controller/action
and it works

so somehow the directory configuration loses the mod_rewrite on all
pages other than the root url (app/)...

On 4 Dez., 00:59, euromark <dereurom...@googlemail.com> wrote:
>     Alias /app "/var/www/work/pages/app/webroot/"
>         <Directory /var/www/work/pages/app/webroot/>
>         Options Indexes MultiViews FollowSymLinks
>
>         RewriteEngine On
>
>         RewriteCond %{REQUEST_FILENAME} !-d
>         RewriteCond %{REQUEST_FILENAME} !-f
>         RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
>
>     </Directory>
>
> is not working properly
>
> i can access
> -http://IP/app
> -http://IP/app/
>
> and the /webroot/download/ (and /css, /js) folders directly are
> visible, too
> but all controllers+actions are resulting in the following error:
>
> "The requested URL /var/www/work/pages/app/webroot/index.php was not
> found on this server."

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: