I'm running a website with Nginx which I would like to be accessible by Tor and by Clearnet. Currently it's only reachable by Clearnet, e.g.
Of course people just can go to
www.example.com through Tor browser, but I want to have a
.onion address too for the same website.
I want the website and content to be accessible by
xyzsfexample.onion/. So they see content from
xyzsfexample.onion/index.php; IF they browse on
xyzsfexample.onion; IF they browse on
example.com they should see
How do I set this up and how must Nginx be configured to do both?