I am using centos 7 and apache with the latest version of Tor.
When I add a second HiddenServiceDir line to the torrc file, not only does the second (or third or fourth) service not work, it also makes my first service stop working. I have looked everywhere I could think of and read every guide I can find for answers, but I can't figure it out. Please help!
This is what I have added to /etc/httpd/conf/httpd.conf
Listen 80 Listen 127.0.0.1:6986 Listen 127.0.0.1:7786 <VirtualHost 127.0.0.1:6986> ServerName mydomain2.onion DocumentRoot /var/www/mysite2/public_html </VirtualHost> <VirtualHost 127.0.0.1:7786> ServerName mydomain3.onion DocumentRoot /var/www/mysite3/public_html </VirtualHost>
This is what I have added to /etc/tor/torrc
HiddenServiceDir /var/lib/tor/mysite1/ HiddenServicePort 80 127.0.0.1:80 HiddenServiceDir /var/lib/tor/mysite2/ HiddenServicePort 6986 127.0.0.1:6986 HiddenServiceDir /var/lib/tor/mysite3/ HiddenServicePort 7786 127.0.0.1:7786
As guides I am using seem to differ on this point, I have also tried it with the serviceport lines like:
HiddenServicePort 80 127.0.0.1:6986
When I put #s in front of the four last lines, the first one goes right back to working.
Thank you for looking at my question. Any suggestions will be very much appreciated.