.htaccess: Fundementals
Hello All,
I've come for more help with the fundementals. Obvious, it has to do with .htaccess this time. I have a folder that's being accessed by httpd /home/domain/public_html. When I make /home/domain/public_html/.htaccess with the following directive I receive "403 Forbidden." Order deny,allow Allow from 192.168.2.0/255.255.255.240 Deny from all Permissions on the file, if they matter, are as follows: -rw-r--r-- 1 user user 70 Jul 30 23:53 .htaccess SELinux permissions: -rw-r--r-- user user user_u:object_r:httpd_sys_content_t .htaccess (FC6 server) Does anyone have any clues as to why this would work? Before you suggest that I should be using httpd.conf file to set these permissions, I want you to know that I'm configuring it from a virtual server. Thank you for your time. |
Besides the file context have you set the SELinux boolean to allow access to files in home directories?
setsebool -P httpd_enable_homedirs on |
Also, do you have an AllowOverride configured for the directory in httpd.conf? Without that, the .htaccess file is ignored.
|
Thank you for your responses macemoneta. I temporarily disables SELinux protection and I received the same error. And as for AllowOverride, that was set.
<VirtualHost 192.168.2.2:80> SuexecUserGroup "#502" "#503" ServerName domain.com ServerAlias www.domain.com DocumentRoot /home/domain/public_html ErrorLog /home/domain/logs/error_log CustomLog /home/domain/logs/access_log combined ScriptAlias /cgi-bin/ /home/domain/cgi-bin/ DirectoryIndex index.html index.htm index.php index.php4 index.php5 <Directory /home/domain/public_html> Options Indexes IncludesNOEXEC FollowSymLinks allow from all AllowOverride All </Directory> <Directory /home/domain/cgi-bin> allow from all </Directory> <Location /svn> DAV svn SVNParentPath /home/domain/svn AuthType Basic AuthName domain.com AuthUserFile /home/domain/etc/svn.basic.passwd Require valid-user AuthzSVNAccessFile /home/domain/etc/svn-access.conf Satisfy Any </Location> </VirtualHost> |
All times are GMT -5. The time now is 11:12 PM. |