I apologize in advance for my poor English.
I want to remotely control Raspberry Pi 3B+ through flask and lighttpd.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-pip
sudo pip install flask
sudo apt-get install lighttpd
sudo apt autoremove
After the above commands, /var/www/html folder is created.
Also, lighttpd.conf is created in /etc/lighttpd/
However, index.html and index.lighttpd.html are not created in the /var/www/html
So even if I turn on localhost on the web, lighttpd doesn’t come out or ‘40… Not found error’ occurs.
I’ve tried a lot of things.
I tried again several times after initializing the sd card.
I received the lighttpd file directly through the ‘git clone’ without using the pip, but the result was the same.
sudo apt install lighttpd lighttpd-doc
sudo apt-get install python3-flask
In addition, all the above commands were used.
The lighttpd.conf file also seems to have no problem.
server.document-root = "/var/www/html" server.upload-dirs = ( "/var/cache/lighttpd/uploads" ) server.errorlog = "/var/log/lighttpd/error.log" server.pid-file = "/var/run/lighttpd.pid" server.username = "www-data" server.groupname = "www-data" server.port = 80
What should I do?