SPECS (DEVEL): sqwebmail.spec - updated to 5.0.1, removed -build.p...

Elan Ruusamäe glen at delfi.ee
Sat Mar 5 17:59:33 CET 2005


On Saturday 05 March 2005 18:46, Andrzej Augustynowicz wrote:
> Dnia sobota, 5 marca 2005 17:34, Elan Ruusamäe napisał:
> > On Saturday 05 March 2005 17:49, Andrzej Augustynowicz wrote:
> > > Dnia sobota, 5 marca 2005 11:51, Elan Ruusamäe napisał:
> > > > please see horde.spec (imp.spec, chora.spec, ...) how to do
> > > > apache1/apache2 config changes, ie apache version independant
> > > > package.
> > > >
> > > > probably should add the information to devel-hints-en ?
> > >
> > > what about cgi-bin directory, have you got idea what to do ?
> >
> > what is the problem?
>
> for apache2
> /home/services/httpd/cgi-bin
> for apache1
> /home/services/apache/cgi-bin
> etc.
>
> for example sqwebmail has got cgi script
> if installed, it could be run from apache2 but not from apache1 (by
> default)
ok

imho /home/services sucks completely for rpm packages! what if i have /home 
nfs mounted for different machines having possibly different versions of same 
package installed?! some crazy mount options applied (noexec)?
so imho all packages that use that path, should be moved to %{_datadir}

so just put your cgi program to %{_datadir}
and add apache ScriptAlias to that physical path.

ScriptAlias /cgi-bin/webmail /usr/share/webmail/webmail.cgi

and you probably need to set execute permissions there ; allow/deny access, 
depending on application type
<Location /cgi-bin/webmail>
  Options +ExecCGI
  Allow from all
</Location>


http://cvs.pld-linux.org/SOURCES/mysqlstat.conf
http://cvs.pld-linux.org/SOURCES/trac-apache.conf
http://cvs.pld-linux.org/SOURCES/nagios-apache.conf

-- 
glen




More information about the pld-devel-en mailing list