hidden service folder already built, torcc and apache2 already set up but still got error 'Unable to connect' how can i fix it_

Hi, I have kali linux system with whonix running on virtualbox. I tried the same procedure to set up an hidden service on linux with apache2 but as you can guess without success.

THis is what i did:

  1-Apache2 settings:

/etc/apache2/ports.conf

Listen 80

Listen 443

Listen 443 --------------------------------------------------

/etc/apache2/sites-available/000-default.conf

<VirtualHost *:80>

ServerAdmin webmaster@localhost
DocumentRoot /var/www/html

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
--------------------------------------------------
2/Tor settings

/etc/tor/torrc (on workstation)

HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:80

/usr/local/etc/torrc.d/50_user.conf (on gateway)

HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:80

adding the lines to 50_user.conf file, i get the hidden service folder with hostname inside.

but i cannot see the website(apache2 index.html). and get error ‘Unable to connect’

Can someone help me out here please?

I read lot of topics here before make a registration and open this topic, thanks in advance.

Needs to be done as per documentation.

1 Like

thanks! i guess i just missed the 3th line on 50_user.conf

after that, i gave the command ’ sudo anon-auth-autogen ’ and write the hostname on the browser. i got something that i never got …

-Authentication required’

it ask me private key… i never got this, what i have to do? add the priv key as password maybe?

really thanks for your help, i feel just left some steps.

i just found and followed this tutorial:

but i got another error : ’ UNABLE TO CONFIGURE TOR WITH YOUR KEY’.
What i made wrong?