I have a few hidden services on my Ubuntu Server using Nginx. My torrc looks something like this:
HiddenServiceDir /var/lib/tor/hs1
HiddenServicePort 80 127.0.0.1:8081
HiddenServiceDir /var/lib/tor/hs2
HiddenServicePort 80 127.0.0.1:8082
I can access the homepage of both using their onion addresses, but clicking any subdirectories e.g. *.onion/blog/ sends me to *.onion:8081/blog/
I know all the basics are set up correctly, I can access both sites from localhost and through Tor, but anything besides the index page is sent to the local port, not the virtual port.
My Nginx configuration for HS1 is:
server {
listen 127.0.0.1:8081;
server_name testoniondomain1.onion;
root /var/www/sites/hs1;
index index.html index.htm index.php;
}
Am I missing something obvious or is there a problem with my configuration? Thank you in advance
- UPDATE: Similar question which doesn't help: Running multiple hidden services in nginx