Re: replacement for symbolic links to files (Apache httpd to Tomcat)
Thanks, this worked, I didn't understand the sneaky trick of making "blog.html" a jsp file. jsp /diglloyd/blog.html The file "/diglloyd/blog.html" (same as /diglloyd/blog.jsp) so that existing user bookmarks will work: <%@ include file="2008-03-blog.html" %> On Mar 24, 2008, at 11:30 AM, Caldarale, Charles R wrote: From: DIGLLOYD INC [mailto:[EMAIL PROTECTED] Subject: Re: replacement for symbolic links to files (Apache httpd to Tomcat) Wouldn't "/blog.html" refer to http://diglloyd.com/blog.html ? That would be wrong... Sorry, I didn't realize your webapp is named "ROOT" (the default webapp), rather than "diglloyd", so your original value is correct. (blog.jsp is in the ROOT webapp at /diglloyd/blog.jsp) However, you didn't follow David's instructions: the above should be named "blog.html", not "blog.jsp" in order for the servlet mapping trick to work. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e- mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Lloyd Chambers http://diglloyd.com [Mac OS X 10.5.2 Intel, Tomcat 6.0.16] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: replacement for symbolic links to files (Apache httpd to Tomcat)
> From: DIGLLOYD INC [mailto:[EMAIL PROTECTED] > Subject: Re: replacement for symbolic links to files (Apache > httpd to Tomcat) > Wouldn't "/blog.html" refer to http://diglloyd.com/blog.html ? That > would be wrong... Sorry, I didn't realize your webapp is named "ROOT" (the default webapp), rather than "diglloyd", so your original value is correct. > (blog.jsp is in the ROOT webapp at /diglloyd/blog.jsp) However, you didn't follow David's instructions: the above should be named "blog.html", not "blog.jsp" in order for the servlet mapping trick to work. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: replacement for symbolic links to files (Apache httpd to Tomcat)
Chuck, Thanks, but perhaps I don't understand: - "blog.html" is under /diglloyd eg at http://diglloyd.com/diglloyd/blog.html eg not at the top level of the web app. Wouldn't "/blog.html" refer to http://diglloyd.com/blog.html ? That would be wrong... lloyd On Mar 24, 2008, at 10:58 AM, Caldarale, Charles R wrote: From: DIGLLOYD INC [mailto:[EMAIL PROTECTED] Subject: Re: replacement for symbolic links to files (Apache httpd to Tomcat) jsp /diglloyd/blog.html Take out the "/diglloyd", leaving "/blog.html"; the is relative to the webapp. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e- mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Lloyd Chambers http://diglloyd.com [Mac OS X 10.5.2 Intel, Tomcat 6.0.16] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: replacement for symbolic links to files (Apache httpd to Tomcat)
> From: DIGLLOYD INC [mailto:[EMAIL PROTECTED] > Subject: Re: replacement for symbolic links to files (Apache > httpd to Tomcat) > > > jsp > /diglloyd/blog.html > Take out the "/diglloyd", leaving "/blog.html"; the is relative to the webapp. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: replacement for symbolic links to files (Apache httpd to Tomcat)
David/Hassan, I've written a filter since I couldn't get the approach to work. This is what I've got. It needs generalization, but it does the job. My question is this: what is the right way to forward the request? The way I'm doing it bypasses the rest of the filter chain...or does the filter chain get reinvoked when the dispatcher forwards the request? public void doFilter( final ServletRequest request, final ServletResponse response, final FilterChain chain) throws IOException, ServletException { final HttpServletRequest httpRequest = (HttpServletRequest)request; // very specific handling: forward /diglloyd/blog.html to /diglloyd/ blog.jsp // should be generalized and/or do so based on init parameters final String queryString = httpRequest.getQueryString(); if ( queryString == null ) { final String uri = httpRequest.getRequestURI(); if ( uri.equals( "/diglloyd/blog.html") ) { final RequestDispatcher disp = request.getRequestDispatcher("/diglloyd/blog.jsp"); disp.forward(request, response); } } else { chain.doFilter(request, response); } } maps /diglloyd/blog.html to /diglloyd/blog.jspdescription> BlogFilter com.diglloyd.tomcat.BlogFilter BlogFilter /diglloyd/blog.html On Mar 24, 2008, at 8:12 AM, David Smith wrote: Oh and by the way ... Hassan's idea is really good as well. For that, you just need to write a class that implements the javax.servlet.Filter interface and define the servlet in your web.xml file. The servlet spec is an excellent resource for this kind of stuff: http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html It has docs for the classes/interfaces in javax.servlet as well as docs on what's valid in the web.xml file. --David DIGLLOYD INC wrote: David, I'm new to programming Servlets/JSP, I didn't realize a mapping> could just specify a an not specify a servlet class, nor do I understand exactly what this example mapping does (and if it does it without other side-effects). Do you mean to use this in conjunction with a "blog.jsp" which would then include blog.html? Lloyd On Mar 24, 2008, at 5:13 AM, David Smith wrote: Here's a possibility: Write the quick and dirty blog jsp, name it blog.html, and then add this to your web.xml file: jsp blog.html The idea is to specifically map blog.html to the jsp servlet for jsp processing. I haven't tried it, but it seems like it should work. --David DIGLLOYD INC wrote: I'm converting from an Apache http system. Thousands of my users have bookmarked http://diglloyd.com/diglloyd/blog.html With Apache, I symlinked blog.html to the current month's blog. Now with Tomcat, I see warnings that enabling symlinks is a security risk. What is the best way to make blog.html => 2008-03-blog.html ? (eg if March 2008 is the current blog) I realize that I can write a one-line blog.jsp which includes the current month's blog. But that won't help users that bookmarked blog.html. An http redirect works, but it seems the google search engine is not enamored of redirects; I don't want to hurt my search ranking. Lloyd Chambers - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Lloyd Chambers http://diglloyd.com [Mac OS X 10.5.2 Intel, Tomcat 6.0.16] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: replacement for symbolic links to files (Apache httpd to Tomcat)
David, The URL I want to see work is http://diglloyd.com/diglloyd/blog.html (currently running on Apache with a symlink currently pointing to 2008-03-blog.html). I wrote blog.jsp which includes the current blog file: <%@ include file="2008-03-blog.html" %> That works great for: http://diglloyd.com/diglloyd/blog.jsp Next, I added this servlet mapping in ROOT/WEB-INF/web.xml (ROOT webapp contains diglloyd/blog.html). jsp /diglloyd/blog.html (blog.jsp is in the ROOT webapp at /diglloyd/blog.jsp) I get a 404 error when I do this, same as without the mapping. Is there a path issue (eg the leading "diglloyd")? Lloyd On Mar 24, 2008, at 8:05 AM, David Smith wrote: ... takes the name of a servlet as defined by the ... element, not the servlet's class. That's what the ... element is for. In this case, the jsp servlet is already defined in the global web.xml file found at conf/web.xml right next to the server.xml file. Please don't edit this web.xml file unless you *really* know what you are doing. Just take a look at it to see how the default servlet and the jsp servlet are defined. Note the separate mapping> element. There can be more than one of these to map a servlet to different paths. --David DIGLLOYD INC wrote: David, I'm new to programming Servlets/JSP, I didn't realize a mapping> could just specify a an not specify a servlet class, nor do I understand exactly what this example mapping does (and if it does it without other side-effects). Do you mean to use this in conjunction with a "blog.jsp" which would then include blog.html? Lloyd On Mar 24, 2008, at 5:13 AM, David Smith wrote: Here's a possibility: Write the quick and dirty blog jsp, name it blog.html, and then add this to your web.xml file: jsp blog.html The idea is to specifically map blog.html to the jsp servlet for jsp processing. I haven't tried it, but it seems like it should work. --David DIGLLOYD INC wrote: I'm converting from an Apache http system. Thousands of my users have bookmarked http://diglloyd.com/diglloyd/blog.html With Apache, I symlinked blog.html to the current month's blog. Now with Tomcat, I see warnings that enabling symlinks is a security risk. What is the best way to make blog.html => 2008-03-blog.html ? (eg if March 2008 is the current blog) I realize that I can write a one-line blog.jsp which includes the current month's blog. But that won't help users that bookmarked blog.html. An http redirect works, but it seems the google search engine is not enamored of redirects; I don't want to hurt my search ranking. Lloyd Chambers - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Lloyd Chambers http://diglloyd.com [Mac OS X 10.5.2 Intel, Tomcat 6.0.16] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: replacement for symbolic links to files (Apache httpd to Tomcat)
Thanks to both of you. I'll give it a try. Lloyd On Mar 24, 2008, at 8:12 AM, David Smith wrote: Oh and by the way ... Hassan's idea is really good as well. For that, you just need to write a class that implements the javax.servlet.Filter interface and define the servlet in your web.xml file. The servlet spec is an excellent resource for this kind of stuff: http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html It has docs for the classes/interfaces in javax.servlet as well as docs on what's valid in the web.xml file. --David DIGLLOYD INC wrote: David, I'm new to programming Servlets/JSP, I didn't realize a mapping> could just specify a an not specify a servlet class, nor do I understand exactly what this example mapping does (and if it does it without other side-effects). Do you mean to use this in conjunction with a "blog.jsp" which would then include blog.html? Lloyd On Mar 24, 2008, at 5:13 AM, David Smith wrote: Here's a possibility: Write the quick and dirty blog jsp, name it blog.html, and then add this to your web.xml file: jsp blog.html The idea is to specifically map blog.html to the jsp servlet for jsp processing. I haven't tried it, but it seems like it should work. --David DIGLLOYD INC wrote: I'm converting from an Apache http system. Thousands of my users have bookmarked http://diglloyd.com/diglloyd/blog.html With Apache, I symlinked blog.html to the current month's blog. Now with Tomcat, I see warnings that enabling symlinks is a security risk. What is the best way to make blog.html => 2008-03-blog.html ? (eg if March 2008 is the current blog) I realize that I can write a one-line blog.jsp which includes the current month's blog. But that won't help users that bookmarked blog.html. An http redirect works, but it seems the google search engine is not enamored of redirects; I don't want to hurt my search ranking. Lloyd Chambers - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: replacement for symbolic links to files (Apache httpd to Tomcat)
Oh and by the way ... Hassan's idea is really good as well. For that, you just need to write a class that implements the javax.servlet.Filter interface and define the servlet in your web.xml file. The servlet spec is an excellent resource for this kind of stuff: http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html It has docs for the classes/interfaces in javax.servlet as well as docs on what's valid in the web.xml file. --David DIGLLOYD INC wrote: David, I'm new to programming Servlets/JSP, I didn't realize a mapping> could just specify a an not specify a servlet class, nor do I understand exactly what this example mapping does (and if it does it without other side-effects). Do you mean to use this in conjunction with a "blog.jsp" which would then include blog.html? Lloyd On Mar 24, 2008, at 5:13 AM, David Smith wrote: Here's a possibility: Write the quick and dirty blog jsp, name it blog.html, and then add this to your web.xml file: jsp blog.html The idea is to specifically map blog.html to the jsp servlet for jsp processing. I haven't tried it, but it seems like it should work. --David DIGLLOYD INC wrote: I'm converting from an Apache http system. Thousands of my users have bookmarked http://diglloyd.com/diglloyd/blog.html With Apache, I symlinked blog.html to the current month's blog. Now with Tomcat, I see warnings that enabling symlinks is a security risk. What is the best way to make blog.html => 2008-03-blog.html ? (eg if March 2008 is the current blog) I realize that I can write a one-line blog.jsp which includes the current month's blog. But that won't help users that bookmarked blog.html. An http redirect works, but it seems the google search engine is not enamored of redirects; I don't want to hurt my search ranking. Lloyd Chambers - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: replacement for symbolic links to files (Apache httpd to Tomcat)
... takes the name of a servlet as defined by the ... element, not the servlet's class. That's what the ... element is for. In this case, the jsp servlet is already defined in the global web.xml file found at conf/web.xml right next to the server.xml file. Please don't edit this web.xml file unless you *really* know what you are doing. Just take a look at it to see how the default servlet and the jsp servlet are defined. Note the separate element. There can be more than one of these to map a servlet to different paths. --David DIGLLOYD INC wrote: David, I'm new to programming Servlets/JSP, I didn't realize a mapping> could just specify a an not specify a servlet class, nor do I understand exactly what this example mapping does (and if it does it without other side-effects). Do you mean to use this in conjunction with a "blog.jsp" which would then include blog.html? Lloyd On Mar 24, 2008, at 5:13 AM, David Smith wrote: Here's a possibility: Write the quick and dirty blog jsp, name it blog.html, and then add this to your web.xml file: jsp blog.html The idea is to specifically map blog.html to the jsp servlet for jsp processing. I haven't tried it, but it seems like it should work. --David DIGLLOYD INC wrote: I'm converting from an Apache http system. Thousands of my users have bookmarked http://diglloyd.com/diglloyd/blog.html With Apache, I symlinked blog.html to the current month's blog. Now with Tomcat, I see warnings that enabling symlinks is a security risk. What is the best way to make blog.html => 2008-03-blog.html ? (eg if March 2008 is the current blog) I realize that I can write a one-line blog.jsp which includes the current month's blog. But that won't help users that bookmarked blog.html. An http redirect works, but it seems the google search engine is not enamored of redirects; I don't want to hurt my search ranking. Lloyd Chambers - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: replacement for symbolic links to files (Apache httpd to Tomcat)
On Mon, Mar 24, 2008 at 7:39 AM, DIGLLOYD INC <[EMAIL PROTECTED]> wrote: > Thanks, this seems like it might be extensible to more than one file > as well. > > I'm new to Servlet programming (though experienced in java), so I > guess I'll hit the docs to see how to do this, unless you have a code > snippet handy--thanks. There's a bunch of Filters in the Tomcat examples directory; take a look there. If you have any questions specific to this particular use, let me know and I'll dig up some suitable sample code. /* gotta get ready for a meeting -- it's Monday, eh? :-) */ -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: replacement for symbolic links to files (Apache httpd to Tomcat)
David, I'm new to programming Servlets/JSP, I didn't realize a mapping> could just specify a an not specify a servlet class, nor do I understand exactly what this example mapping does (and if it does it without other side-effects). Do you mean to use this in conjunction with a "blog.jsp" which would then include blog.html? Lloyd On Mar 24, 2008, at 5:13 AM, David Smith wrote: Here's a possibility: Write the quick and dirty blog jsp, name it blog.html, and then add this to your web.xml file: jsp blog.html The idea is to specifically map blog.html to the jsp servlet for jsp processing. I haven't tried it, but it seems like it should work. --David DIGLLOYD INC wrote: I'm converting from an Apache http system. Thousands of my users have bookmarked http://diglloyd.com/diglloyd/blog.html With Apache, I symlinked blog.html to the current month's blog. Now with Tomcat, I see warnings that enabling symlinks is a security risk. What is the best way to make blog.html => 2008-03-blog.html ? (eg if March 2008 is the current blog) I realize that I can write a one-line blog.jsp which includes the current month's blog. But that won't help users that bookmarked blog.html. An http redirect works, but it seems the google search engine is not enamored of redirects; I don't want to hurt my search ranking. Lloyd Chambers - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: replacement for symbolic links to files (Apache httpd to Tomcat)
Hassan, Thanks, this seems like it might be extensible to more than one file as well. I'm new to Servlet programming (though experienced in java), so I guess I'll hit the docs to see how to do this, unless you have a code snippet handy--thanks. Lloyd On Mar 24, 2008, at 6:48 AM, Hassan Schroeder wrote: On Sun, Mar 23, 2008 at 10:50 PM, DIGLLOYD INC <[EMAIL PROTECTED]> wrote: What is the best way to make blog.html => 2008-03-blog.html ? (eg if March 2008 is the current blog) I'd write a simple Filter that gets the current blog location from a properties file -- e.g. blog.html=2008-03-blog.html -- and forwards to it. Easy and flexible, a/k/a "cheap 'n' cheerful' :-) HTH, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: replacement for symbolic links to files (Apache httpd to Tomcat)
No, not behind httpd, but thanks. On Mar 24, 2008, at 5:22 AM, [EMAIL PROTECTED] wrote: You can also try redirect at the Apache httpd layer (I assume Tomcat is hidden behind httpd), redirecting blog.html to the 1-liner JSP file you mentioned. Hai Vu David Smith <[EMAIL PROTECTED]> wrote on 24/03/2008 08:13:40 AM: Here's a possibility: Write the quick and dirty blog jsp, name it blog.html, and then add this to your web.xml file: jsp blog.html The idea is to specifically map blog.html to the jsp servlet for jsp processing. I haven't tried it, but it seems like it should work. --David DIGLLOYD INC wrote: I'm converting from an Apache http system. Thousands of my users have bookmarked http://diglloyd.com/diglloyd/blog.html With Apache, I symlinked blog.html to the current month's blog. Now with Tomcat, I see warnings that enabling symlinks is a security risk. What is the best way to make blog.html => 2008-03-blog.html ? (eg if March 2008 is the current blog) I realize that I can write a one-line blog.jsp which includes the current month's blog. But that won't help users that bookmarked blog.html. An http redirect works, but it seems the google search engine is not enamored of redirects; I don't want to hurt my search ranking. Lloyd Chambers - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: replacement for symbolic links to files (Apache httpd to Tomcat)
On Sun, Mar 23, 2008 at 10:50 PM, DIGLLOYD INC <[EMAIL PROTECTED]> wrote: > What is the best way to make blog.html => 2008-03-blog.html ? (eg if > March 2008 is the current blog) I'd write a simple Filter that gets the current blog location from a properties file -- e.g. blog.html=2008-03-blog.html -- and forwards to it. Easy and flexible, a/k/a "cheap 'n' cheerful' :-) HTH, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: replacement for symbolic links to files (Apache httpd to Tomcat)
You can also try redirect at the Apache httpd layer (I assume Tomcat is hidden behind httpd), redirecting blog.html to the 1-liner JSP file you mentioned. Hai Vu David Smith <[EMAIL PROTECTED]> wrote on 24/03/2008 08:13:40 AM: > Here's a possibility: > > Write the quick and dirty blog jsp, name it blog.html, and then add this > to your web.xml file: > > > jsp > blog.html > > > The idea is to specifically map blog.html to the jsp servlet for jsp > processing. I haven't tried it, but it seems like it should work. > > --David > > DIGLLOYD INC wrote: > > > I'm converting from an Apache http system. > > > > Thousands of my users have bookmarked > > http://diglloyd.com/diglloyd/blog.html > > > > With Apache, I symlinked blog.html to the current month's blog. > > > > Now with Tomcat, I see warnings that enabling symlinks is a security > > risk. > > > > What is the best way to make blog.html => 2008-03-blog.html ? (eg if > > March 2008 is the current blog) > > > > I realize that I can write a one-line blog.jsp which includes the > > current month's blog. But that won't help users that bookmarked > > blog.html. > > > > An http redirect works, but it seems the google search engine is not > > enamored of redirects; I don't want to hurt my search ranking. > > > > Lloyd Chambers > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
Re: replacement for symbolic links to files (Apache httpd to Tomcat)
Here's a possibility: Write the quick and dirty blog jsp, name it blog.html, and then add this to your web.xml file: jsp blog.html The idea is to specifically map blog.html to the jsp servlet for jsp processing. I haven't tried it, but it seems like it should work. --David DIGLLOYD INC wrote: I'm converting from an Apache http system. Thousands of my users have bookmarked http://diglloyd.com/diglloyd/blog.html With Apache, I symlinked blog.html to the current month's blog. Now with Tomcat, I see warnings that enabling symlinks is a security risk. What is the best way to make blog.html => 2008-03-blog.html ? (eg if March 2008 is the current blog) I realize that I can write a one-line blog.jsp which includes the current month's blog. But that won't help users that bookmarked blog.html. An http redirect works, but it seems the google search engine is not enamored of redirects; I don't want to hurt my search ranking. Lloyd Chambers - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
replacement for symbolic links to files (Apache httpd to Tomcat)
I'm converting from an Apache http system. Thousands of my users have bookmarked http://diglloyd.com/diglloyd/blog.html With Apache, I symlinked blog.html to the current month's blog. Now with Tomcat, I see warnings that enabling symlinks is a security risk. What is the best way to make blog.html => 2008-03-blog.html ? (eg if March 2008 is the current blog) I realize that I can write a one-line blog.jsp which includes the current month's blog. But that won't help users that bookmarked blog.html. An http redirect works, but it seems the google search engine is not enamored of redirects; I don't want to hurt my search ranking. Lloyd Chambers