Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: Zendrael on February 15, 2013, 05:42:31 AM

Title: [SOLVED] busybox-httpd sample httpd.conf file?
Post by: Zendrael on February 15, 2013, 05:42:31 AM
Hello all!

I am starting my busybox-httpd service with a single command line, without using an httpd.conf file. It works but I can't get any CGI scripts to work.

Where can I find a sample httpd.conf file to use with busybox-httpd extension that provides the CGI functionality? (DuckDucked some but none of them worked)

And, may I have any special permissions to the cgi other than 755 ?

Thanks
Title: Re: busybox-httpd sample httpd.conf file?
Post by: gerald_clark on February 15, 2013, 10:02:04 AM
You might try http://www.busybox.net/
Title: Re: busybox-httpd sample httpd.conf file?
Post by: tinypoodle on February 15, 2013, 10:10:32 AM
http://wiki.openwrt.org/doc/howto/http.httpd
Title: Re: busybox-httpd sample httpd.conf file?
Post by: Zendrael on February 16, 2013, 04:22:36 PM
Hello Gerald_Clark and Tinypoodle!

Hum... It was my bad this time... The problem was my CGI script not completing the requests... I built a simple one to test and it worked like a charm with my default settings...

By the way, it is a CGI built with FreePascal!

Thanks a lot for the help!
Title: Re: busybox-httpd sample httpd.conf file?
Post by: gerald_clark on February 16, 2013, 04:58:47 PM
Well, happy hacking!
Title: Re: busybox-httpd sample httpd.conf file?
Post by: Zendrael on February 17, 2013, 06:10:35 AM
Well, it was really a mistake with my code. Everything working now!

For those of you that (maybe) want to know more about CGI programming with FreePascal (using ObjectPascal and Lazarus), here is the link of my article translated:
http://translate.google.com/translate?hl=en&sl=pt&tl=en&u=http%3A%2F%2Fwww.vivaolinux.com.br%2Fartigo%2FPascal-para-Web-com-CGI-Parte-I%2F

Thank you all!