HELP - How to Hide the file list of Tomcat
I want to show a common error page or redirect to the special page when the customs access this urls : http://mysite.com/admin/ or http://mysite.com/admin/jsp/ or http://mysite.com/admin/img/me.gif and so on ... You know when they access a real page which is in the Tomcat's Web container which I set, they can see the file list and know the server information. What can I do ? (Note: I don't want to write the filters bsz. I have to match all of the url patterns, I want to change the server config files to fix this problem). Thank you. Rai - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HELP: Want to custom the TOMCAT NOT-FOUND page.
Thank u Karin, But I want to custom the Common 404 Page, not for a special web application. error-page maybe can only put in the special web application config. Am' I right ? Rai -Original Message- From: Krause Karin [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 7:26 PM To: 'Tomcat Users List' Subject: RE: HELP: Want to custom the TOMCAT NOT-FOUND page. Hi, you can specify custom error pages in the web.xml file see the servlet spec here is an example: error-page error-code404/error-code location/errorpages/404.html/location /error-page Karin -Original Message- From: Rai Ou [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 21. Januar 2004 10:24 To: 'Tomcat Users List' Subject: HELP: Want to custom the TOMCAT NOT-FOUND page. Tomcat will give the HTTP 404, 500 (and so on...) Error pages when accessed by a wrong URL. I want to custom that pages but, it seems that they are hard-coding in tomcat, any good ideas for doing it ? Thanks. Rai. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HELP: Want to custom the TOMCAT NOT-FOUND page.
Tomcat will give the HTTP 404, 500 (and so on...) Error pages when accessed by a wrong URL. I want to custom that pages but, it seems that they are hard-coding in tomcat, any good ideas for doing it ? Thanks. Rai. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HELP: Servlet File Download solution.
I wrote a download servlet but I found it didn't run at IE5.x IE6.x - OK IE5.x - NG NS - OK My source is below. I want to know if there are better solutions or any Common Libarary I can use. response.setHeader("Content-Disposition", "attachment; filename=\"" + myFileName + "\""); response.setContentType("application/octet-stream; name=\"" + myFileName + "\""); String f = myFilePath; PrintWriter out = response.getWriter(); BufferedReader in = new BufferedReader(new FileReader(f)); String line; while ((line = in.readLine()) != null) { out.println(line); } in.close(); Thanks. Rai - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Do the Webap support SSL ?
I want to know if the Webapp connector can support SSL protocol well. I use Solaris8+Apache1.3.27+Webapp+Tomcat4.1.24. I compiled Apache for SSL and I don't know if the figure below is right: Broswer ==https== Apache(webapp) ==http== Tomcat I found there are 2 options(scheme, secure) at Webapp document. Do I need to add this 2 options and config webapp like below at the server.xml file ? Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 scheme=https secure=true/ !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 appBase=webapps Rai.
RE: Webapp 501 error when using HTTPS.
I am sorry that I coudln't post the error message at my first mail, now I post all of the error message I get from the broswer: HTTP Status 501 - Method ctl=ssearch=200306Submit2=+%B8%A1+%BA%F7+GET is not defined in RFC 2068 and is not supported by the Servlet API I get it when the session time out and pushed the form button(POST method). Waitting for the response. Rai -Original Message- From: Rai Ou Sent: Monday, July 07, 2003 2:58 PM To: '[EMAIL PROTECTED]' Subject: Webapp 501 error when using HTTPS. I am using Apache1.3.27 + webapp1.2(jakarta-tomcat-connectors-4.1.24-src) + Tomcat4.1.24, and I am using the servlet filter for redirect to Login page when the session is time out. The system is running well but, after I built a SSL in my apache, I get the 501 error when the sessin is time out and click the form button (it use the POST method). the error message is like this: 501 GET Method not implemented but, when I click any hyper-link(it use the GET method), the filter can run well and redirect to the Login page. Any ideas for this problem ? (Note: my OS is Sparc-Solaris8 and I download the apr-0.9.3 and compiled the jakarta-tomcat-connectors-4.1.24-src source for geting the web_app.so and warp.jar).
Webapp 501 error when using HTTPS.
I am using Apache1.3.27 + webapp1.2(jakarta-tomcat-connectors-4.1.24-src) + Tomcat4.1.24, and I am using the servlet filter for redirect to Login page when the session is time out. The system is running well but, after I built a SSL in my apache, I get the 501 error when the sessin is time out and click the form button (it use the POST method). the error message is like this: 501 GET Method not implemented but, when I click any hyper-link(it use the GET method), the filter can run well and redirect to the Login page. Any ideas for this problem ? (Note: my OS is Sparc-Solaris8 and I download the apr-0.9.3 and compiled the jakarta-tomcat-connectors-4.1.24-src source for geting the web_app.so and warp.jar).