I'm running CentOS 4.4, Apache 2.0
I'm learning Apache from a self-taught LinuxCBT course and followed along perfectly (I think) and am stuck.
The point of this lesson was to show what this use can do with .htaccess.
This entry was in httpd.conf and everything was working fine in terms of being able to access http://192.168.1.111/personal/index.html
Alias /personal/ "/var/www/html/personal/"
Deny from all
Allow from 127.0.0.1 192.168.1
The next part of my course said to remove the above entry from httpd.conf, and paste it into an .htaccess at /var/www/html/personal
I did that, but then I was getting Internal Server Errors. The error logs show:
[Sun Feb 18 16:35:44 2007] [alert] [client 192.168.1.101] /var/www/html/personal/.htaccess: Alias not allowed here
I removed the Alias directive and put that back into httpd.conf file and restarted apache and tried it again and this time got:
[Sun Feb 18 16:47:34 2007] [alert] [client 192.168.1.101] /var/www/html/personal/.htaccess: <Directory not allowed here
Previously, I did as the course said to do, which was to locate the entry in httpd.conf relating to:
and change 'AllowOverride None' to 'AllowOverride ALL'
As far as I can tell I've done everything I was supposed to, but I'm getting this error and I don't know what else to try.
I do have SELinux installed in case that is relavent.
Below are the relavent entries from my httpd.conf file.
Please let me know if you have any ideas of what I can change or do to get this working.
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
# The Options directive is both complicated and important. Please see
# for more information.
Options Indexes FollowSymLinks
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
# AllowOverride None
# updated to permit non-privilaged user darkeone to manage site
# Controls who can get stuff from this server.
Allow from all
Any advice would be much appreciated.
Thanks in advance,