Re: [users@httpd] Re: Trying to hide application(Java + Apache) directory from browser address bar

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

 



I did it.I have found the OC4J port, then i tried 2 thinks as follow:
 
1) Using server's ip address:
 
ServerName www-pddataprev
   DocumentRoot /u01/app/oracle/product/oracle10g/Apache/Apache/htdocs/deqs_web/
   # DocumentRoot /u01/app/oracle/product/oracle10g/j2ee  
   RewriteEngine on
   RewriteRule ^(.*) http://10.0.134.23:7778/deqs [P,L]
 
--> The browser's address bar returned me "http://10.0.134.23:7778/deqs/", with the correct web page content
 
2) Using loopback address:
 
ServerName www-pddataprev
   DocumentRoot /u01/app/oracle/product/oracle10g/Apache/Apache/htdocs/deqs_web/
   # DocumentRoot /u01/app/oracle/product/oracle10g/j2ee  
   RewriteEngine on
   RewriteRule ^(.*) http://10.0.134.23:7778/deqs [P,L]
 
--> The server returned "HTTP 301 Moved Permanently" to browser
 
So, what should i try?
 
 
 


 
2006/8/9, SOPRO <steve.j.swift@xxxxxxxxx>: >:
José,

At first, you must discover in which port your OC4J is running and
then, what's the nome of the context of your application.

Hint: Try to access the application directly one the OC4J.

Fabricio.

2006/8/9, José Euclides Silva Junior <euclidesjr2005@xxxxxxxxx>:
>
> I had tried it: the browser showed - 403 Error Forbidden
> Any hint?
>
>
> 2006/8/8, José Euclides Silva Junior <euclidesjr2005@xxxxxxxxx>:
> >
> >
> >
> > Hi,
> > i intend to hide the application root directory from the browser address
> 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 must
> 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:
> >
> >
> > <META HTTP-EQUIV="Refresh" CONTENT="0; URL="" href="http://www-pddataprev/deqs/">http://www-pddataprev/deqs/">
> > 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.
> >
> >
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[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