Hi,
I have a Beaglebone with installed the TI Sitara Linux OS.
Im have configure the lighttpd.conf file for to test a cgi program written
in C.
I have made a file index.html that call the cgi.
The index.html file is:
<form action="/test.cgi" method="POST">
First Name: <input type="text" name="first_name"> <br />
Last Name: <input type="text" name="last_name" />
<input type="submit" value="Submit" />
</form>
The file index.html use the POST method for to send the input data to the
cgi c program.
I have cross compiled the C program test and put it in the Beaglebone.
I have renamed the bin test crosscompiled program as test.cgi
I have modifed the lighttpd.conf as below:
server.modules = (
"mod_cgi"
)
server.document-root = "/www/pages/"
server.port = 80
mimetype.assign = (
".html" => "text/html",
".txt" => "text/plain",
".jpg" => "image/jpeg",
".png" => "image/png"
)
index-file.names = ( "index.html" )
cgi.assign = (".cgi" => "/usr/bin/php-cgi")
the problem is when I call the cgi because the POST method don't work and
the c cgi
is executed as a php program.
The browser show a lot of characters...
Can anyone help me about this problem...?
Which is the correct configuration of the Lighttpd for handle the C cgi
program?
many thanks in advance
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.