Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Squid3 und .htaccess

Empfohlene Antworten

Veröffentlicht

Hi,

ich habe ein Debiansystem, auf dem ein Apache2 und squid3 läuft.

Der Apache2 ist so konfiguriert, das er auf Port 81 alles annimmt.

Nun soll Squid3 wiederum alles auf port 80 kriegen und auf port 81 weiterleiten.

Die einzige "kompliziertere" Sache ist noch, dass der Rechner über 2 IPs erreichbar sein soll und auf jeder IP auch verschiedene Virtuelle Hosts hat.

So sieht meine Squid.conf momentan aus:


debug_options ALL,9


http_port 80 vhost


acl domain1_com dstdomain test.local

acl domain2_com dstdomain test2.local


cache_peer x.x.x.21 parent 81 0 no-query originserver name=domain1

cache_peer_access domain1 allow domain1_com


cache_peer x.x.x.11 parent 81 0 no-query originserver name=domain2

cache_peer_access domain2 allow domain2_com


cache_mem 512 MB

cache_dir ufs /var/spool/squid3 5000 16 256


acl all src 0.0.0.0/0.0.0.0

http_access allow all

Soweit scheint alles zu funktionieren.

Nun habe ich aber das problem, dass eine angelegte .htaccess in test.local nicht richtig genutzt wird.

Es taucht die Authentifikation auf und ich gebe Benutzername und Passwort ein.

Doch anstatt, dass sich dann die Seite öffnet, wird wieder Benutzername und Passwort verlangt.

Soblad ich den Squid ausschalte und den Apache2 wieder auf Port 80 stelle, funktioniert alles einwandfrei.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.