Re: How to set up simple cgi web
On 1/26/08, Micaela Gallerini <firstname.lastname@example.org> wrote:
> 2008/1/26, hce <email@example.com>:
> > Hi,
> > I thought if I create /www or /etc/www in my debian PC, and add an
> > index.htm and cgi file to cgi-bin directory, I should be able to
> > access http://my_ip_address/index.html. But, it did not work. how can
> > I make that work?
> > Thank you.
> apache work on var/www not etc/www. Afterwards, you create the directory on
> /var/www not in /etc
> if you use apache2, you manually set the dir /var/www in:
Sorry for not being clear. I actually did not want to install apache,
I am just doing my program to use freecgi library and want to test the
cgi binary file on my local machine. I was told I could set up a
simple web server to use a browser http://my_ip_address to invoke the
cgi file without installing the apache. Or, is it wrong?
I changed /www to /var/www, but the browser still got an error message
"You tried to access the address http://my_ip_address/, which is
Or, I might just be missing the whole point?