Mobile app version of vmapp.org
Login or Join
Gonzalez347

: How to make my websites content available as Tor .onion and Clearnet .com? I'm running a website with Nginx which I would like to be accessible by Tor and by Clearnet. Currently it's only

@Gonzalez347

Posted in: #Nginx

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. example.com.
Of course people just can go to 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 example.com/ and xyzsfexample.onion/. So they see content from /var/www/www.example.com/web/index.php as xyzsfexample.onion/index.php; IF they browse on xyzsfexample.onion; IF they browse on example.com they should see example.com/index.php.

How do I set this up and how must Nginx be configured to do both?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Gonzalez347

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sarah324

server {
listen 80;
server_name example.com xyzsfexample.onion;

root /var/www/www.example.com/web/;
index index.php;

[...]
}

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme