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.

load balancing mir rewrite

Empfohlene Antworten

Veröffentlicht

hi,

es geht um load balancing mit dem rewrite modul, dazu habe ich folgendes script umgebaut:

#!/usr/bin/perl

$| = 1;

$name = "www"; # the hostname base

$first = 1; # the first server

$last = 8; # the last server in the round-robin

$domain = "domainname.de"; # the domainname

$count = 0;

while (<STDIN>) {

$count = (($count+1) % ($last+1-$first));

$server = sprintf("%s%d.%s", $name, $count+$first, $domain);

print "http://$server/$_";

}

und in der httpd.conf folgendes eingefügt:

<VirtualHost 62.180.229.150:80>

ServerAdmin webmaster@domainname.de

Serverpath /wwwhome/domainname_de

DocumentRoot /wwwhome/domainname_de

ServerName www.domainname.de

ScriptAlias /cgi-bin/ "/wwwhome/domainname_de/cgi-bin/"

ErrorLog /var/log/www.alternate.de_error-log

CustomLog /var/log/www.domainname.de_access-log combined

<Directory />

AllowOverride None

ErrorDocument 404 /404.html

</Directory>

JkMount /user/* ajp13

RewriteEngine on

RewriteMap lb prg:/BALANCE_DIR/lb.pl

RewriteRule ^/(.+) ${lb:$1} [P,L]

</VirtualHost>

leider konnte ichs noch nicht testen, kann mir jemand sagen, ob das so funktioniert und od der www.domainname.de zwangsläufig ein proxy-server sein muss?

Verschoben -> Webhosting

O.K. wenns jemanden interressiert, das P in der Zeile " RewriteRule ^/(.+) ${lb:$1} [P,L] " steht für Proxy, somit ist meine Frage beantwortet.

  • 2 Jahre später...

*push*

hat dieses Script dann damals funktioniert?

Wäre super eine Antwort zu sehen :)

Danke & gruß

Jens

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.