[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-developers] cobalt java package - suggested change



I would like to suggest cobalt update the file

	/usr/java/jakarta-tomcat/bin/cobalt_config.pl

In the beginning of this file there is a small chuck of
code to collect the sites supporting jsp/servlets.

opendir(DIR, "/home/sites");
  @sites = grep { /^.+\..*\./ && -d "/home/sites/$_" } readdir(DIR);
closedir(DIR);

This code will not match a site named similiar to the below

	domain.com

It requires atleast 2 '.' characters in the directory name to
match.  I feel this is a bug and ended up having to change this
to support some sites.

---

Even better.  Someone should integrate this sites list support into
the cobalt admin interface.  That way someone could select sites they
want to make jsp/servlets available to.