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.