How To Host A Website In Deep Web(Onion Url)
Requirements:
1- Having concept of hosting a website using apache2 server locally in linux.
2- Tor Browser
Open Your Terminal and Type:
sudo apt-get install tor
After installation is complete..Type..
cd /etc/tor
Now open torrc file in that directory.
Go to the bottom of the file.
Make sure last two lines are commented as shown in pic and add these two lines.
HiddenServiceDir /var/lib/tor/hidden_service
HiddenServicePort 80 your_private_ip
Note:If you are hosting it for second time,kindly delete the hidden_service dir in /var/lib/tor dir if already present.
Find your private ip using ifconfig command in terminal.


Keep your web pages(contents) that you want to host in /var/www/html directory.
sudo service tor start
sudo service apache2 start
Find your onion site url in hostname file in /var/lib/tor/hidden_service directory.


Open Tor Browser
Open your url on Tor Browser.

And done!
Congrats..You have successfully hosted a website on deep web.If you lke the post plz do clap.