I am trying to run two or more hidden services. My torrc seems to be fine, but I am having trouble with lighttpd.conf.
My configuration file contains.
$HTTP["host"] == "2uwvt4.onion" {
server.document-root = "/var/www"
server.port = 8888
} else $HTTP["host"] == "6gkcdh.onion" {
server.document-root = "/var/www/2"
server.port = 7777
} else $HTTP["host"] =~ "" {
server.port = 110
server.document-root = "/var/www/default"
}
I get the error that it is already bound to port 80, the port 80 is only mentioned once in torrc.
HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:8888
HiddenServiceDir /var/lib/tor/hidden_service/2/
HiddenServicePort 90 127.0.0.1:7777