On Friday 21 September 2001 04:19 pm, you wrote:
> "L.V.Gandhi" wrote:
> > for public_html pages of individual user, how to create separate
> > cgi-bins?
>
> In apache docs, look for htdocs/manual/misc/FAQ.html#user-cgi. I paste
> here for your reference.
> ---------------------------------------------------------------------------
>--------- How do I allow each of my user directories to have a cgi-bin
> directory?
>
>  Remember that CGI execution does not need to be restricted only to
> cgi-bin directories. You can allow CGI script execution in arbitrary
> parts of your filesystem.
>
>  There are many ways to give each user directory a cgi-bin directory
> such that anything requested as http://example.com/~user/cgi-bin/program
> will be executed as a CGI script. Two alternatives are: Place the
> cgi-bin directory next to the public_html directory:
>
> ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/cgi-bin/$2 Place the
> cgi-bin directory underneath the public_html directory:
>
> <Directory /home/*/public_html/cgi-bin>
>  ����Options ExecCGI
>  ����SetHandler cgi-script
>  </Directory>

I have used the second alternative. My /etc/httpd/conf/httpd.conf file 
relevent portion is as follows.
UserDir public_html
 
#
# 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 FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
#    </Limit>
#    <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
#        Order deny,allow
#        Deny from all
#    </Limit>
</Directory>
 
#As per FAQ to use cgi-bin made by me on 2/10/2001
<Directory /home/*/public_html/cgi-bin>
     Options ExecCGI
     SetHandler cgi-script
</Directory>

Still I get the following error.
 [client 127.0.0.1] Premature end of script headers: 
/home/lvgandhi/public_html/cgi-bin/addfile.pl.
 But the same script and concerned files work in /var/www/cgi-bin folder.
folder permissions are 755 for /home/lvgandhi and 775 for public_html and 
public_html/cgi-bin under /home/lvgandhi.
Where I am going wrong?
-- 
L.V.Gandhi
203, Soundaryalahari Apartments, Lawsons Bay colony, Visakhapatnam, 530017
MECON, 5th Floor, RTC Complex, Visakhapatnam AP 530020 INDIA
[EMAIL PROTECTED],� [EMAIL PROTECTED] linux user No.205042

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to