This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

httpd.conf question

 
Alex Kravets
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am not sure where this question suppose to go, I thought this would be the most appopriate place.
How should I modify my httpd.conf file in Apache server in order to run index.jsp files directly from subdirectories? So, if I have file in http://localhost/test/index.jsp, I can type in browser http://localhost/test instead of http://localhost/test/index.jsp.
thanks,
Alex
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, the most appropriate place to ask would be the Apache/Tomcat forum.
Setting up httpd.conf isn't going to help you. Apache can't serve JSPs - unless you idea of "serving" is to return the raw JSP text rather than to execute it!
Instead you have to set up a pipeline so that JSP requests get forwarded to a JSP server such as Tomcat. Which is a lot more difficult than it ought to be - there are probably about 5 different ways to set this mechanism up and at any given time, the one I want always seems to be underdocumented or broken.
Start by reading the "Tomcat-Apache HOWTO" for the version of Tomcat you're interested in. If you're not familiar with Tomcat (or a similar server such as Jetty), you'll need to learn.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic