Re: Apache configuration
Trainling slash isn't the problem. Looking at apache's error_log it seems the request to 192.168.4.6/prova/users ir redirected to the document root and from there to /var/www etc... But I found a way out: I created a virtual host listening on port 81 with the document root set to /var/www/app/webroot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Apache configuration
Yes mod_rewrite is loaded and i correctly working. I made a little change in alias directive: Alias /prova /var/www/app/webroot Directory /var/www/app/webroot AllowOverride All /Diretory But the result is always the same when I type http://192.168.4.6/prova/users [404 error saying: the request URL /var/www/app/webroot/index.php was not found on this server]... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Apache configuration
Did you try adding a trailing slash to your URL? Could be trailing slash problem. On 1/6/07, ms [EMAIL PROTECTED] wrote: Yes mod_rewrite is loaded and i correctly working. I made a little change in alias directive: Alias /prova /var/www/app/webroot Directory /var/www/app/webroot AllowOverride All /Diretory But the result is always the same when I type http://192.168.4.6/prova/users [404 error saying: the request URL /var/www/app/webroot/index.php was not found on this server]... -- _nimrod_a_abing_ [?] http://abing.gotdns.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Apache configuration
On 1/5/07, ms [EMAIL PROTECTED] wrote: The situztion is this: apache webserver have the DocumentRoot set to /usr/local/htdocs; I want to install CakePHP but not in the document root, so I created an alias like Alias /prova /var/www and then for that directory AllowOverride All. I copied all CakePHP files inside /var/www so that I have /var/www/app, /var/www/config and so on. With this situation, if I use http://192.168.4.6/prova I see the home page of Cake. Second step I started creating the skeleton of an User auth system with the controller under /var/www/app/controllers, the model under /var/www/app/models and the view under /var/www/views/users. When I user http://192.168.4.6/prova/users I have a 404 error message (the url /var/www/app was not found on this server). Where I'm wrong? Check that you have mod_rewrite enabled. Make sure that you have something like: LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so Of course the directory that contains your mod_rewrite.so might be different in your setup. HTH. -- _nimrod_a_abing_ [?] http://abing.gotdns.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---