Problem

Beim Start von Apache erscheint:

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1.
Set the 'ServerName' directive globally to suppress this message

Ursache

Apache hat keinen global gesetzten ServerName.

Tags
  1. a2enmod remoteip
  2. vim /etc/apache2/conf-available/remoteip.conf
<IfModule mod_remoteip.c>
    RemoteIPHeader X-Forwarded-For
    RemoteIPTrustedProxy 10.0.3.1
</IfModule>
  1. a2enconf remoteip
  2. systemctl restart apache2
  3. t /var/log/apache2/*.log
Tags
<VirtualHost *:80>
    DocumentRoot  /var/www/drupal/web/
    ServerName   DOM.TLD
    include        conf/drupal.conf
    # include        conf/awstatsauth.conf
    CustomLog    ${APACHE_LOG_DIR}/DOM.TLD_access.log combined
</VirtualHost>

/etc/apache2/apache2.conf

<Directory /var/www/>
    Options Indexes FollowSymLinks
    Allo
Tags

<VirtualHost *:80>
    DocumentRoot /var/www/owncloud/
    ServerName owncloud.TLD

    <Directory /var/www/owncloud/>
       Options +FollowSymlinks
       AllowOverride All
       Require all granted
         <IfModule mod_dav.c>
           Dav off
         </IfModule>
    </Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot    /usr/share/phpmyadmin
ServerName    phpmyadmin.bubuit.net

<Directory /usr/share/phpmyadmin>
   Options SymLinksIfOwnerMatch
   DirectoryIndex index.php

Tags