Lighttpd when running python CGI reports - 403 forbidden - Ubuntu
for count in range(1,100) print'Hello World...' print "/p> Finally, restart the lighttpd service. #service lighttpd restart But, when I try to access the page it says- 403 forbidden Here is my folder with permission /home/httpd. /home/httpd$ ls -l total 8 drwxr-xr-x 2 www-data www-data 4096 Apr 3 17:56 cgi-bin drwxr-xr-x 2 www-data root 4096 Apr 3 16:41 html Here is the hello.py /home/httpd/cgi-bin$ ls -l total 4 -rwxrwxrwx 1 root www-data 244 Apr 3 17:56 hello.py The log says that it is still looking for php, html files rather than my python binary? read(7, "GET / HTTP/1.1\r\nHost: 10.0.2.15\r"..., 4159) = 328 stat("/home/httpd/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat("/home/httpd/index.php", 0x7ffee411b9f0) = -1 ENOENT (No such file or directory) stat("/home/httpd/index.html", 0x7ffee411b9f0) = -1 ENOENT (No such file or directory) stat("/home/httpd/index.lighttpd.html", 0x7ffee411b9f0) = -1 ENOENT (No such file or directory) setsockopt(7, SOL_TCP, TCP_CORK, , 4) = 0 writev(7, [{iov_base="HTTP/1.1 403 Forbidden\r\nContent-"..., iov_len=134}, {iov_base="
Last activity: Apr 27, 2020, 11:55 PM