Alias /hc/ "/home/bitnami/hanchuan/htdoc" Alias /hc "/home/bitnami/hanchuan/htdoc"AllowOverride None Order allow,deny Allow from all
Visit http://alangs.info/hc or http://alangs.info/hc/index.php
They all reported the error of not having permission to access.
In fact, /home/bitnami/hanchuan/htdoc/index.php exists.
Where is the error?
The problem is solved.
Put: Order allow,deny
Change to: Order deny,allow
You can access it.
The strange thing is that other directories can be accessed without writing them like this.
@alang You should also start with the logs. You have already said that you have read the logs, but have you adjusted the LogLevel? The default level may not be enough.
-------------------------------------------------
Order order see:
I saw this sentence in the manual:
Put
Try removing it?
chmod 755 /home/bitnami/hanchuan/htdoc Try it, it may be that this directory does not have read and write permissions for other users
ls -l Check the properties and permissions of /home/bitnami/hanchuan/htdoc, and check the group and owner, because there may be problems in the home directory!
Please see the error.log for these problems, it will tell you everything
Check if it’s a problem with selinux and fix it
Try again
Problem solved.
Put: Order allow, deny
Change to: Order deny,allow
You can access it.
The strange thing is that other directories can be accessed without writing them in this way.