Project

General

Profile

[Solved] Tor and lighttpd. Unix socket.

Added by 4k3or3et about 2 years ago

Hi All,

As it is recommended to use Unix socket instead of TCP socket with hidden service I would like to ask how to make lighttpd to cooperate also. What needs to be added to lighttpd config?

My torrc config looks like this:

HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 unix:/etc/lighttpd/unix.sock

but the '/etc/lighttpd/unix.sock' is not being created. What should create that file? Tor or lighttpd? Tyring to understand the whole thing...


Replies (4)

RE: Tor and lighttpd. Unix socket. - Added by gstrauss about 2 years ago

Tell lighttpd to listen on a unix domain socket:
In lighttpd.conf: server.bind = "/etc/lighttpd/unix.sock"

server.bind

RE: Tor and lighttpd. Unix socket. - Added by 4k3or3et about 2 years ago

gstrauss wrote in RE: Tor and lighttpd. Unix socket.:

Tell lighttpd to listen on a unix domain socket:
In lighttpd.conf: server.bind = "/etc/lighttpd/unix.sock"

server.bind

Thank you for your reply.

Would you be so kind and put some light on the matter that the file '/etc/lighttpd/unix.sock' is not being created. Which app should create sock file? Can't figure out if that is tor which is not creating the file or lighttpd...

RE: [Solved] Tor and lighttpd. Unix socket. - Added by gstrauss about 2 years ago

You will not be able to do basic verification of the security of your system if you are incapable of trying something and observing what happens.

strace can be a useful tool.

Please read How to get support before asking better questions.

RE: [Solved] Tor and lighttpd. Unix socket. - Added by gstrauss almost 2 years ago

Did you figure out how to read the lighttpd error log? Figure out your filesystem permissions error?
Have you tried reading How to get support ?
Have you tried looking at any of the lighttpd documentation?

The responses to you on https://forums.raspberrypi.com/viewtopic.php?t=332974 were much more blunt and much less polite than mine.

    (1-4/4)