WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] busybox-httpd sample httpd.conf file?  (Read 17631 times)

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
[SOLVED] busybox-httpd sample httpd.conf file?
« 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
« Last Edit: February 17, 2013, 06:11:07 AM by Zendrael »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: busybox-httpd sample httpd.conf file?
« Reply #1 on: February 15, 2013, 10:02:04 AM »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Re: busybox-httpd sample httpd.conf file?
« Reply #3 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!

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: busybox-httpd sample httpd.conf file?
« Reply #4 on: February 16, 2013, 04:58:47 PM »
Well, happy hacking!

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Re: busybox-httpd sample httpd.conf file?
« Reply #5 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!