Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 43324 invoked from network); 26 Jan 2011 11:17:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Jan 2011 11:17:12 -0000 Received: (qmail 10556 invoked by uid 500); 26 Jan 2011 11:17:08 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 10275 invoked by uid 500); 26 Jan 2011 11:17:03 -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 10266 invoked by uid 99); 26 Jan 2011 11:17:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jan 2011 11:17:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of relicary@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qy0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jan 2011 11:16:54 +0000 Received: by qyl38 with SMTP id 38so5186531qyl.18 for ; Wed, 26 Jan 2011 03:16:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=9xkIUjXy/7kE11pvly/wHbNsJlXV5DjMcavIHtuYcTc=; b=mZrJk73iiDaU/LZiabcxw9FbyS7F/JeweL6EqNewQMWFiuVo517Tro7vvrYqNJxttU lm9IIfJnuXyXRjbC87aBgt/j5LAgAQI4KwnZ3WbNRmy3w1NiUocyAjRY9AfOc9qCNLlc /aBB4i9/KMhND9tWg8EAGFE3FOayeEdiXXt4s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=b45gkETqWDiYK20qodlw/ko2TMRtdyGPNs4lADzR//QndjjwwkQX9CnC2GDaFnEcTm 9Ha+KtCo1MPrK75KGnnpQg1u2eWMDw3i07qOMm873SWs208jZWu59aCQbkS9FcFM5Ep0 ty3vxuTUCZTBgVvh8/gnyaiq9sYuScFk5aqqA= MIME-Version: 1.0 Received: by 10.229.185.1 with SMTP id cm1mr308819qcb.81.1296040593096; Wed, 26 Jan 2011 03:16:33 -0800 (PST) Received: by 10.229.186.204 with HTTP; Wed, 26 Jan 2011 03:16:33 -0800 (PST) Date: Wed, 26 Jan 2011 12:16:33 +0100 Message-ID: From: =?ISO-8859-1?Q?Juan_Jes=FAs_Cremades_Monserrat?= To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=00163631002f2a84e8049abdf75e X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Allow & Deny Access to Directories --00163631002f2a84e8049abdf75e Content-Type: text/plain; charset=ISO-8859-1 Hi, I have a Server (server1) with the next directories: - /var/www/html/dir1 - /var/www/html/dir2 - /var/www/html/dir3 - /var/www/html/dir4 And I want redirect an external URL across a Proxy (proxy1) to 'dir1' I tried this meaning in the "httpd.conf" at proxy1: ServerName external_url ProxyPass / http://server1/ ProxyPassReverse / http://server1/ ProxyRequests Off ProxyPreserveHost On order deny,allow deny from all order deny,allow deny from all order deny,allow deny from all order deny,allow allow from all It works, but I would like some brief and efficient meaning . Thanks --00163631002f2a84e8049abdf75e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I have a Server (server1) with the next directories:=
  • /var/www/html/dir1
  • /var/www/html/dir2
  • /v= ar/www/html/dir3
  • /var/www/html/dir4
And I want redire= ct an external URL across a Proxy (proxy1) to 'dir1'

I tried this meaning in the "httpd.conf"= ; at proxy1:

<VirtualHost *>
= =A0=A0ServerName external_url
=A0=A0ProxyPass / =A0http://server1/
=A0=A0ProxyPassReverse / =A0http://server1= /
=A0=A0ProxyRequests Off
=A0=A0ProxyPreserveHost O= n
=A0=A0 =A0<Location /dir2>
=A0=A0 =A0 =A0order = deny,allow
=A0=A0 =A0 =A0deny from all
=A0=A0 =A0</Location>
=A0=A0 =A0<Location /dir= 3>
=A0=A0 =A0 =A0order deny,allow
=A0=A0 =A0 =A0deny= from all
=A0=A0 =A0</Location>
=A0=A0= =A0<Location /dir4>
=A0=A0 =A0 =A0order deny,allow
=A0=A0 =A0 =A0deny from all
<= div>=A0=A0 =A0</Location>
=A0=A0 =A0<Location /dir1><= /div>
=A0=A0 =A0 =A0order deny,allow
=A0=A0 =A0 =A0allo= w from all
=A0=A0 =A0</Location>
</VirtualHost>

It works, but I wo= uld like some brief and efficient meaning . Thanks
--00163631002f2a84e8049abdf75e--