Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 91731 invoked from network); 9 Aug 2006 15:06:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Aug 2006 15:06:59 -0000 Received: (qmail 28667 invoked by uid 500); 9 Aug 2006 15:06:48 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 28653 invoked by uid 500); 9 Aug 2006 15:06:48 -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 28642 invoked by uid 99); 9 Aug 2006 15:06:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Aug 2006 08:06:48 -0700 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of euclidesjr2005@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Aug 2006 08:06:46 -0700 Received: by nf-out-0910.google.com with SMTP id m19so189560nfc for ; Wed, 09 Aug 2006 08:06:25 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=psaP9IwA8jVhvjbTaf1Cf6ZA8nEuqHrri/KjkKzwyW6HbNBRmyNNBSVaWfkhSmeYqx63EDksXEivTJkFZdQrTq8idZpSq+Nm9w9Fc1zzT4kIBYaIUPlpIFADX3EyIK373pyw6pBpBvBULtmThVnH1NtqhNa2H+ElolRc14+1mL4= Received: by 10.48.242.19 with SMTP id p19mr1482804nfh; Wed, 09 Aug 2006 08:06:23 -0700 (PDT) Received: by 10.65.215.5 with HTTP; Wed, 9 Aug 2006 08:06:22 -0700 (PDT) Message-ID: Date: Wed, 9 Aug 2006 12:06:22 -0300 From: "=?ISO-8859-1?Q?Jos=E9_Euclides_Silva_Junior?=" To: users@httpd.apache.org, steve.j.swift@gmail.com In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2955_16976366.1155135982845" References: X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Trying to hide application(Java + Apache) directory from browser address bar X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_2955_16976366.1155135982845 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Dear Steve, I ve already tried it, but i got a 404 error(notfound) even if i include a jsp page reference as a Alias command parameter. This is because java environment has their own control! So, i tried to solve it with a redirection META TAG, but the java directory(deqs) is still showed into the browser's address bar. In fact, what i want is: 1) Submit: http://www-pddataprev 2) Apache sends this request to Java environment(Oracle App Server) through ajp protocol(I guess...) ---> calling www-pddataprev/deqs(deqs is the java app's root directory) 3) The response would hide the deqs directory from browser. That's it! I have tried somethings with proxypass but i havent gotten succeded yet... Thank you! Euclides. 2006/8/9, Steve Swift : > > If you were to add: > > Alias / "/u01/app/oracle/product > /oracle10g/Apache/Apache/htdocs/pddataprev/deqs/" > > (all on one line) and remove your from index.html then that > would have the effect of fetching all documents which appeared to com fro= m > the root from its directory "deqs". > > > > On 08/08/06, Jos=E9 Euclides Silva Junior wrot= e: > > > > Hi, > > i intend to hide the application root directory from the browser addres= s > > bar, as you can see at these steps example: > > 1) Http request: www.xxxx.com > > 2) Apache runs some module that would redirects(or proxy) the resource > > to something like www.xxxx.com/somedir/ (J2ee aplication - same server) > > 3) So, Apache returns the right thing but the browser's address bar mus= t > > show www.xxxx.com only, without the application directory. > > Both Apache and OC4J lives at the same server(IP address)! > > > > I ve tried to do the following: > > > > ServerName www-pddataprev > > DocumentRoot > > /u01/app/oracle/product/oracle10g/Apache/Apache/htdocs/pddataprev > > > > There is an index.html file in the pddataprev directory which redirects > > to Java environment directory(deqs), as you can see below: > > > > > > But, i got a failure because the browser shows the app directory; > > http://www-pddataprev/deqs/ > > > > Is there a way to hide "deqs" from the browser address bar? > > > > Thanks in advance, Euclides. > > > > > > > > -- > Steve Swift > http://www.swiftys.org.uk > ------=_Part_2955_16976366.1155135982845 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Dear Steve,
I ve already tried it, but i got a 404 error(notfound) even if i inclu= de a jsp page reference as a Alias command parameter. This is because = java environment has their own control!
So, i tried to solve it with a redirection META TAG, bu= t the java directory(deqs) is still showed into the browser'= s address bar.
In fact, what i want is:
2) Apache sends this request to Java environment(Oracle= App Server) through ajp protocol(I guess...) ---> calling www= -pddataprev/deqs(deqs is the java app's root directory)  &nb= sp; 
3) The response would hide the deqs directory from browser.
That's it!
 
I have tried somethings with proxypass but i havent gotten succeded ye= t...
Thank you!
Euclides.
 
2006/8/9, Steve Swift <steve.j.swift@gmail.com>:
If you were to add:

Alias / "/u01/app/oracle/product=20
/oracle10g/Apache/Apache/htdocs/pddataprev/deqs/"

(all on = one line) and remove your <META ...> from index.html then that would = have the effect of fetching all documents which appeared to com from the ro= ot from its directory "deqs".=20
 


On 08/08/06, Jos=E9 Euclides Silva Junior < euclidesjr2005@gmail.com> wrote:=20
Hi,
i intend to hide the application root directory from the browse= r address bar, as you can see at these steps example:
1) Http request: <= a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=3D"http://w= ww.xxxx.com/" target=3D"_blank"> www.xxxx.com
2) Apache runs some module that would redirects(or proxy) the res= ource to something like www.xxxx.c= om/somedir/=20 (J2ee aplication - same server)
3) So, Apache returns the right thin= g but the browser's address bar must show www.xxxx.com only, without the application directory.
Both Apache and OC4J live= s at the same server(IP address)!
 
I ve tried to do the following:
 
   ServerName www-pddataprev
   DocumentRoot /u= 01/app/oracle/product/oracle10g/Apache/Apache/htdocs/pddataprev
 
There is an index.html file in the pddataprev directory which redirect= s to Java environment directory(deqs), as you can see below:

<META HTTP-EQUIV=3D"Refresh" CONTENT=3D"0; URL=3Dhttp://www-pddataprev/deqs/">= ;

But, i got a failure because the browser shows the app = directory; http://www-pddataprev/de= qs/ 
 
Is there a way to hide "deqs" from the browser address bar?<= /div>

Thanks in advance, Euclides.
 



<= br> ------=_Part_2955_16976366.1155135982845--