Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B348310101 for ; Thu, 26 Dec 2013 05:22:09 +0000 (UTC) Received: (qmail 90188 invoked by uid 500); 26 Dec 2013 05:21:59 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 90163 invoked by uid 500); 26 Dec 2013 05:21:58 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 90148 invoked by uid 99); 26 Dec 2013 05:21:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Dec 2013 05:21:57 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yehuda@ymkatz.net designates 209.85.161.170 as permitted sender) Received: from [209.85.161.170] (HELO mail-gg0-f170.google.com) (209.85.161.170) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Dec 2013 05:21:53 +0000 Received: by mail-gg0-f170.google.com with SMTP id 24so1642589gge.15 for ; Wed, 25 Dec 2013 21:21:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:dkim-signature:mime-version:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=h7yGdNNGKtSzMBqT7IttDlCfQ70k8Wg1h66LabP4r48=; b=XBlP59QhkRjMZ0vrcs2ihy1uH/oDAq3PjjsW6MBb/joRrNuQW26Ge/ekQPGfDbjUud XAc4gGL29pip5epQS8y4yr640ML/wILug+7qIp0lS0411CsNcPAbcV4Cy6+bV6q6v656 kbRAMWF3mpjKmiU+PXYLwdx2VpeF0bLkHh+VBucKDBTsRZyFg9fWc6wRekh4naipkozB ucCfEvKwfd1y+OdOC4SrEYG2dhBfkKE9h8MkGsUoqT2sBf6G3cPQMOp++BqWnSyHCZ+P IJWwQkenejwCgGDevCuUkNiqEHgkpUJsr7kMBmyNb/LkY6sDs/kzzhutZfqcJvmXslx8 C+tg== X-Gm-Message-State: ALoCoQkPi6rr0/aClNfQxiz0349VuQarD6387DGDbxorv5/vLim160Om1Vnm3uGPz8tca86O5Bw3 X-Received: by 10.236.50.194 with SMTP id z42mr28194452yhb.18.1388035292280; Wed, 25 Dec 2013 21:21:32 -0800 (PST) Received: from mail-ie0-x22d.google.com (mail-ie0-x22d.google.com [2607:f8b0:4001:c03::22d]) by mx.google.com with ESMTPSA id n48sm39844520yho.24.2013.12.25.21.21.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 25 Dec 2013 21:21:31 -0800 (PST) Received: by mail-ie0-f173.google.com with SMTP id to1so8360806ieb.32 for ; Wed, 25 Dec 2013 21:21:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymkatz.net; s=g; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=h7yGdNNGKtSzMBqT7IttDlCfQ70k8Wg1h66LabP4r48=; b=LmfiS7liZY3i5S7IyFmrwQ/OCXSfJJFZqlby5m+3BIE2OYXqDZamCFoW/5trhxrgN6 ZnDkKVJZk5bkyzmlL3njaWpRvI040iWJOiWLkvKQx+jZ5mEj7lR+cntcGQaNiZY03dc6 e1vulQMxWaJE80vl5ZVswxwp75ieOBKVnsjfw= X-Received: by 10.50.98.36 with SMTP id ef4mr29394666igb.24.1388035291448; Wed, 25 Dec 2013 21:21:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.46.68 with HTTP; Wed, 25 Dec 2013 21:21:11 -0800 (PST) In-Reply-To: References: From: Yehuda Katz Date: Thu, 26 Dec 2013 00:21:11 -0500 Message-ID: To: "users@httpd.apache.org" Content-Type: multipart/alternative; boundary=047d7b2e14f37b993904ee692623 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] always says "Forbidden", what's the matter? --047d7b2e14f37b993904ee692623 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable That is 2.2 syntax. The 2.4 syntax is different ( http://httpd.apache.org/docs/2.4/upgrading.html) which i why I suggested copying the existing config. On Thu, Dec 26, 2013 at 12:17 AM, sdfasdgfvewrgvwargvt wadawdawd < lf2hunter@gmail.com> wrote: > Maybe this will work: > > > Order allow, deny > Allow from all > > > > On Thu, Dec 26, 2013 at 1:07 PM, Heng Zhou 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 t= his >> simple log. >> >> >> On Wed, Dec 25, 2013 at 11:22 PM, Yehuda Katz wrote: >> >>> Did you check the error log? It should tell you exactly what the proble= m >>> is. >>> >>> - Y >>> >>> >>> On Wed, Dec 25, 2013 at 10:43 PM, Heng Zhou wrote: >>> >>>> Hi, >>>> >>>> I'm using Apache 2.4.6 on Ubuntu, I have a html file hello.html locate= d >>>> in the /var/www. When I type in http://localhost/hello.htmland 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 che= cked >>>> everything and can not understand why it doesn't work. Could you pleas= e >>>> help me with this problem? Thank you. >>>> >>> >>> >> > --047d7b2e14f37b993904ee692623 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
That is 2.2 syntax. The 2.4 syntax is different (http://httpd.apache.or= g/docs/2.4/upgrading.html) which i why I suggested copying the existing= config.


On Thu, Dec 2= 6, 2013 at 12:17 AM, sdfasdgfvewrgvwargvt wadawdawd <<= a href=3D"mailto:lf2hunter@gmail.com" target=3D"_blank">lf2hunter@gmail.com= > wrote:
Maybe this will work:
<= br>
<Directory "/home/zh/workspace/">
O= rder allow, deny
Allow from all
</Directory>


On Thu, Dec 26, 2013 at 1:07 PM, Heng Zh= ou <hzhou1@cs.uml.edu> wrote:
Yes, I checked, the log only says:"client denied by s= erver 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 Kat= z <yehuda@ymkatz.net> wrote:
Did you check the error log? It should tell you exactly wh= at the problem is.

- Y


On Wed, Dec 25, 2013 at 10:43 PM, Heng Z= hou <hzhou1@cs.uml.edu> wrote:
Hi,

I'= ;m using Apache 2.4.6 on Ubuntu, I have a html file hello.html located in t= he /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 th= is 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.=




--047d7b2e14f37b993904ee692623--