Inilah kesalahan yang saya dapatkan saat mem-boot Apache2:
* Starting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Wed Oct 21 16:37:26 2009] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Wed Oct 21 16:37:26 2009] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Wed Oct 21 16:37:26 2009] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Wed Oct 21 16:37:26 2009] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Wed Oct 21 16:37:26 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
Saya pertama kali mengikuti panduan ini tentang pengaturan Apache untuk meng-host beberapa situs:
Saya kemudian menemukan pertanyaan serupa di ServerFault dan mencoba menerapkan solusi, tetapi tidak membantu.
Berikut adalah contoh konfigurasi VirtualHost terakhir saya:
<VirtualHost *:80>
ServerAdmin admin@xxx.com
ServerName www.xxx.com
ServerAlias xxx.com
# Indexes + Directory Root.
DirectoryIndex index.html
DocumentRoot /var/www/www.xxx.com
# Logfiles
ErrorLog /var/www/www.xxx.com/logs/error.log
CustomLog /var/www/www.xxx.com/logs/access.log combined
</VirtualHost>
dengan domain X'd untuk melindungi yang tidak bersalah :-)
Juga, saya memiliki file conf.d / virtual.conf yang disebutkan dalam panduan terlihat seperti ini:
NameVirtualHost *
Yang aneh adalah semuanya tampak berfungsi dengan baik untuk dua dari tiga situs.