I can't seem to get them to work. I tried copying in the relevant lines from a working httpd 2.x httpd.conf on my current Fedora Core server into /etc/apache/httpd.conf, but no luck.
These are the relevant lines in my current /etc/apache/httpd.conf file on a Debian Sarge install with the 2.6.8-1 kernel, installed two days ago.
...
ServerName
www.thenameofmydomain.com
...
Port 80
...
NameVirtualHost *
<VirtualHost *>
ServerAdmin
e@thenameofmydomain.net
DocumentRoot /var/www/html
ServerName
www.thenameofmydomain.net
ErrorLog logs/thenameofmydomain.net-error_logi
CustomLog logs/thenameofmydomain.net-access_log common
</VirtualHost>
...
Only trying one vhost for now, until I can get the server up. I've tried both the '*' and '*:80' in place of it and neither will work.
/usr/sbin/apache -S gives me...
oak:/etc/apache# /usr/sbin/apache -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server
www.thenameofmydomain.net (/etc/apache/httpd.conf:1050)
port 80 namevhost
www.thenameofmydomain.net (/etc/apache/httpd.conf:1050)
oak:/etc/apache#
Trying to start apache from the init.d script, I get the oh-so-helpful output...
oak:/etc/apache# /etc/init.d/apache start
Starting web server: apache failed
oak:/etc/apache#