I am learning cgi python programming and I did put my test.py file in the cgi folder in free hosting service with following code.
But it gives,
my link is http://www.ztron.x10.mx/cgi-bin/test.py
Code:
#!/usr/bin/python
print "Content-type:text/html\r\n\r\n"
print '<html>'
print '<head>'
print '<title>Hello Word - First CGI Program</title>'
print '</head>'
print '<body>'
print '<h2>Hello Word! This is my first CGI program</h2>'
print '</body>'
print '</html>'
But it gives,
Code:
Forbidden
You don't have permission to access /cgi-bin/test.py on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
my link is http://www.ztron.x10.mx/cgi-bin/test.py