Reindl Harald <h.rei...@thelounge.net> wrote:

> >>> Ich tausche also lediglich die IPv4 Adresse mit einer IPv6 Adresse aus
> >>> und starte den Apache neu. Dann bekomme ich einen 403.
> >>
> >> Der Grund dafür steht im error_log.
> > 
> > Nein, der Zugriffsversuch mit dem 403 wurde nicht geloggt
> 
> Kann nicht sein

nichts in den logs

> Im Error und/oder Access-Log muss irgendwas auftauchen
> Wo das zueghörige liegt ist allerdings auch eine Frage
> weil das ja auf <VirtualHost> und <Directory>-Ebene
> unterschiedlich sein kann
> 
> Ich sehe im ganzen Thread die betreffende Konfiguration des VHosts nicht

Nachfolgend der vhost:

#
# VirtualHost template
# Note: to use the template, rename it to /etc/apache2/vhost.d/yourvhost.conf. 
# Files must have the .conf suffix to be loaded.
#
# See /usr/share/doc/packages/apache2/README.QUICKSTART for further hints 
# about virtual hosts.
#
# NameVirtualHost statements can be added to /etc/apache2/listen.conf.
#
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost 78.47.3.18:80>
    ServerAdmin webmas...@elektromarke.de
    ServerName www.elektromarke.de
    
    php_admin_value sendmail_path "sendmail -t -i -f s...@elektromarke.de -f 
s...@elektromarke.de"

    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    DocumentRoot /vwww/elektromarke/root

    # if not specified, the global error log is used
    ErrorLog /vwww/elektromarke/logs/error.log
    CustomLog /vwww/elektromarke/logs/access.log combined

    # don't loose time with IP address lookups
    HostnameLookups Off
    
    DirectoryIndex index.html

    # needed for named virtual hosts
    UseCanonicalName Off

    # configures the footer on server-generated documents
    ServerSignature Off


    # Optionally, include *.conf files from /etc/apache2/conf.d/
    #
    # For example, to allow execution of PHP scripts:
    #
    # Include /etc/apache2/conf.d/mod_php4.conf
    #
    # or, to include all configuration snippets added by packages:
    Include /etc/apache2/conf.d/*.conf


    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the realname directory are treated as applications and
    # run by the server when requested rather than as documents sent to the 
client.
    # The same rules about trailing "/" apply to ScriptAlias directives as to
    # Alias.
    #
    ScriptAlias /cgi-bin/ "/vwww/elektromarke/cgi-bin/"

    # "/srv/www/cgi-bin" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have one, and where ScriptAlias points to.
    #
    <Directory "/vwww/elektromarke/cgi-bin">
        AllowOverride None
        Options +ExecCGI -Includes
        Order allow,deny
        Allow from all
    </Directory>


    # UserDir: The name of the directory that is appended onto a user's home
    # directory if a ~user request is received.
    #
    # To disable it, simply remove userdir from the list of modules in 
APACHE_MODULES
    # in /etc/sysconfig/apache2.
    #
    <IfModule mod_userdir.c>
        # Note that the name of the user directory ("public_html") cannot 
simply be
        # changed here, since it is a compile time setting. The apache package
        # would have to be rebuilt. You could work around by deleting
        # /usr/sbin/suexec, but then all scripts from the directories would be
        # executed with the UID of the webserver.
        UserDir public_html
        # The actual configuration of the directory is in
        # /etc/apache2/mod_userdir.conf.
        Include /etc/apache2/mod_userdir.conf
        # You can, however, change the ~ if you find it awkward, by mapping e.g.
        # http://www.example.com/users/karl-heinz/ --> 
/home/karl-heinz/public_html/
        #AliasMatch ^/users/([a-zA-Z0-9-_.]*)/?(.*) /home/$1/public_html/$2
    </IfModule>


    #
    # This should be changed to whatever you set DocumentRoot to.
    #
    <Directory "/vwww/elektromarke/root">
    
        #
        # Possible values for the Options directive are "None", "All",
        # or any combination of:
        #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI 
MultiViews
        #
        # Note that "MultiViews" must be named *explicitly* --- "Options All"
        # doesn't give it to you.
        #
        # The Options directive is both complicated and important.  Please see
        # http://httpd.apache.org/docs-2.2/mod/core.html#options
        # for more information.
        #
        #Options Indexes FollowSymLinks
        Options Multiviews
    
        #
        # AllowOverride controls what directives may be placed in .htaccess 
files.
        # It can be "All", "None", or any combination of the keywords:
        #   Options FileInfo AuthConfig Limit
        #
        AllowOverride None
    
        #
        # Controls who can get stuff from this server.
        #
        Order allow,deny
        Allow from all
    
    </Directory>

</VirtualHost>

Diese obige Konfiguration läuft völlig problemlos. Tausche ich die IPv4
gegen die IPv6 Adresse aus, bekomme ich einen 403.
<VirtualHost 2a01:4f8:61:2122::2:80>

Hat jemand Rat?

  Andreas

--------------------------------------------------------------------------
                Apache HTTP Server Mailing List "users-de"
      unsubscribe-Anfragen an users-de-unsubscr...@httpd.apache.org
           sonstige Anfragen an users-de-h...@httpd.apache.org
--------------------------------------------------------------------------

Antwort per Email an