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

Re: Umstellung von thttpd auf lighttpd



On Sun, Jun 04, 2006 at 03:14:07PM +0200, Dirk Salva wrote:
> On Sun, Jun 04, 2006 at 02:14:21PM +0200, Joerg Rieger wrote:
> > > - des weiteren gibt es ein Unterverzeichnis /var/www/cgi, in welchem
> > > eine index.htm und einige .cgi-Dateien liegen. Trotz Aktivierung des
> > > Modules cgi werden die cgi-Dateien nicht ausgeführt, sondern mir wird
> > > der Download bzw. "öffnen mit" angeboten:-(
> > steht in der 10-cgi.conf:
> >   cgi-assign ( "/cgi-bin/" => "" )
> 
> Ja. Wie gesagt, ändere ich das in /cgi/, so geht nix mehr.

die cgi.conf sollte in etwa so aussehen:

## CGI programs allow you to enhance the functionality of the server in a very
## straight and simple way..
##
## Documentation: /usr/share/doc/lighttpd-doc/cgi.txt
##                http://www.lighttpd.net/documentation/cgi.html

server.modules  += ( "mod_cgi" )

$HTTP["url"] =~ "/cgi/" {
    cgi.assign = ( "" => "" )
}


Hab bisher nur fastcgi benutzt. Das ging soweit ohne grosse 
Anstrengungen.
 
> > Die notwendigen Angaben für Auth findest du hier:
> > http://www.lighttpd.net/documentation/authentication.html
> 
> Und damit komme ich nicht klar, sonst hätte ich nicht nachgefragt.

Meine config für Auth:

## Authentication for lighttpd
##
## Documentation: /usr/share/doc/lighttpd-doc/authentication.txt.gz
##                http://www.lighttpd.net/documentation/authentication.html

server.modules                += ( "mod_auth" )

auth.backend                   = "htpasswd"
auth.backend.htpasswd.userfile = "/etc/lighttpd/users"

auth.require                 = ( 
				"/~joerg" =>
                                (
		            	  "method"  => "basic",
                                  "realm"   => "Auth",
				  "require" => "user=joerg"
                                ),
				"/share" =>
				(
				  "method"  => "basic",
				  "realm"   => "Share Authentication"
				  "require" => "valid-user"
				)
                              )


In /etc/lighttpd/users werden dabei die user+passwörter abgespeichert, 
mit htpasswd von Apache angelegt.
 

J

-- 
http://www.lumrix.net



Reply to: