i have Debian 10 installed so i install tor and edit the torrc file:
HiddenServiceDir /var/lib/tor/hidden_service/ HiddenServicePort 80 127.0.0.1:80
but it did not work out because hidden_service folder was not created... so i give read and write permission to /var/lib/tor folder and it works, url was generated with private and public keys...
then i just start apache via sudo service apache start
localhost was perfectly worked but in tor browser when i browse the generated onion url it could not connect to web server why?
the same thing was with Nginx too
can someone tell me what i am doing wrong?