Saturday, 15 September 2012

apache - Can't find controller directory -


I am trying to create a zoomed app on my Apache web server and instead of public folder for my index.php The httpdocs folder is used. When I try to use the controller / action, it always sees the httpdocs directory for the auth file. But when my controller is located in the application / controller, it will throw an error (I have already set up the controller directory in application.ini.)

However when I get the public name from httpdocs Changed and definitely updated my vhost.conf file, so it works. Therefore there should be some setting that should be set.

Now, I tried the same project and code in my lighttpd server and it is also working there

Is there a setting / config that should be set up in Apache server ?

Any feedback will be highly appreciated!

Thank you in advance

My answer was found

 < Code> Rewrite code on rewriting% {REQUEST_FILENAME} -s [OR] Rewind condom% {REQUEST_FILENAME} -l [OR] reviscant% {REQUEST_FILENAME} -d Records rules ^. * $ - [NC, L] Rewrite rules ^. * $ Index.php [NC, L]   

I should just rewrite the .htaccess file under the httpdocs directory.

No comments:

Post a Comment