Answer the question
In order to leave comments, you need to log in
How to run python script by url?
There is a script written in python3. The device makes an http request like 10.0.0.1/search.action (the request cannot be configured on the device).
The server is running apache and the search.py script is in the DocumentRoot.
DocumentRoot /var/www
<Directory "/var/www">
Options +ExecCGI
AddHandler cgi-script .py
</Directory>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question