Re: always says "Forbidden", what's the matter?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes, it all works! Thank you very much for your help!

PS: The <Directory> section for Apache 2.4 is:
<Directory /home/zh/workspace/testhtml/>
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>


On Thu, Dec 26, 2013 at 12:17 AM, Yehuda Katz <yehuda@xxxxxxxxxx> wrote:
Based on that error, the server is using /home/zh/workspace/testhtml/ as the document root and not /var/www.
If you allow Apache to access /home/zh/workspace/testhtml/ or change the document root, it should work fine.
The easiest way is probably to find the config section that starts with something like <Directory /var/www and copy it with /home/zh/workspace/testhtml/ instead.

- Y


On Thu, Dec 26, 2013 at 12:07 AM, Heng Zhou <hzhou1@xxxxxxxxxx> wrote:
Yes, I checked, the log only says:"client denied by server configuration: /home/zh/workspace/testhtml/hello.html". I could not get any idea from this simple log.


On Wed, Dec 25, 2013 at 11:22 PM, Yehuda Katz <yehuda@xxxxxxxxxx> wrote:
Did you check the error log? It should tell you exactly what the problem is.

- Y


On Wed, Dec 25, 2013 at 10:43 PM, Heng Zhou <hzhou1@xxxxxxxxxx> wrote:
Hi,

I'm using Apache 2.4.6 on Ubuntu, I have a html file hello.html located in the /var/www. When I type in http://localhost/hello.html and press return in the browser, I was always told "Forbidden, You don't have permission to access /hello.html on this server.". But I have checked everything and can not understand why it doesn't work. Could you please help me with this problem? Thank you.





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux