This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am not sure if this is the correct forum to request help, but I could not find a better place. I am trying to setup an httpd server in front of tomcat on centos 5.8.
In the httpd.conf file I have written the below
If I understand you correctly, you want resources from 2 different sources (apache and Tomcat) to appear as though they were all coming from one source in the URL path.
You can't do that, because someone (Apache, since it gets the first shot) has to have some sort of clue as to which kind of resource it's retrieving in order to know where to get it from. That cue usually would be done as a "directory" in the URL - for example "/images", "/scripts" and "/styles", but an Apache rewrite could also trigger on magic patterns in the resource name (for example, "*.jpg).
Joined: Sep 23, 2012
Actually I have removed Apache from my system. I have only tomcat 7 on port 80. I followed your suggestion on the earlier post and decided to use only tomcat for both dynamic and static content.
I am still having the same issue as earlier. I want the below to work. Please help..
More correctly, Tomcat's default webapp is webapps/ROOT.
Thank you for correction
Joined: Sep 23, 2012
Thanks, I did that. I backed up ROOT folder and then renamed my application.war file to ROOT.war and tomcat deployed it as ROOT. I can see my web application on http://localhost But i still cannot see my static pages. My static pages are in /usr/share/website/, which is not my in webapps directory(/usr/local/tomcat7/webapps/). My application creates a lot of static (html) pages and is saved in /usr/share/website/. This location is Alias to myfolder in my web application.
example: when some one uses my web application, a new folder with html pages are created and saved in /usr/share/website (myfolder). Lets say the new folder is called "sub".
If you're using filesystem aliases (links), you may need to override Tomcat's default settings. For security reasons, I don't believe that Tomcat will resolve through aliases unless explicitly instructed.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com