Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Basic http server with cgi alongside Moode
#2
(07-19-2020, 08:40 PM)Mwoua Wrote: Hello,
I've recently installed Moode on raspberry 3b, and I would like to have a really basic http server on it aswell.

I start the server with:
python3 -m http.server --cgi 8001

I can access static html page without any issues. However, I have 3 dynamic pages, and I cant access them :


Code:
[color=#000000][font=Times New Roman]Error response[/font][/color]
[color=#000000][size=medium][font=Times New Roman]Error code: 403[/font][/size][/color]
[color=#000000][size=medium][font=Times New Roman]Message: CGI script is not executable ('/cgi-bin/index.py').[/font][/size][/color]
[color=#000000][size=medium][font=Times New Roman]Error code explanation: HTTPStatus.FORBIDDEN - Request forbidden -- authorization will not help.[/font][/size][/color]

To be sure its not a permission problem, i used chmod 777 on my files, and I run the python3 as root

I have also tried using port 8000, same results.

If I start the server with python3 -m http.server 8001, it correctly display the content of my file, but dont execute it.

I have the same setup on another raspbian (retropie) working without any issue.

Is there a global config or something that can prevent the execution of my files?

Thanks


I'm sure there's an appropriate forum for this but it has nothing to do with moOde.

Regards,
Kent
Reply


Messages In This Thread
RE: Basic http server with cgi alongside Moode - by TheOldPresbyope - 07-19-2020, 08:49 PM

Forum Jump: