You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by co...@locus.apache.org on 2000/03/01 01:40:23 UTC

cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/task ApacheConfig.java

costin      00/02/29 16:40:23

  Modified:    src/share/org/apache/tomcat/task ApacheConfig.java
  Log:
  Fix: Apache + tomcat can't display directories.
  Changed ApacheConfig to generate the right <Directory> directive for
  apache.
  
  Revision  Changes    Path
  1.6       +6 -0      jakarta-tomcat/src/share/org/apache/tomcat/task/ApacheConfig.java
  
  Index: ApacheConfig.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/task/ApacheConfig.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ApacheConfig.java	2000/02/26 19:41:46	1.5
  +++ ApacheConfig.java	2000/03/01 00:40:23	1.6
  @@ -129,6 +129,12 @@
   		    pw.println("Alias " + path + " " + 
                                  FileUtil.patch(tomcatHome + "/webapps" + path));
   
  +		    pw.println("<Directory \"" +
  +			       FileUtil.patch(tomcatHome + "/webapps" + path) +
  +			       "\">");
  +		    pw.println("    Options Indexes FollowSymLinks");
  +		    pw.println("</Directory>");
  +		    
   		    // Dynamic /servet pages go to tomcat
   		    pw.println("ApJServMount " + path +"/servlet" + " " + path);