Posts

Showing posts with the label Kohana 3

Apache Server Ignores .htaccess

Answer : <Directory "/home/page_url/www/"> AllowOverride None This AllowOverride None disables .htaccess files from being read. See the manual. Also, please bear in mind that there's nothing magical about .htaccess files. They are a crude workaround for not having full access to the server configuration. All they are is a piece of Apache configuration. If you have full access to the server configuration, you should be putting stuff like this into the vhost configuration, not .htaccess files. As Jim said, if you have full access to your server, you should just put everything in the server configuration files. I reached here because I thought my server was ignoring my own htaccess/server configuration files. However, it turned out I had mod_expires and mod_rewrite disabled. After I had those two looked into, everything was working again as it should. You can enable them by executing these commands: sudo a2enmod expires sudo a2enmod rewrite ...

Client Denied By Server Configuration

Answer : In my case, I modified directory tag. From <Directory "D:/Devel/matysart/matysart_dev1"> Allow from all Order Deny,Allow </Directory> To <Directory "D:/Devel/matysart/matysart_dev1"> Require local </Directory> And it seriously worked. It's seems changed with Apache 2.4.2. For me the following worked which is copied from example in /etc/apache2/apache2.conf : <Directory /srv/www/default> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> Require all granted option is the solution for the first problem example in wiki.apache.org page dedicated for this issue for Apache version 2.4+. More details about Require option can be found on official apache page for mod_authz module and on this page too. Namely: Require all granted -> Access is allowed unconditionally. The error "client denied by server configuration" generally means that s...