IntelliJ Java IDE
The moose likes JSP and the fly likes httpd.conf question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "httpd.conf question" Watch "httpd.conf question" New topic
Author

httpd.conf question

Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
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


All right brain, you don't like me and I don't like you, but let's just do this one thing so I can get back to killing you with beer.<br /> <br />- Homer Simpson
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 12513

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.


One of the most odious afflictions that Business has inflicted on the modern English language is "pro-active". Most of the time it's simply redundantly used in place of the simple old word "active". And a good deal of the rest of the time it means "You're not overworked enough yet, so go out and find more!"
 
 
subject: httpd.conf question
 
Threads others viewed
Apache 2.0.5.3 + Tomcat 5.5.4 connector on WinXP
Running JSP on TomCat
Is it possible, More than one tomcat running in the one system?
How access web application use root context?
How to test weblogic 9.2 Cluster Setup
IntelliJ Java IDE