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

Re: httpd packages question



On Thu, Sep 28, 2000 at 07:48:21PM +0200 , Leonard Stiles wrote:
> 
> I've started to package mini_httpd (http://www.acme.com/software/mini_httpd/)
> and have a question concerning the web root / cgi-bin directories on 
> debian systems:
> 
> According to the debian-policy document, the directory for cgi-bin executables 
> is /usr/lib/cgi-bin
> 
> The same document specifies that the web document root should be /var/www
> 
> In the case of mini_httpd, this causes a problem because in order to set its 
> document root to the specified directory, mini_httpd calls chroot (), making 
> /usr/lib/cgi-bin unaccessible. The only possible solution I can see would be 
> to create a symlink /var/www/cgi-bin to /usr/lib/cgi-bin (e.g. in the
> postinstall script), however, this might cause problems for other web servers.

this won't help you. The symlink would point out of the chroot() and thus it
can't access the files the symlink is pointing to and links do directories are
out, so this looks bad.

> Is this the right solution?
> 
> Also, if the /var/www and /usr/lib/cgi-bin directories do not exist, am I 
> responsible for creating them?

Check policy (hmm. should do myself too)

				Petr Cech
-- 
Debian GNU/Linux maintainer - www.debian.{org,cz}
           cech@atrey.karlin.mff.cuni.cz

Those who don't understand Unix are condemned to reinvent it, poorly.



Reply to: