Sunday, September 28, 2008

Re: controller/view not found (probably apache config problem)

I met this problem. Because the version of Apache is lower than 2,  .htaccess file has no effect.
This problem was solved when I added  RewriteBase  to .htaccess file. So, you can try it ...


On Mon, Sep 29, 2008 at 2:51 AM, paragjagdale <paragjagdale@gmail.com> wrote:

Hi,
for me this works:
http://www.myserver.com/~myusername/ae/app/webroot/index.php?pages/display/home

but this does not:
http://www.myserver.com/~myusername/ae/app/pages/display/home

thus none of my controllers work.. the error message I get is:

Not Found

The requested URL /home/users/myusername/public_html/ae/app/webroot/
index.php was not found on this server.


The apache error.log says: File does not exist: /var/www/home
thats my DocumentRoot

My apache config:
       DocumentRoot /var/www/
       UserDir public_html

       <Directory />
               Options FollowSymLinks
               AllowOverride All
       </Directory>
       <Directory /var/www/>
               Options Indexes FollowSymLinks MultiViews
               AllowOverride None
               Order allow,deny
               allow from all
               # This directive allows us to have apache2's default
start page
               # in /apache2-default/, but still have / go to the
right place
               RedirectMatch ^/$ /apache2-default/
       </Directory>

       <Directory /home/users/*/public_html>
               Options Indexes FollowSymLinks MultiViews
               AllowOverride All
               Order allow,deny
               allow from all
               # This directive allows us to have apache2's default
start page
               # in /apache2-default/, but still have / go to the
right place
               #RedirectMatch ^/$ /apache2-default/
       </Directory>


Thanks




--~--~---------~--~----~------------~-------~--~----~
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: