LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-19-2009, 11:59 PM   #1
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
webfsd cgi hello, world


Can someone help me run/use cgi with webfsd?

Code:
$ webfsd -p 80 -u matt -g users -F -R /var/www -x cgi
So there is a directory /var/www/cgi that I'm trying to put my program in. Should the option be -x /var/www/cgi?

My hello, world program is:
Code:
#include <stdio.h>

int main() {
	printf("Content-type: text/html\n\n");
	printf("Hello, World!\n");
	return 0;
}
The webfsd manpage says the CGI is only for get requests, I'm not sure how this affects my hello, world though.

Last edited by Meson; 09-20-2009 at 12:00 AM.
 
Old 10-02-2009, 10:05 AM   #2
SethsdadtheLinuxer
Member
 
Registered: Jun 2007
Posts: 152

Rep: Reputation: 37
webfsd is for presenting static pages and reading in results. That being said, this should work with /var/run/cgi/helloworld.cgi with executable permissions.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl CGI:Can't locate CGI.pm supermyself Programming 13 09-10-2007 06:22 AM
CGI to work out side of cgi-bin? crashedspine Linux - Newbie 13 09-02-2004 08:49 PM
world writeable files will not stay world writeable antken Mandriva 1 03-02-2004 05:04 PM
apache v2.0.44 + cgi ; securing cgi-support in apache markus1982 Linux - General 0 01-20-2003 01:03 PM
http://www.burstnet.com/cgi-bin/ads/ad7954a.cgi/3980/RETURN-CODE rverlander LQ Suggestions & Feedback 1 06-07-2002 07:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration