[LUGOS] Apache2, cgi, suexec in public_htm l

Simon Tutek simon.tutek at volja.net
Wed Mar 9 19:30:30 CET 2005


drwxr-xr-x   root       root        /home
drwx--x--x   damijan    damijan     /home/damijan
drwxr-xr-x   damijan    damijan     /home/damijan/public_html
-rwxr-xr-x   damijan    damijan     /home/damijan/public_html/test.cgi

pozabil sem dodati, da dobivam 500 Internal server error...
Simon

Marko Bevc wrote:

>Zdravo,
>
>kakšna imaš pa dovoljenja za /home/damjan ?
>
>lp,
>MArko
>  
>
>>Lep pozdrav.
>>
>>Prosim za pomo� na FC3 x86_64 s suexec okoljem.
>>
>>Kadar dostopam do /cgi-bin/test.cgi deluje vse normalno.
>>
>>Za dostop do ~damijan/test.cgi sem moral najprej rocno ustvariti log
>>datoteko
>>    touch /var/log/httpd/suexec.log
>>, nakar se v tem dnevniku pojavlja:
>>    [2005-03-09 16:04:03]: uid: (502/damijan) gid: (502/502) cmd: test.cgi
>>    [2005-03-09 16:04:03]: cannot get docroot information (/home/damijan)
>>
>>Apache je verzija 2.0.52-3.1
>>Datoteka test.cgi:
>>
>>	#!/usr/bin/perl
>>
>>	print "Content-type: text/plain\n\n";
>>	print "Hello";
>>
>>Konfiguracija httpd.conf (zanimiv del):
>>
>><Directory />
>>    Options FollowSymLinks
>>    AllowOverride All
>></Directory>
>>
>>...
>>
>><IfModule mod_userdir.c>
>>    #
>>    # UserDir is disabled by default since it can confirm the presence
>>    # of a username on the system (depending on home directory
>>    # permissions).
>>    #
>>    #UserDir disable
>>
>>    UserDir disabled
>>    UserDir enabled simon borko saso damijan
>>
>>    # To enable requests to /~user/ to serve the user's public_html
>>    # directory, remove the "UserDir disable" line above, and uncomment
>>    # the following line instead:
>>    #
>>    UserDir public_html
>>
>></IfModule>
>>
>>#
>># Control access to UserDir directories.  The following is an example
>># for a site where these directories are restricted to read-only.
>>#
>><Directory /home/*/public_html>
>>
>>    AllowOverride None
>>    Options MultiViews Indexes SymLinksIfOwnerMatch ExecCGI
>>
>>    <Limit GET POST OPTIONS>
>>        Order allow,deny
>>        Allow from all
>>    </Limit>
>>    <LimitExcept GET POST OPTIONS>
>>        Order deny,allow
>>        Deny from all
>>    </LimitExcept>
>></Directory>
>>
>>
>>Lepo prosim za pomo�.
>>Simon
>>_______________________________________________
>>lugos-list mailing list
>>lugos-list at lugos.si
>>http://liste2.lugos.si/cgi-bin/mailman/listinfo/lugos-list
>>
>>    
>>
>
>_______________________________________________
>lugos-list mailing list
>lugos-list at lugos.si
>http://liste2.lugos.si/cgi-bin/mailman/listinfo/lugos-list
>
>  
>



More information about the lugos-list mailing list