Jump to content

Recommended Posts

Posted

Your test script was invalid. You didn't send any headers (at minimum you must send a Content-type header when Python prints to a browser), and the line endings were of type none (must be unix).

I fixed the test file for you and its working now.

  • 2 months later...
Posted

Hello, I am a newbie and I got the same problem, this is my app :

 

#!/usr/bin/python3.10

print("Content-Type: text/html\n\n")

print("Heliohost rules!")

 

I receive this error:

Forbidden

You don't have permission to access /cgi-bin/test.py on this server.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...