How to setup CGI

python

#1

Hi,

I am compiling an cgi executable (cpp) and want it served by the buildin webserver but i cannot acces cgi-bin.
Also i am unable to find how to write a runner to do this.

I found this answer http://stackoverflow.com/questions/28653344/how-to-find-the-cgi-bin-in-the-workspace-for-cloud-9/34860310#34860310
Which points to https://docs.c9.io/running_python_cgi.html which is not there anymore.

Can someone please explain to me howto achieve this?

With kind regards,
H


#2

Woops, looks like we wiped the old version without creating a new one. Here’s the old version but I also just created a new version in our How To section: Running a Python CGI Server. Please comment on the new version if you see any issues so it can be updated.