Apex Default Web Page - ORDS, SODA & JSON in the Database

Hi all,
What are the other page names we can use other than "apex" as the default web page in listener configuration?.
If we put the "apex" as the default page, when a user just use the path without an application name would just see the apex home page. What I need is when the user just enter the site url without a specific application (f?p=xxx) the browser should load the default application. So how do I specify this in the listener config?
thanks
Sashika. 

You should just enter the f?p=2345:5546.
-kris

Related

Static Files (i.e. Index.html)

I'm trying to setup up ORDS as my website app server - i.e. www.xyz.com.  If users go to that URL, I would like to do a redirect to app 100 in ApEx (i.e. redirect to www.xyz.com/ords/f?p=100).  By default it goes to www.xyz.com/ords/f?p=4550.  Is there a way to set up the index.html that I want to use?
Hi brownb,brownb wrote:I'm trying to setup up ORDS as my website app server - i.e. www.xyz.com. If users go to that URL, I would like to do a redirect to app 100 in ApEx (i.e. redirect to www.xyz.com/ords/f?p=100). By default it goes to www.xyz.com/ords/f?p=4550. Is there a way to set up the index.html that I want to use?You can set up a reverse proxy (using Apache HTTP Server) to a ORDS+Apache Tomcat installation and write the redirect rules you want.Refer a similar thread: Re: 2 applications on one website  Hope this helps! Regards,Kiran
Finally figured it out myself.  Turns out that you'll have a "standalone" subdirectory which does not include a "doc_root" directory by default (this is 3.0.10 of ORDS anyway).  If you create that subdirectory, you'll be able to put an index.html into that directory if you wish - to redirect to your app login or put subdirectories, or whatever you want for your static files.  Enjoy!
Thanks for sharing this information.  I would also like to add that if you want to set the default page in ORDS (that is when you're going to www.xyz.com/ords) there is an entry in the defaults.xml file in your ORDS config directory. Its default is :<entry key="misc.defaultPage">apex</entry>This redirects to www.xyz.com/ords/f?p=4550You can change it to what you want :<entry key="misc.defaultPage">f?p=100</entry>

AppServer: Prevent Directory Browsing

How do I prevent a user from being able to browse a directory/context root with his web browser?
I want to give the user forbidden message or redirection hom to another web page.
Is there a setting on the web application to do this?
Deploytool or Admin Console? 
in Tomcat, in the default web.xml file, the default servlet has a listings parameter you can set to false. I forget if there's another place you can change a setting, but that is certainly one place. 
I'm using Sun AppServer, I guess it uses tomcat for it's web applications...?
There should be a place to edit this grapically, so I don't have to find the xml-file for each web app?

Login Form (form authentication) located on Apache

I have a problem, I want to place the login form in my index.html page,The index.html contains two input text fields (login/password) and I would like to use it as the login form that has to be defined for the form based authentication, the problem is
after i integrate tomcat with apache,i access through apache failed.
it shows:
Not Found
The requested URL /main/j_security_check was not found on this server..)
i access it through tomcat ok.
(that because it is on the Apache Web Server it is in completely different folder then the jsp pages that are on the Tomcat server.?)
Any clues on how to bypass this problem with paths?
The index.html contains two input text fields (login/password) and I would like to use it as the login form that has to be defined for the form based authentication, the problem is that because it is on the Apache Web Server it is in completely different folder then the jsp pages that are on the Tomcat server.
Any clues on how to bypass this problem with paths? 
any suggestion?

Web application Context path issues

Hi,
I have deployed a web application in Websphere application server version 6.0. This application is accessed through IBM Http server. The HTTP server Url mapping is configured like "http://www.mycompany.com/webmail". My web application context is "testWeb". i could able to access my home page with URL http://www.mycompany.com/webmail/testWeb/homepage. From there onwards i could not able to submit this form. When i see the form action attribute, it is getting generated as "/testWeb/<next jsp>". As "webmail" is missing in this URL, the form submit results in "No page found" error. I am not very sure how to get this "webmail" in my form action uri. Or do i need to make any changes in websphere plug-in configuration or webserver httpd.conf files to make this work.
Also image( reffered as "/logo.gif") in my home page is not getting displayed. I noticed that the url for these images is referring to http://www.mycompany.com/testWeb/logo.gif. It should be http://www.mycompany.com/webmail/testWeb/logo.gif
Any help in this regard is greatly appreciated.
Regards,
Sridhar

index.jsp not accessible after authetication

We have a setup wherein a policy agent is installed on sun one web server and we have a separate machine which has access manager and LDAP on sunone.
When user enter url with http://host:81 in the browser
then a login page is shown and the browser shows url as
https://host:4043/amserver/UI/Login?goto=https%3A//host%3A443/index.html
Now if user authetication is successful then index.html page is shown from docs folder.
My problem is if I try to use index.jsp instead of index.html then i get error 404.
Note: I have added index.jsp in the indexfile list and have removed index.html while testing for index.jsp
Can anybody help me out with this?
Thanks
Yaseer 
The policy agent should only enforce authentication and policy so it should only return a 302 redirect to the login page, 403 access denied, or 500 if the there is a problem.
If you disable the policy agent do you still get the same error? I believe JSP's need to be inside a web application and I don't see any web application context URI in the URL you provided. 
Correct there is no web application. We are directly accessing the index.html page inside the docs folder of sun one web server (the one on which policy agent is configured)
Lets take normal case, after sun one web server installation we run the instance. In the browser give url as http://host:81 we get the index.html displayed.
Note: This index.html is residing in C:\Sun\WebServer6.1\docs folder.
Now if replace this index.html with index.jsp and restart server instance . I then try accessing the same url http://host:81 I get my index.jsp displayed.
The problem starts after I configure Policy Agent 2.1 on my Sun one web server.
If I keep the index.html back in place then after authetication index.html is getting displayed but in case of index.jsp it fails giving an error....HTTP 404 - File not found
A small note here: at this moment my browser url displayed is
https://amhost/amserver/UI/Login
I have also checked the jsp java and class files they are pretty much there in the folder
C:\Sun\WebServer6.1\https-instancehost\ClassCache\https-instancehost\default-webapp\_jsps
I tell you now why I need index.jsp working for me. I will redirect my request to websphere portal server in a way that I will attempt to log directlly into portal application (ie bypassing security check at websphere portal level)

Categories

Resources