'Connection problem while hosting multiple tor sites on same device
I am trying to host two tor websites on the same device. The original one works but not the new one. I have followed the steps in here but I can't connect to the server.
I've added a mew serviceDir and Port in /etc/tor/torrc
#this site works
HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:8080
#this one does not
HiddenServiceDir /var/lib/tor/hidden_service2/
HiddenServicePort 80 127.0.0.1:8081
and in /etc/nginx/sites-enabled/default I've added
server {
listen 8081 default_server;
listen [::]:8081 default_server;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
running nginx -t gives no error
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
I am at a loss here. Any help is appreciated!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
