AH00558 Apache Warning
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.
a2enmod remoteip
- a2enmod remoteip
- vim /etc/apache2/conf-available/remoteip.conf
<IfModule mod_remoteip.c>
RemoteIPHeader X-Forwarded-For
RemoteIPTrustedProxy 10.0.3.1
</IfModule>- a2enconf remoteip
- systemctl restart apache2
- t /var/log/apache2/*.log
apache drupal
<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
Alloapache owncloud
<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>
apache phpMyAdmin
<VirtualHost *:80>
DocumentRoot /usr/share/phpmyadmin
ServerName phpmyadmin.bubuit.net
<Directory /usr/share/phpmyadmin>
Options SymLinksIfOwnerMatch
DirectoryIndex index.php