Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mkdir www
- cd www
- # create index web page and start server
- echo "Hello" > index.html
- busybox httpd -vf -p8888
- # check connection with client
- wget -qO- "http://127.0.0.1:8888"
- wget -qO- "http://localhost:8888"
- wget -qO- "http://192.168.1.158:8888"
- brave "http://127.0.0.1:8888"
- brave "http://localhost:8888"
- brave "http://192.168.1.158:8888"
- # create httpd webserver config file with restrictions
- # busybox will look for httpd.conf in current directory
- # or you can tell it to look for it in a set place
- echo "A:127.0.0.1" > httpd.conf
- echo 'D:*' >> httpd.conf
- busybox httpd -vfc httpd.conf -p8888
- # check connection with client
- wget -qO- "http://127.0.0.1:8888"
- wget -qO- "http://localhost:8888"
- wget -qO- "http://192.168.1.158:8888"
- brave "http://127.0.0.1:8888"
- brave "http://localhost:8888"
- brave "http://192.168.1.158:8888"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement