julia
I'm new here

Apache Konfiguration: BalancerMember can not have a balancer name when defined in a location

Jump to solution

Hallo,

ich versuche einen externen Webserver (Apache) für FirstSpirit zu konfigurieren. Ich richte mich nach der Anleitung "Dokumentation für Administratoren". Ich habe die gleiche Konfiguration für den Apache genommen wie in der Doku beschrieben. Leider erhalte ich beim Apache START folgende Fehlermeldung:

Starting web server: apache2Syntax error on line 179 of /etc/apache2/sites-enabled/000-default:

BalancerMember can not have a balancer name when defined in a location

failed!

Hier meine Apache-Konfiguration:

<VirtualHost *:80>

    ServerName test.test.de

    ServerAdmin webmaster@localhost

    LogLevel warn

    #CustomLog /var/log/apache2/fs4.access.log combined # EXAMPLE

    #ErrorLog /var/log/apache2/fs4.error.log # EXAMPLE

    ServerSignature off

    UseCanonicalName off

    AddDefaultCharset off

    ProxyRequests off

    RewriteEngine on

    ProxyPreserveHost on

    DocumentRoot /home/allergo

    DirectoryIndex index.html index.jsp index.php

    <Location />

        order allow,deny

        allow from all

    </Location>

  # Protect configuration files.

    <LocationMatch "\.htaccess|/WEB-INF/">

        order deny,allow

        deny from all

    </LocationMatch>

    # Protect FirstSpirit previews, to be accessible # from Servlet-Engine only, not from Web-Browser.

    <LocationMatch preview_cache>

        order deny,allow

        deny from all

   # All LAN addresses where Servlet-Engine is connecting from:

         allow from 127.0.0.1

        allow from 10.11.12.13 # EXAMPLE

        allow from 172.111.12.13 # EXAMPLE

    </LocationMatch>

    # status monitor for mod_proxy and balancer

    <Location /balancer-manager>

  SetHandler balancer-manager

        order deny,allow

        deny from all

    # allow access from administation network only

        allow from 192.168.1. # EXAMPLE

    </Location>

    <Proxy balancer://fshttp>

        # set to hostname of FirstSpirit Server (Jetty)

        # and to port given by HTTP_PORT in fs-server.conf

        BalancerMember http://localhost:8000 retry=10 #EXAMPLE -> Zeile 179

    </Proxy>

    # forward requests for FirstSpirit-Webapps to Servlet-Engine

    RewriteCond %{REQUEST_URI} !^/balancer-manager

    RewriteCond %{REQUEST_URI} !^/server-status

    RewriteCond %{REQUEST_URI} !^/fs4preview/preview_cache

    RewriteCond %{REQUEST_URI} !^/fs4webedit/preview_cache

    RewriteRule ^/(.*) balancer://fshttp/$1 [proxy,last]

</VirtualHost>

Danke im Voraus und schöne Grüße,

Julia Hosieny

0 Kudos
1 Solution

Accepted Solutions
julia
I'm new here

Mein Fehler!!!

In der Zeile:

  BalancerMember http://localhost:8000 retry=10 #EXAMPLE

muss  "#EXAMPLE" entfernt werden, sonst gibt es diesen Fehler!!!

Sorry!!!

View solution in original post

0 Kudos
1 Reply
julia
I'm new here

Mein Fehler!!!

In der Zeile:

  BalancerMember http://localhost:8000 retry=10 #EXAMPLE

muss  "#EXAMPLE" entfernt werden, sonst gibt es diesen Fehler!!!

Sorry!!!

0 Kudos