Zusätzlich .onion Services  [SOLVED]

For topics beyond KeyHelp. / Für Themen jenseits von KeyHelp.
User avatar
max78
Posts: 53
Joined: Fri 21. Feb 2020, 16:54

Re: Zusätzlich .onion Services

Post by max78 »

christian.john wrote: Fri 14. May 2021, 07:43 Das bei der Apache-Einstellung unter der jeweiligen Onion-Damain Eintragen.

Code: Select all

<IfModule mod_proxy.c>
        ProxyPass /.well-known/acme-challenge !
</IfModule>

Alias /.well-known/acme-challenge /home/keyhelp/www/.well-known/acme-challenge

ProxyPass / https://normaleUrl/
ProxyPassReverse / https://normaleUrl/
Die Acme-Einträge sind nur für Lets encrypt. Die brauchst du wahrscheinlich da gar nicht. Alles von Onion wird dann auf die normale Domain umgeschrieben und wieder zurück...
Apache-Mod-Rewrite muss aktiv sein. Ist es wahrscheinlich auch
Hmm, habe es mal probiert, aber leider erhalte ich lediglich einen Internal Server Error.
In der entsprechenden Log erhalte ich folgende Meldung:

Code: Select all

[Thu Jun 10 20:37:07.587540 2021] [proxy:warn] [pid 24881:tid 140220253464320] [client 127.0.0.1:53474] AH01144: No protocol handler was valid for the URL / (scheme 'https'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Thu Jun 10 20:37:09.719530 2021] [proxy:warn] [pid 24882:tid 140220245071616] [client 127.0.0.1:53476] AH01144: No protocol handler was valid for the URL /favicon.ico (scheme 'https'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule., referer: http://5kpfu7ubdwsuqmtpxqvysiptrnxk7jijxu55p3zllepxr5trl5p2vbid.onion/
[Thu Jun 10 20:40:50.213489 2021] [proxy:warn] [pid 24881:tid 140219978331904] [client 127.0.0.1:53488] AH01144: No protocol handler was valid for the URL / (scheme 'https'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Thu Jun 10 20:40:51.375638 2021] [proxy:warn] [pid 24882:tid 140219986724608] [client 127.0.0.1:53490] AH01144: No protocol handler was valid for the URL /favicon.ico (scheme 'https'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule., referer: http://5kpfu7ubdwsuqmtpxqvysiptrnxk7jijxu55p3zllepxr5trl5p2vbid.onion/
[Thu Jun 10 20:40:54.287745 2021] [proxy:warn] [pid 24881:tid 140219969939200] [client 127.0.0.1:53492] AH01144: No protocol handler was valid for the URL / (scheme 'https'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Thu Jun 10 20:40:55.734332 2021] [proxy:warn] [pid 24882:tid 140219961546496] [client 127.0.0.1:53494] AH01144: No protocol handler was valid for the URL /favicon.ico (scheme 'https'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule., referer: http://5kpfu7ubdwsuqmtpxqvysiptrnxk7jijxu55p3zllepxr5trl5p2vbid.onion/
Ich werde aus der Meldung nicht ganz schlau, kann es am Let´s Enrcrypt Zertifakt liegen, wegen https zu http? Habe die Apache Einstellunge so wie Du beschrieben hast bei der Onion Domain eingetragen, natürlich "normaleURL" gegen die Clearnet Domain ausgetauscht.
Könntest Du mir noch einen Tip geben :-)

Viele grüße,
Max
christian.john
Posts: 228
Joined: Tue 9. Apr 2019, 16:31
Location: Korschenbroich
Contact:

Re: Zusätzlich .onion Services

Post by christian.john »

GGf. Modul nicht im Apache aktiviert.
Die mal zur Sicherheit durchtesten. GGf. ohne sudo, je nachdem mit welchem Benutzer du aktiv bist.

sudo a2enmod ssl
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod proxy_fcgi
Individuelle Entwicklung webbasierter Datenbanksysteme
https://www.john-softwareentwicklung.de
User avatar
max78
Posts: 53
Joined: Fri 21. Feb 2020, 16:54

Re: Zusätzlich .onion Services

Post by max78 »

Hmm, scheint alles zu laufen und erhalte trotzdem den Server Error...

Code: Select all

root@cfg:~# a2enmod ssl
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Module socache_shmcb already enabled
Module ssl already enabled
root@cfg:~# a2enmod proxy
Module proxy already enabled
root@cfg:~# a2enmod proxy_http
Considering dependency proxy for proxy_http:
Module proxy already enabled
Enabling module proxy_http.
To activate the new configuration, you need to run:
  systemctl restart apache2
root@cfg:~# systemctl restart apache2
root@cfg:~# a2enmod proxy_fcgi
Considering dependency proxy for proxy_fcgi:
Module proxy already enabled
Module gi already enabled
Hast Du mir vielleicht noch einen Tip?
Post Reply