How to close tomcat's directory browse function?

when running tomcat,the default setting is when no start page(such as index.htm,index.jsp) in the directory,tomcat will display the directory context.how can I close this function?thanks.

Under Tomcat v4.0.3, in the <Tomcat_Home>/conf/web.xml file is a set of default servlets with parameters. One of these is :
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>
changing it to false does prevent directory browsing on my system. It's not a pretty access denied screen, but it does stop browsers seeing your contents, also any sub-directories. Hope that helps.

Similar Messages

  • How can I completely remove Private Browsing functionality within Firefox 4 Beta?

    I wish to remove the Private Browsing functionality within Firefox 4 Beta. I know there's a way to remove it from the toolbar but I want a complete inaccessibility of the function entirely.
    There *was* a solution for this within Firefox 3 that I had applied but the new update doesn't keep that as a single file within the \Components folder.
    I realize that this involves some real functionality change, but I really would appreciate a nice hack.

    Did you figure out how to remove this feature? I need help too!

  • How to close a popup using a function key in adf + Jquery

    Hello All,
    I want to display some error message using function key so I have used javascript function
    *function showText(event) {*
    var k = event.getKeyCode();
    *if (k == 115) {*
    ------------------------------------------CODE-------------------------------------------
    This is working fine on click of F4 it is invoking a popup and inside that popup in dialog it is showing some error messages. The property modal of dialog is true. So that user should not be able to navigate to main form until error message is closed.
    Now on click of F6 I want that error message to be closed. When I added af:clientListener on popup or dialog type="keyDown" is not available.
    So I thought using jquery for this. I have created a form.js file inside that I have written:
    *$(function first()*
    *               jQuery('*').bind('keydown', 'F6', function (evt){closePopup();evt.stopPropagation();return false;});*
    *function closePopup(){*
    *     alert("Do you want to close the error message");*
    I have also added jquery.hotkeys.js and jquery-latest.js file.
    My question here is How can i find that popup or dialog inside that jquery function and close it?
    On click of F6 I am getting that alert Do you want to close the error message but after that how can I find the popup or dialog and close it?
    I am new to jquery still I tried using some code:
    var dialog = event.getSource();
    var popup = dialog.findComponent("p1");
    popup.close();
    and
    var output1 = AdfUIComponent.findComponent("p1");
    output1.close();
    and
    curElm = document.activeElement;
    var frm = curElm.close();
    But none of them worked.
    Please help
    Thanks

    Hi,
    this whitepaper: http://www.oracle.com/technetwork/developer-tools/jdev/1-2011-javascript-302460.pdf has an example of registering keyboard keys on a global level (see page 36). So you would define a key to close dialogs in general. The paper also explains how to search and find components. Note that you should always work with the ADF Faces client side API and never against the generated markup or DOM (which in fact your code does)
    Frank

  • How to close PDF form in Browser

    Hi,
    Does anyone knows if there are any way to close a PDF form that is opened in a browser (Internet Explorer 6)?
    In my form, there is a button that is supposed to close the form when clicked, it is working if I launched the form in Reader but does not work in a browser.
    The script that I used in the click event of the button is:
    event.target.closeDoc();
    Thank you.

    Hi,
    heres the code
    1. Go to <Your Webdynpro project> - WebDynpro - Web Dynpro Components - <your component> - Windows right click and create a window (PdfWindow).
    2. Place the view that contains pdfForm in the window PdfWindow.Create a button in the view say ClosePdf .
    3. Create a context attribute say WindowInstance of type com.sap.tc.webdynpro.clientserver.window.Window (java native type) in the component controller.Map this attribute to the context of both views (view with button and Pdfview)
    3. In the onAction of button
    IWDWindowInfo windowInfo = (IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("PdfWindow");
    IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo,true);
    window.setWindowPosition(500, 500);
    window.show();
    wdContext.currentContextElement.setWindowInstance(window); // this iwll bw used to destroy the pop up
    4. In Pdfview create a action closepopup and associate with button ClosePdf. In the action write
    IWDWindow window = wdContext.currentContextElement.getWindowInstance();
    window.destroy(); // this will close the popup.
    Note:
    you dont need wdContext.currentContextElement().setPdfVisible(WDVisibility.VISIBLE); as your pdfform is in different view.
    Message was edited by:
            Shriram Kabra

  • How to config tomcat or browser can open some file type in browser?

    I use tomcat 4.0 (web server) for my project (JSP). I can upload file to folder of my web server. Some file type can read in browser e.g. .pdf .doc ,but some file type can't read in browser e.g. .ppt .xsl and etc. ? (http://localhost:8080//test.ppt --> it show some text,but can't read)
    How to configuration tomcat or browser for every file type can read in browser? help me please...

    In your tomcat confiruration files there must be some file for setting the mime types. You can add the required mime types to that file.
    Or the mime type configuration can be a part of some configuration file, you can change it there. Please look in to the conf directory.

  • How can i open the directory/​folder and read all the files inside it in order and then close it?

    How can i open the directory/folder and read all the files inside it in order and then close it? any example would be nice.
    thanks

    In the File I/O>>Advanced File Functions Palette is a function named "List directory". This function will give you two arrays. One contains the names of all subdirectories the other the names of all files. If you want to sort them by name use the array sort function. If you want to sort them by another attribute use the File/Directory Info function to get more data. Use a cluster which contains the attribut to sort and the original index of the name. Then sort this array.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Tomcat directory browsing

    Hi
    Under Tomcat, how do I prevent one from browsing a directory?
    Thanks
    Avishay Balderman

    Hi,
    Anything behind the WEB-INF directory is not browsable from the outside world. If you ensure that there is a welcome-file in the context directody - the default is index.html (I think) then the log in will automatically be sent to display this welcom-file rather than the directory listing.
    Hope this might help.
    kev

  • Private Browsing function is suddenly not working. Error message :"The URL is not valid and cannot be loaded." How can I repair?

    Private Browsing function is suddenly not working. Error message :"The URL is not valid and cannot be loaded."
    How can I fix it?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • When I close Firefox another Firefox browser opens. WHY and how do I stop this?

    Every time I close Firefox another Firefox browser opens. Then I close that one and it stays closed. How do I stop it from opening a new Firefox browser on it's own?

    Is it possible that you actually have two Firefox windows open and Windows 7 is showing one Firefox on the System task bar, but if you were wave mouse over that, you might see two windows.
    To Close Firefox use File > Exit (Alt+F > Exit)
    and not the X in the upper right corner which only closes the Window and may or may not close Firefox if it is the last window. The reason it does not always close Firefox is that there may be other tasks running so you don't see Firefox anywhere but in the System Task Manager on the Processes Tab which is where you can see if firefox.exe is running or not. Shortcut to Task Manager on Windows 7 is Ctrl+Shift+Esc (for other Windows systems Ctrl+Alt+Del , select Task Manager,...)

  • How can i do the upload file function using tomcat library??

    how can i do the upload file function using tomcat library??

    Did you read the document for the library?
    If you can't figure it out, why don't you ask the people who provide the library?
    This has nothing to do with JavaMail.

  • How do I set Home Directory in media browser?

    I've tried everything.
    How can I chose what directory wiill be my "Home Directory" in the media browser portion of my CS5 Prem Pro?  I want to change it from the directory that it goes to when you click on Home Directory.
    Assistance will be appreciated.

    On a Mac fonts are set at Appearance in Preferences (Options)

  • How to close and re-open the browser

    I have just downloaded a program and to fully install it it is requesting that I close the browser and re-open it. I don't know how to close and re-open the browser. Can you tell me how to close and re-open the browser? Thank you

    It is always best to use File > Exit<br />
    That will close all open windows, so if there are still other windows open then these won't close if you use the close X on the title bar.
    Also make sure that you do not have security software that is locking files in the Firefox program folder.

  • HT4064 How to close the function in iPad

    HOw to close function in I pad

    Close inactive apps?
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe the app upwards to close
    3. The app will fly off the screen

  • I want to remove the Private Browsing function as a Parental Control step. How?

    I don't want my child hiding things from me. How do I block or remove the Private Browsing functionality?

    You wouldn't be able to do it as long as the user has access to [[Profile folder]], lack of which makes Firefox not able to work - the user would be able to delete any data. Even prior to private browsing feature, history was clear-able in ''Tools'' - '' Clear recent history'' window.
    To have more control, you can block some websites/ports in the router or firewall, the [https://addons.mozilla.org/en-US/firefox/addon/4351/ FoxFilter] add-on can be helpful (but again, the users can simply un-install it).

  • Cannot download application world- how to close all the browser windows

    i cannot download the blackberry application world "sorry, your session has expired. Please close all of your browser windows and then return to the welcome page to start again." How to close all the browser windows?

    Hello numadia
    Welcome to BlackBerry Support Forums
    Is your problem resolved or you're still having problem with download BlackBerry world !
    If you're having problem then just peform a Battery pull restart by removing the battery while your device is Powered On, wait for a min. then reinsert it back after reboot please try it again.
    If problem persists then you can also go through this Knowledge Base  KB32113
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

Maybe you are looking for

  • Copy from Fact: "Invalid selection passed"

    Using OS5.0 SP2, has anyone received this error while running a standard copy from fact table package---"invalid selection passed"? Odd thing is, the copy package will work with the exact same parameters. I didn't find anything about this in the sap

  • APP-PAY-07092

    Hi all, am getting an error message while creatng an assignment for an employee of contact type....(APP-PAY-07092:This action is invalid for the current record) How to fix this Thanks in advance Navin

  • How to customizing single line comment

    Because of the restriction of our dsl language we cannot use SL_COMMENT terminal directly. We have own rule of "Comment" which is defined as a parser rule. // '..' is the identifier of our comment rule just like '//' Comment: '.' '.' (ID|INT|ANY_OTHE

  • Photoshop does not close files and the program does not quit.

    I have been on the phone with tech support for over an hour. Photoshop does not close files and the program does not quit. I am on a Mac and I am using Photoshop CC 2014.

  • Option to make notes in iCal

    Why isn't there an option to make notes in iCal without them being reminders or events-??? Why can't iCal be combined with notes or stickies-????